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
#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;
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