Changes in uspace/lib/net/include/icmp_header.h [ffaba00:88a1bb9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/icmp_header.h
rffaba00 r88a1bb9 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; 48 53 49 54 /** Echo specific data. */ 50 typedefstruct icmp_echo {55 struct icmp_echo { 51 56 /** Message idintifier. */ 52 57 icmp_param_t identifier; 53 58 /** Message sequence number. */ 54 59 icmp_param_t sequence_number; 55 } __attribute__((packed)) icmp_echo_t; 60 } __attribute__ ((packed)); 61 62 /** Type definition of the internet control message header. 63 * @see icmp_header 64 */ 65 typedef struct icmp_header icmp_header_t; 56 66 57 67 /** Internet control message header. */ 58 typedefstruct icmp_header {68 struct icmp_header { 59 69 /** The type of the message. */ 60 70 uint8_t type; … … 73 83 */ 74 84 uint16_t checksum; 75 85 76 86 /** Message specific data. */ 77 87 union { 78 88 /** Echo specific data. */ 79 icmp_echo_t echo;89 icmp_echo_t echo; 80 90 /** Proposed gateway value. */ 81 91 in_addr_t gateway; … … 97 107 } param; 98 108 } un; 99 } __attribute__ ((packed)) icmp_header_t;109 } __attribute__ ((packed)); 100 110 101 111 #endif
Note:
See TracChangeset
for help on using the changeset viewer.