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


Ignore:
Timestamp:
2010-03-07T22:51:38Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60ab6c3
Parents:
b5cbff4 (diff), 31c80a5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~lukasmejdrech/helenos/network.

File:
1 edited

Legend:

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

    rb5cbff4 r71b00dcc  
    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.