diff options
| author | 2001-09-14 23:49:29 +0000 | |
|---|---|---|
| committer | 2001-09-14 23:49:29 +0000 | |
| commit | deefab4918cde0a21631811e1f2c4e02536ec1fd (patch) | |
| tree | 9b230dc444457606be65c2c91e1ae68d3d2abd8e /lib/libc/net/res_init.c | |
| parent | binat non icmp/udp/tcp protocols as well; ok dhartmei@ (diff) | |
| download | wireguard-openbsd-deefab4918cde0a21631811e1f2c4e02536ec1fd.tar.xz wireguard-openbsd-deefab4918cde0a21631811e1f2c4e02536ec1fd.zip | |
add "options insecure[12]" support for /etc/resolv.conf.
insecure1 is necessary for IPv6 dynamic DNS server discovery,
draft-ietf-ipngwg-dns-discovery-02.txt. sync with kame.
ok'ed by angelos
Diffstat (limited to 'lib/libc/net/res_init.c')
| -rw-r--r-- | lib/libc/net/res_init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/net/res_init.c b/lib/libc/net/res_init.c index d21eed4a878..c74e0339bad 100644 --- a/lib/libc/net/res_init.c +++ b/lib/libc/net/res_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_init.c,v 1.23 2001/06/30 00:50:21 itojun Exp $ */ +/* $OpenBSD: res_init.c,v 1.24 2001/09/14 23:49:29 itojun Exp $ */ /* * ++Copyright++ 1985, 1989, 1993 @@ -64,7 +64,7 @@ static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; static char rcsid[] = "$From: res_init.c,v 8.7 1996/09/28 06:51:07 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: res_init.c,v 1.23 2001/06/30 00:50:21 itojun Exp $"; +static char rcsid[] = "$OpenBSD: res_init.c,v 1.24 2001/09/14 23:49:29 itojun Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -607,6 +607,10 @@ res_setoptions(options, source) #endif } else if (!strncmp(cp, "inet6", sizeof("inet6") - 1)) { _res.options |= RES_USE_INET6; + } else if (!strncmp(cp, "insecure1", sizeof("insecure1") - 1)) { + _res.options |= RES_INSECURE1; + } else if (!strncmp(cp, "insecure2", sizeof("insecure2") - 1)) { + _res.options |= RES_INSECURE2; } else if (!strncmp(cp, "edns0", sizeof("edns0") - 1)) { _res.options |= RES_USE_EDNS0; } else { |
