mirror of
https://code.semirocket.science/wrapsix
synced 2024-11-10 08:10:59 +02:00
4bc68edce5
Written new mechanism of wrapper from scratch in C * It listens to all ICMPv6 packets (for now) and translates them to ICMPv4 ones * It can compute the checksum of the packet as well
16 lines
272 B
C
16 lines
272 B
C
#ifndef TRANSLATE_IP_H
|
|
#define TRANSLATE_IP_H
|
|
|
|
struct ip6addr_ip4part {
|
|
long double prefix;
|
|
unsigned char a;
|
|
unsigned char b;
|
|
unsigned char c;
|
|
unsigned char d;
|
|
};
|
|
|
|
struct in_addr ipaddr_6to4(struct in6_addr ip6_addr);
|
|
//in6_addr ipaddr_4to6(in_addr ip_addr);
|
|
|
|
#endif
|