tools/src/DTNTun/ip.h File Reference
#include <inttypes.h>
#include <arpa/inet.h>
Go to the source code of this file.
Define Documentation
Definition at line 7 of file ip.h.
| #define GET_UINT16 |
( |
buffer, |
|
|
position |
|
) |
( ntohs( *(_noalign uint16_t *)(buffer+position) ) ) |
Definition at line 44 of file ip.h.
| #define GET_UINT32 |
( |
buffer, |
|
|
position |
|
) |
( ntohl( *(_noalign uint32_t *)(buffer+position) ) ) |
Definition at line 35 of file ip.h.
| #define ICMP_ECHO_IDENTIFIER 4 |
Definition at line 33 of file ip.h.
| #define ICMP_ECHO_REPLY 0 |
| #define ICMP_ECHO_REQUEST 8 |
| #define ICMP_ECHO_SEQNUMBER 6 |
Definition at line 34 of file ip.h.
| #define IP_VERSION_AND_HEADERLENGTH 0 |
Definition at line 11 of file ip.h.
| #define IPV4_DESTINATION 16 |
| #define IPV4_FLAGS_AND_FRAGMENT_OFSET 6 |
Definition at line 15 of file ip.h.
| #define IPV4_IDENTFICATION 4 |
Definition at line 14 of file ip.h.
Definition at line 13 of file ip.h.
Definition at line 16 of file ip.h.
| #define IPV4_TYPE_OF_SERVICE 1 |
Definition at line 12 of file ip.h.
| #define SET_UINT16 |
( |
buffer, |
|
|
position, |
|
|
data |
|
) |
( *( _noalign uint16_t *)(buffer+position)=htons(data) ) |
| #define SET_UINT32 |
( |
buffer, |
|
|
position, |
|
|
data |
|
) |
( *( _noalign uint32_t *)(buffer+position)=htonl(data) ) |