Changes in uspace/srv/net/tl/icmp/icmp_header.h [ede63e4:aadf01e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/icmp/icmp_header.h
rede63e4 raadf01e 46 46 /** ICMP header size in bytes. 47 47 */ 48 #define ICMP_HEADER_SIZE sizeof( icmp_header_t)48 #define ICMP_HEADER_SIZE sizeof(icmp_header_t) 49 49 50 50 /** Type definition of the echo specific data. … … 63 63 /** Message idintifier. 64 64 */ 65 icmp_param_t 65 icmp_param_t identifier; 66 66 /** Message sequence number. 67 67 */ 68 icmp_param_t 68 icmp_param_t sequence_number; 69 69 } __attribute__ ((packed)); 70 70 … … 84 84 /** The type of the message. 85 85 */ 86 uint8_t 86 uint8_t type; 87 87 /** The error code for the datagram reported by the ICMP message. 88 88 * The interpretation is dependent on the message type. 89 89 */ 90 uint8_t 90 uint8_t code; 91 91 /** The checksum is the 16-bit ones's complement of the one's complement sum of the ICMP message starting with the ICMP Type. 92 92 * For computing the checksum, the checksum field should be zero. 93 93 * If the checksum does not match the contents, the datagram is discarded. 94 94 */ 95 uint16_t 95 uint16_t checksum; 96 96 /** Message specific data. 97 97 */ … … 99 99 /** Echo specific data. 100 100 */ 101 icmp_echo_t 101 icmp_echo_t echo; 102 102 /** Proposed gateway value. 103 103 */ 104 in_addr_t 104 in_addr_t gateway; 105 105 /** Fragmentation needed specific data. 106 106 */ … … 109 109 * Must be zero. 110 110 */ 111 icmp_param_t 111 icmp_param_t reserved; 112 112 /** Proposed MTU. 113 113 */ 114 icmp_param_t 114 icmp_param_t mtu; 115 115 } frag; 116 116 /** Parameter problem specific data. … … 119 119 /** Problem pointer. 120 120 */ 121 icmp_param_t 121 icmp_param_t pointer; 122 122 /** Reserved field. 123 123 * Must be zero. 124 124 */ 125 icmp_param_t 125 icmp_param_t reserved; 126 126 } param; 127 127 } un;
Note:
See TracChangeset
for help on using the changeset viewer.