Changes in uspace/lib/net/include/icmp_header.h [ffaba00:a26b9e3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/icmp_header.h
rffaba00 ra26b9e3 45 45 46 46 /** ICMP header size in bytes. */ 47 #define ICMP_HEADER_SIZE sizeof(icmp_header_t) 47 #define ICMP_HEADER_SIZE sizeof(icmp_header_t) 48 49 /** Type definition of the echo specific data. 50 * @see icmp_echo 51 */ 52 typedef struct icmp_echo icmp_echo_t; 53 54 /** Type definition of the echo specific data pointer. 55 * @see icmp_echo 56 */ 57 typedef icmp_echo_t *icmp_echo_ref; 48 58 49 59 /** Echo specific data. */ 50 typedefstruct icmp_echo {60 struct icmp_echo { 51 61 /** Message idintifier. */ 52 62 icmp_param_t identifier; 53 63 /** Message sequence number. */ 54 64 icmp_param_t sequence_number; 55 } __attribute__((packed)) icmp_echo_t; 65 } __attribute__ ((packed)); 66 67 /** Type definition of the internet control message header. 68 * @see icmp_header 69 */ 70 typedef struct icmp_header icmp_header_t; 71 72 /** Type definition of the internet control message header pointer. 73 * @see icmp_header 74 */ 75 typedef icmp_header_t *icmp_header_ref; 56 76 57 77 /** Internet control message header. */ 58 typedefstruct icmp_header {78 struct icmp_header { 59 79 /** The type of the message. */ 60 80 uint8_t type; … … 73 93 */ 74 94 uint16_t checksum; 75 95 76 96 /** Message specific data. */ 77 97 union { 78 98 /** Echo specific data. */ 79 icmp_echo_t echo;99 icmp_echo_t echo; 80 100 /** Proposed gateway value. */ 81 101 in_addr_t gateway; … … 97 117 } param; 98 118 } un; 99 } __attribute__ ((packed)) icmp_header_t;119 } __attribute__ ((packed)); 100 120 101 121 #endif
Note:
See TracChangeset
for help on using the changeset viewer.