Changeset aadf01e in mainline for uspace/srv/net/tl/udp/udp_header.h


Ignore:
Timestamp:
2010-03-07T15:13:28Z (14 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
936835e
Parents:
aa85487
Message:

Coding style (no functional change)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/udp/udp_header.h

    raa85487 raadf01e  
    4343/** UDP header size in bytes.
    4444 */
    45 #define UDP_HEADER_SIZE                 sizeof( udp_header_t )
     45#define UDP_HEADER_SIZE                 sizeof(udp_header_t)
    4646
    4747/** Type definition of the user datagram header.
     
    6161         *  If not used, a value of zero is inserted.
    6262         */
    63         uint16_t        source_port;
     63        uint16_t source_port;
    6464        /** Destination port has a meaning within the context of a particular internet destination address.
    6565         */
    66         uint16_t        destination_port;
     66        uint16_t destination_port;
    6767        /** Length is the length in octets of this user datagram including this header and the data.
    6868         *  This means the minimum value of the length is eight.
    6969         */
    70         uint16_t        total_length;
     70        uint16_t total_length;
    7171        /** Checksum is the 16-bit one's complement of the one's complement sum of a pseudo header of information from the IP header, the UDP header, and the data, padded with zero octets at the end (if necessary) to make a multiple of two octets.
    7272         *  The pseudo header conceptually prefixed to the UDP header contains the source address, the destination address, the protocol, and the UDP length.
     
    7575         *  An all zero transmitted checksum value means that the transmitter generated no checksum (for debugging or for higher level protocols that don't care).
    7676         */
    77         uint16_t        checksum;
     77        uint16_t checksum;
    7878} __attribute__ ((packed));
    7979
Note: See TracChangeset for help on using the changeset viewer.