tcode Kea truncate after comma
-
I'm trying to add this:
{
"option-data": [
{
"name": "time-offset",
"data": "3600",
"always-send": true
},
{
"name": "tcode",
"data": "CET-1CEST,M3.5.0/2,M10.5.0/3",
"always-send": true
},
{
"name": "pcode",
"data": "CET-1CEST,M3.5.0/2,M10.5.0/3",
"always-send": true
}
]
}But Kea seems to truncate everything after the first comma in the string, so it only sends CET-1CEST for tcode and pcode. Is there a solution for this?
-
@ZzDown said in tcode Kea truncate after comma:
Is there a solution for this?
Maybe this :
Here : https://kb.isc.org/docs/standard-dhcp-options and locate :

Check this RFC4833 : https://datatracker.ietf.org/doc/html/rfc4833
and you find an example (and use it ones to check if kea accepts this string) :
EST5EDT4,M3.2.0/02:00,M11.1.0/02:00Compare with what you used :
CET-1CEST,M3.5.0/2,M10.5.0/3 -
@Gertjan Thanks for the hint! I saw that I had TCode wrong, but even with the example, PCode still gets truncated:
{
"option-data": [
{
"name": "time-offset",
"data": "3600"
},
{
"name": "tcode",
"data": "Europe/Zurich",
"always-send": true
},
{
"code": 100,
"data": "EST5EDT4,M3.2.0/02:00,M11.1.0/02:00"
}
]
}This is what Wireshark sees:
Option: (100) PCode Length: 8 TZ PCode: EST5EDT4 Option: (101) TCode Length: 13 TZ TCode: Europe/Zurich Option: (255) End