1
0
mirror of https://code.semirocket.science/wrapsix synced 2024-09-19 23:11:04 +03:00
wrapsix/wrapper/storage.h
xHire e7d8a4c1dd Completed TCP with fragmenting in IPv6 packets
Modified TCP in 6to4 way to use special IP address
2009-01-10 19:15:49 +01:00

44 lines
881 B
C

#ifndef STORAGE_H
#define STORAGE_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <netinet/in.h>
#include "jsw_rbtree.h"
#include "wrapper.h"
struct stg_conn_tup {
unsigned short port;
struct in_addr addr_to;
struct in6_addr addr_from;
struct s_mac_addr mac;
time_t time;
unsigned int packet_num;
};
struct stg_conn_icmp {
unsigned short id;
struct in_addr addr_to;
struct in6_addr addr_from;
struct s_mac_addr mac;
unsigned char is_ping;
time_t time;
};
int stg_conn_tup_cmp(const void *p1, const void *p2);
void *stg_conn_tup_dup(void *p);
void stg_conn_tup_rel(void *p);
int stg_conn_icmp_cmp(const void *p1, const void *p2);
void *stg_conn_icmp_dup(void *p);
void stg_conn_icmp_rel(void *p);
extern jsw_rbtree_t *stg_conn_tcp;
extern jsw_rbtree_t *stg_conn_udp;
extern jsw_rbtree_t *stg_conn_icmp;
#endif