another stray comment

This commit is contained in:
chris hellberg 2021-12-30 00:32:32 -05:00
parent 8ee7290502
commit 883ef8ba57

View file

@ -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;