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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy