From f2f163adbda561f9a7ed4889f86f662b56094259 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Thu, 8 Jun 2006 16:33:53 +0000 Subject: [PATCH] Added comments about tunnel magic numbers --- dnstund.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnstund.c b/dnstund.c index 23f433c..a7fe8d2 100644 --- a/dnstund.c +++ b/dnstund.c @@ -97,9 +97,9 @@ tunnel(int tun_fd, int dns_fd) frame->flags = htons(0x0000); #ifdef LINUX - frame->proto = htons(0x0800); + frame->proto = htons(0x0800); // Linux wants ETH_P_IP #else - frame->proto = htons(0x0002); + frame->proto = htons(0x0002); // BSD wants AF_INET as long word #endif write_tun(tun_fd, frame, buflen + 4); }