mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-23 05:43:32 +02:00
another stray comment
This commit is contained in:
parent
8ee7290502
commit
883ef8ba57
1 changed files with 0 additions and 4 deletions
|
@ -552,7 +552,6 @@ write_tun(int tun_fd, char *data, size_t len)
|
|||
#ifdef LINUX
|
||||
|
||||
if (i == 64) {
|
||||
fprintf(stderr, "IPv4 packet\n");
|
||||
// Look at the fifth bype
|
||||
// Linux prefixes with 32 bits ethertype
|
||||
// 0x0800 for IPv4, 0x86DD for IPv6
|
||||
|
@ -561,7 +560,6 @@ write_tun(int tun_fd, char *data, size_t len)
|
|||
data[2] = 0x08;
|
||||
data[3] = 0x00;
|
||||
} else { /* 96 for IPV6 */
|
||||
fprintf(stderr, "IPv6 packet\n");
|
||||
data[0] = 0x00;
|
||||
data[1] = 0x00;
|
||||
data[2] = 0x86;
|
||||
|
@ -571,13 +569,11 @@ write_tun(int tun_fd, char *data, size_t len)
|
|||
// BSDs prefix with 32 bits address family
|
||||
// AF_INET for IPv4, AF_INET6 for IPv6
|
||||
if (i == 64) {
|
||||
fprintf(stderr, "IPv4 packet\n");
|
||||
data[0] = 0x00;
|
||||
data[1] = 0x00;
|
||||
data[2] = 0x00;
|
||||
data[3] = 0x02;
|
||||
} else { /* 96 for IPV6 */
|
||||
fprintf(stderr, "IPv6 packet\n");
|
||||
data[0] = 0x00;
|
||||
data[1] = 0x00;
|
||||
data[2] = 0x00;
|
||||
|
|
Loading…
Reference in a new issue