summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/parse.y
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-09-10 11:59:23 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-09-10 11:59:23 +0000
commitb14b87d182b30166aaaee000506e869c4d1ebe8a (patch)
tree3b27c9614cace9547acfb62f3cdad0078951a01a /usr.sbin/relayd/parse.y
parentb7f3134a110c4e84f093227c029085ffdc7c8bae (diff)
add support for relaying DNS traffic (with a little bit of packet
header randomization). this adds an infrastructure to support UDP-based protocols. ok gilles@, tested by some
Diffstat (limited to 'usr.sbin/relayd/parse.y')
-rw-r--r--usr.sbin/relayd/parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y
index c0a0b1e47c5..53ea7fedd00 100644
--- a/usr.sbin/relayd/parse.y
+++ b/usr.sbin/relayd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.53 2007/09/07 07:54:58 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.54 2007/09/10 11:59:22 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -181,6 +181,8 @@ proto_type : TCP { $$ = RELAY_PROTO_TCP; }
| STRING {
if (strcmp("http", $1) == 0) {
$$ = RELAY_PROTO_HTTP;
+ } else if (strcmp("dns", $1) == 0) {
+ $$ = RELAY_PROTO_DNS;
} else {
yyerror("invalid protocol type: %s", $1);
free($1);