]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Subnet OPT assigned by IANA
authorYuri Schaeffer <yuri@nlnetlabs.nl>
Wed, 10 Jul 2013 12:36:48 +0000 (12:36 +0000)
committerYuri Schaeffer <yuri@nlnetlabs.nl>
Wed, 10 Jul 2013 12:36:48 +0000 (12:36 +0000)
git-svn-id: file:///svn/unbound/branches/edns-subnet@2919 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/unbound.conf.5.in
edns-subnet/edns-subnet.c
util/config_file.c

index 89c916e9680338d58c8670ddbd65afbf8a348de8..bc520d3a94477504512747cb3d6173aabff13087 100644 (file)
@@ -911,8 +911,7 @@ Send client source address to this authority. Can be IP4 or IP6. Append
 10.2.3.4/24 or 2001::11/64.
 .TP 5
 .B client\-subnet\-opcode: \fI<number>
-Client subnet option code is not assigned by IANA. Specify positive
-integer smaller than 65536. Defaults to 20730.
+Specify positive integer smaller than 65536. Defaults to 8.
 .TP 5
 .B max\-client\-subnet\-ipv6: \fI<number>
 Specifies the maximum prefix length of the client source address we
index ee27b57102bf3f29ebd88d07e62f89225d6f0cbf..a658126fd0225d4094bee074332b9b1d150db83a 100644 (file)
@@ -15,8 +15,8 @@
 #include "edns-subnet/edns-subnet.h"
 #include <string.h>
 
-/** Opcode for edns subnet option, is TBD. */
-uint16_t EDNSSUBNET_OPCODE = 0x50fa;
+/** Opcode for edns subnet option, as assigned by IANA. */
+uint16_t EDNSSUBNET_OPCODE = 8;
 uint8_t EDNSSUBNET_MAX_SUBNET_IP4 = 24;
 uint8_t EDNSSUBNET_MAX_SUBNET_IP6 = 64;
 
index 6a2894204933f444a7099ae7644b5cef4dfc4c77..ceab04ae6658221deaf813c5d5f0d350602058d4 100644 (file)
@@ -161,9 +161,7 @@ config_create(void)
        cfg->forwards = NULL;
 #ifdef CLIENT_SUBNET
        cfg->client_subnet = NULL;
-       /* OPC Not assigned yet! taken from http://wilmer.gaa.st/
-        * edns-client-subnet/bind-9.7.1-dig-edns-client-subnet.diff */
-       cfg->client_subnet_opcode = 0x50fa;
+       cfg->client_subnet_opcode = 8;
        cfg->max_client_subnet_ipv4 = 24;
        cfg->max_client_subnet_ipv6 = 64;
 #endif