From 51bdcd965684fa2978b49aace1357b82b25aec96 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Mon, 5 Jun 2006 23:38:30 +0000 Subject: [PATCH] prepend correct header --- dnstund.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnstund.c b/dnstund.c index 80f486c..a8217ce 100644 --- a/dnstund.c +++ b/dnstund.c @@ -77,8 +77,8 @@ tunnel(int tun_fd, int dns_fd) if(FD_ISSET(dns_fd, &fds)) { read = dnsd_read(dns_fd, frame->data, 64*1024-4); if(read > 0) { - frame->flags = 0x0000; - frame->proto = 0x0800; + frame->flags = htons(0x0000); + frame->proto = htons(0x0800); write_tun(tun_fd, frame, read + 4); } }