diff options
author | John Denker <jsd@av8n.com> | 2012-07-26 10:57:13 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-07-29 15:32:37 -0700 |
commit | 9aa998757a8736cef02fd92050eacbb2a6fb5180 (patch) | |
tree | 18ae3d172893279aecaf12df94cb468bf887aa72 /ucspi-tcp-0.88/dns_ip.c | |
parent | 6e8083ff4ffe3fd2b6d337386637a2b5c1378cf7 (diff) |
patch to support IPv6 in tcpserver
Diffstat (limited to 'ucspi-tcp-0.88/dns_ip.c')
-rw-r--r-- | ucspi-tcp-0.88/dns_ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ucspi-tcp-0.88/dns_ip.c b/ucspi-tcp-0.88/dns_ip.c index fb0526c..e7c3a9a 100644 --- a/ucspi-tcp-0.88/dns_ip.c +++ b/ucspi-tcp-0.88/dns_ip.c @@ -3,7 +3,7 @@ #include "byte.h" #include "dns.h" -int dns_ip4_packet(stralloc *out,char *buf,unsigned int len) +int dns_ip4_packet(stralloc *out,const char *buf,unsigned int len) { unsigned int pos; char header[12]; @@ -36,7 +36,7 @@ int dns_ip4_packet(stralloc *out,char *buf,unsigned int len) static char *q = 0; -int dns_ip4(stralloc *out,stralloc *fqdn) +int dns_ip4(stralloc *out,const stralloc *fqdn) { unsigned int i; char code; |