#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <asm/types.h>
Define Documentation
#define HIT_RCVR "0x20010010000000000000000000000002" |
#define HIT_SNDR "0x20010010000000000000000000000001" |
Referenced by build_hdrr(), hip_dht_publish_hit(), hip_generate_R1(), hip_parse_hdr(), hip_send_close(), hip_send_I1(), hip_send_I2(), hip_send_notify(), hip_send_proxy_update(), hip_send_R2(), hip_send_update(), hip_send_update_locators(), hip_send_update_proxy_ticket(), main(), and parse_hdrr().
#define IPV4_DST "0xc0a80002" |
#define IPV4_PSEUDO_SIZE 12 |
#define IPV4_SRC "0xc0a80001" |
#define IPV6_PSEUDO_SIZE 40 |
Typedef Documentation
Function Documentation
static __u16 checksum_packet |
( |
char * |
data, |
|
|
__u32 |
src, |
|
|
__u32 |
dst |
|
) |
| [static] |
static int hex_to_bin |
( |
char * |
src, |
|
|
char * |
dst, |
|
|
int |
dst_len |
|
) |
| [static] |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
References _hiphdr::checksum, checksum_packet(), _hiphdr::control, hex_to_bin(), HIP_I1, HIP_UDP_PORT, HIP_VERSION, _hiphdr::hit_rcvr, HIT_RCVR, HIT_SIZE, _hiphdr::hit_sndr, HIT_SNDR, IPPROTO_NONE, IPV4_DST, IPV4_PSEUDO_SIZE, IPV4_SRC, IPV6_PSEUDO_SIZE, _hiphdr::next_hdr, _hiphdr::packet_type, _hiphdr::payload_len, _hiphdr::res, and _hiphdr::version.