Changeset aadf01e in mainline for uspace/srv/net/tl/udp/udp_header.h
- Timestamp:
- 2010-03-07T15:13:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 936835e
- Parents:
- aa85487
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/udp/udp_header.h
raa85487 raadf01e 43 43 /** UDP header size in bytes. 44 44 */ 45 #define UDP_HEADER_SIZE sizeof( udp_header_t)45 #define UDP_HEADER_SIZE sizeof(udp_header_t) 46 46 47 47 /** Type definition of the user datagram header. … … 61 61 * If not used, a value of zero is inserted. 62 62 */ 63 uint16_t 63 uint16_t source_port; 64 64 /** Destination port has a meaning within the context of a particular internet destination address. 65 65 */ 66 uint16_t 66 uint16_t destination_port; 67 67 /** Length is the length in octets of this user datagram including this header and the data. 68 68 * This means the minimum value of the length is eight. 69 69 */ 70 uint16_t 70 uint16_t total_length; 71 71 /** 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. 72 72 * The pseudo header conceptually prefixed to the UDP header contains the source address, the destination address, the protocol, and the UDP length. … … 75 75 * An all zero transmitted checksum value means that the transmitter generated no checksum (for debugging or for higher level protocols that don't care). 76 76 */ 77 uint16_t 77 uint16_t checksum; 78 78 } __attribute__ ((packed)); 79 79
Note:
See TracChangeset
for help on using the changeset viewer.