Hello. 

I am trying to make a client class that matches value of suboption 150 of 
option 82 

The definition of a client class is the following: 

{ 

"name":"GponTestMGM", 

"test":"option[82].option[150].hex == '100.65.160.0'" 

} 

But in the logs 

2021-08-24 17:17:42.039 ERROR [kea-dhcp4.bad-packets/2749.140283961850048] 
DHCP4_PACKET_NAK_0001 [hwtype=1 60:f1:8a:be:5c:18], cid=[01:60:f1:8a:be:5c:18], 
tid=0x55155455: failed to select a subnet for incoming packet, src 
100.65.160.1, type DHCPDISCOVER 

2021-08-24 17:17:45.139 DEBUG [kea-dhcp4.packets/2749.140283961850048] 
DHCP4_BUFFER_RECEIVED received buffer from 100.65.160.1:67 to 10.255.255.186:67 
over interface eno3 

2021-08-24 17:17:45.139 DEBUG [kea-dhcp4.options/2749.140283961850048] 
DHCP4_BUFFER_UNPACK parsing buffer received from 100.65.160.1 to 10.255.255.186 
over interface eno3 

2021-08-24 17:17:45.139 DEBUG [kea-dhcp4.eval/2749.140283961850048] 
EVAL_DEBUG_OPTION Pushing option 60 with value 0x 

2021-08-24 17:17:45.139 DEBUG [kea-dhcp4.eval/2749.140283961850048] 
EVAL_DEBUG_STRING Pushing text string '0' 

2021-08-24 17:17:45.139 DEBUG [kea-dhcp4.eval/2749.140283961850048] 
EVAL_DEBUG_STRING Pushing text string '6' 

2021-08-24 17:17:45.139 DEBUG [kea-dhcp4.eval/2749.140283961850048] 
EVAL_DEBUG_SUBSTRING_EMPTY Popping length 6, start 0, string 0x pushing result 
0x 

2021-08-24 17:17:45.139 DEBUG [kea-dhcp4.eval/2749.140283961850048] 
EVAL_DEBUG_STRING Pushing text string 'Aastra' 

2021-08-24 17:17:45.139 DEBUG [kea-dhcp4.eval/2749.140283961850048] 
EVAL_DEBUG_EQUAL Popping 0x416173747261 and 0x pushing result 'false' 

2021-08-24 17:17:45.139 DEBUG [kea-dhcp4.options/2749.140283961850048] 
EVAL_RESULT Expression voiP evaluated to 0 

2021-08-24 17:17:45.139 DEBUG [kea-dhcp4.eval/2749.140283961850048] 
EVAL_DEBUG_SUB_OPTION Pushing option 82 sub-option 150 with value 0x6441A000 

2021-08-24 17:17:45.140 DEBUG [kea-dhcp4.eval/2749.140283961850048] 
EVAL_DEBUG_STRING Pushing text string '100.65.160.0' 

2021-08-24 17:17:45.140 DEBUG [kea-dhcp4.eval/2749.140283961850048] 
EVAL_DEBUG_EQUAL Popping 0x3130302E36352E3136302E30 and 0x6441A000 pushing 
result 'false' 

2021-08-24 17:17:45.140 DEBUG [kea-dhcp4.options/2749.140283961850048] 
EVAL_RESULT Expression GponTestMGM evaluated to 0 

2021-08-24 17:17:45.140 DEBUG [kea-dhcp4.packets/2749.140283961850048] 
DHCP4_PACKET_RECEIVED [hwtype=1 60:f1:8a:be:5c:18], cid=[01:60:f1:8a:be:5c:18], 
tid=0x55155455: DHCPDISCOVER (type 1) received from 100.65.160.1 to 
10.255.255.186 on interface eno3 



In the wireshark capture I clearly see that suboption 150 of option 82 is = 
100.65.160.0(screen in attachment) 



Why client class GponTestMGM isn’t matched to this “Discover”? 

Thanks! 
_______________________________________________
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to