From e5138b6adb7f5000ee7024456ade966250df4df9 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Mon, 5 Jun 2006 23:38:23 +0000 Subject: [PATCH] prepend correct header --- dnstun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnstun.c b/dnstun.c index 0b730c7..289dac0 100644 --- a/dnstun.c +++ b/dnstun.c @@ -89,8 +89,8 @@ tunnel(int tun_fd, int dns_fd) if (read > 0) { printf("Got data on dns! %d bytes\n", read); - frame->flags = 0x0000; - frame->proto = 0x0800; + frame->flags = htons(0x0000); + frame->proto = htons(0x0800); write_tun(tun_fd, frame, read + 4); } }