#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <time.h>#include <ctype.h>#include <sys/types.h>#include <openssl/crypto.h>#include <openssl/bn.h>#include <openssl/des.h>#include <openssl/blowfish.h>#include <openssl/aes.h>#include <openssl/dsa.h>#include <openssl/dh.h>#include <openssl/sha.h>#include <openssl/rand.h>#include <openssl/err.h>#include <asm/types.h>#include <unistd.h>#include <sys/time.h>#include <sys/uio.h>#include <pthread.h>#include <netinet/ip.h>#include <linux/pfkeyv2.h>#include <hip/hip_types.h>#include <hip/hip_proto.h>#include <hip/hip_globals.h>#include <hip/hip_funcs.h>Functions | |
| int | hip_check_bind (struct sockaddr *src, int use_udp, int num_attempts) |
| int | build_tlv_dh (__u8 *data, __u8 group_id, DH *dh, int debug) |
| int | build_tlv_transform (__u8 *data, int type, __u16 transforms[], __u16 single) |
| int | build_tlv_echo_response (__u16 type, __u16 length, __u8 *buff, __u8 *data) |
| int | build_tlv_signature (hi_node *hi, __u8 *data, int location, int R1) |
| int | build_tlv_hmac (hip_assoc *hip_a, __u8 *data, int location, int type) |
| int | build_tlv_reg_info (__u8 *data, int location) |
| int | build_tlv_reg_req (__u8 *data, int location, int lifetime1, int reg_type1) |
| int | build_tlv_reg_resp (__u8 *data, int location, int lifetime1, int reg_type1) |
| int | build_tlv_reg_failed (__u8 *data, int location, int fail_type1, int fail_reg_type1) |
| int | build_tlv_rvs_hmac (hip_assoc *hip_a, __u8 *data, int location, int type, int pos) |
| int | hip_send_I1 (hip_hit *hit, hip_assoc *hip_a, int pos) |
| int | hip_send_R1 (struct sockaddr *src, struct sockaddr *dst, hip_hit *hiti, hi_node *hi, __u16 dst_port, int use_udp) |
| int | hip_generate_R1 (__u8 *data, hi_node *hi, hipcookie *cookie, dh_cache_entry *dh_entry) |
| int | hip_send_I2 (hip_assoc *hip_a) |
| int | hip_send_R2 (hip_assoc *hip_a) |
| int | hip_send_update (hip_assoc *hip_a, struct sockaddr *newaddr, struct sockaddr *dstaddr, int use_udp) |
| int | hip_send_close (hip_assoc *hip_a, int send_ack) |
| int | hip_send_notify (hip_assoc *hip_a, int code, __u8 *data, int data_len) |
| int | hip_send (__u8 *data, int len, struct sockaddr *src, struct sockaddr *dst, hip_assoc *hip_a, int retransmit, __u16 dst_port, int use_udp) |
| int | hip_retransmit (hip_assoc *hip_a, __u8 *data, int len, struct sockaddr *src, struct sockaddr *dst) |
| int | build_tlv_hostid_len (hi_node *hi, int use_hi_name) |
| int | build_tlv_hostid (__u8 *data, hi_node *hi, int use_hi_name) |
| int | build_tlv_reg_required () |
| int | build_rekey (hip_assoc *hip_a) |
| int build_rekey | ( | hip_assoc * | hip_a | ) |
| int build_tlv_hostid_len | ( | hi_node * | hi, | |
| int | use_hi_name | |||
| ) |
| int build_tlv_reg_failed | ( | __u8 * | data, | |
| int | location, | |||
| int | fail_type1, | |||
| int | fail_reg_type1 | |||
| ) |
| int build_tlv_reg_info | ( | __u8 * | data, | |
| int | location | |||
| ) |
| int build_tlv_reg_req | ( | __u8 * | data, | |
| int | location, | |||
| int | lifetime1, | |||
| int | reg_type1 | |||
| ) |
| int build_tlv_reg_required | ( | ) |
| int build_tlv_reg_resp | ( | __u8 * | data, | |
| int | location, | |||
| int | lifetime1, | |||
| int | reg_type1 | |||
| ) |
| int hip_check_bind | ( | struct sockaddr * | src, | |
| int | use_udp, | |||
| int | num_attempts | |||
| ) |
| int hip_generate_R1 | ( | __u8 * | data, | |
| hi_node * | hi, | |||
| hipcookie * | cookie, | |||
| dh_cache_entry * | dh_entry | |||
| ) |
| int hip_retransmit | ( | hip_assoc * | hip_a, | |
| __u8 * | data, | |||
| int | len, | |||
| struct sockaddr * | src, | |||
| struct sockaddr * | dst | |||
| ) |
| int hip_send | ( | __u8 * | data, | |
| int | len, | |||
| struct sockaddr * | src, | |||
| struct sockaddr * | dst, | |||
| hip_assoc * | hip_a, | |||
| int | retransmit, | |||
| __u16 | dst_port, | |||
| int | use_udp | |||
| ) |
| int hip_send_close | ( | hip_assoc * | hip_a, | |
| int | send_ack | |||
| ) |
| int hip_send_I2 | ( | hip_assoc * | hip_a | ) |
| int hip_send_R1 | ( | struct sockaddr * | src, | |
| struct sockaddr * | dst, | |||
| hip_hit * | hiti, | |||
| hi_node * | hi, | |||
| __u16 | dst_port, | |||
| int | use_udp | |||
| ) |
| int hip_send_R2 | ( | hip_assoc * | hip_a | ) |
| int hip_send_update | ( | hip_assoc * | hip_a, | |
| struct sockaddr * | newaddr, | |||
| struct sockaddr * | dstaddr, | |||
| int | use_udp | |||
| ) |
1.5.1