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