1
0
mirror of https://code.semirocket.science/wrapsix synced 2024-11-10 08:10:59 +02:00
wrapsix/wrapper/translate_ip.h
xHire 4bc68edce5 Improved creating of a socket for the resolver
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
2008-12-31 13:41:21 +01:00

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