[Kea-users] Option 82 delimiter

Travis C - Surf BB tchesna at surfbroadband.com
Mon Feb 7 18:27:22 UTC 2022


Good call. It is stored the same way, thanks! -Travis

On 2/7/2022 11:20 AM, Frey, Rick E wrote:
>
> I’m using memfile (CSV) for leases so not sure if format differs from 
> SQL, but CSV format for user_context field is JSON with attribute name 
> of “relay-agent-info” and the value is entire option 82 hex value as 
> sent over wire.   Assuming SQL value is same, you could parse hex 
> value into sub options 1 and 2 per RFC 3046:
>
> https://datatracker.ietf.org/doc/html/rfc3046#page-8
>
> *From: *Kea-users <kea-users-bounces at lists.isc.org> on behalf of 
> Travis C - Surf BB <tchesna at surfbroadband.com>
> *Date: *Monday, February 7, 2022 at 7:32 AM
> *To: *kea-users at lists.isc.org <kea-users at lists.isc.org>
> *Subject: *[Kea-users] Option 82 delimiter
>
> CAUTION: This email originated from outside of the organization. Do 
> not click links or open attachments unless you recognize the sender 
> and know the content is safe.
>
>
> Is there a delimiter or a way to pull the sub-option 2 from option 82
> when it is stored in the user context through the store-extended-info
> flag? I am using sql for storing leases. So far I do not see a
> delimiter, I just see the two sub-options merged together and then stored.
>
> Does anyone have any ideas on a good way to store just the sub-option 2
> so it can be recalled? The end goal that I need is IP, hwaddr, and
> option82 suboption2. I cant definitively say that suboption 2 will be a
> mac address, or X amount of characters, otherwise it wouldnt be too
> difficult. I was thinking about using a script and writing into another
> table, but that feels sloppy to me and a good way for something to get
> missed or out of sync.
>
> Thanks, Travis
>
> --
> ISC funds the development of this software with paid support 
> subscriptions. Contact us at 
> https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.isc.org%2Fcontact%2F&data=04%7C01%7Crick.frey%40windstream.com%7C220d864b33c94dcdbbdd08d9ea3e1c25%7C2567b4c1b0ed40f5aee358d7c5f3e2b2%7C0%7C0%7C637798375501489433%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=tTni89SKp8RGcJW3Qf9lbrFtarZRiO7q%2FsffK5Blg4k%3D&reserved=0 
> <https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.isc.org%2Fcontact%2F&data=04%7C01%7Crick.frey%40windstream.com%7C220d864b33c94dcdbbdd08d9ea3e1c25%7C2567b4c1b0ed40f5aee358d7c5f3e2b2%7C0%7C0%7C637798375501489433%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=tTni89SKp8RGcJW3Qf9lbrFtarZRiO7q%2FsffK5Blg4k%3D&reserved=0> 
> for more information.
>
> To unsubscribe visit 
> https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=04%7C01%7Crick.frey%40windstream.com%7C220d864b33c94dcdbbdd08d9ea3e1c25%7C2567b4c1b0ed40f5aee358d7c5f3e2b2%7C0%7C0%7C637798375501489433%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=9S3MqhlYv5eTaGs4W2ke%2FfMdvgwJ3CXw%2FiQgEGmZGkE%3D&reserved=0 
> <https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=04%7C01%7Crick.frey%40windstream.com%7C220d864b33c94dcdbbdd08d9ea3e1c25%7C2567b4c1b0ed40f5aee358d7c5f3e2b2%7C0%7C0%7C637798375501489433%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=9S3MqhlYv5eTaGs4W2ke%2FfMdvgwJ3CXw%2FiQgEGmZGkE%3D&reserved=0>.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=04%7C01%7Crick.frey%40windstream.com%7C220d864b33c94dcdbbdd08d9ea3e1c25%7C2567b4c1b0ed40f5aee358d7c5f3e2b2%7C0%7C0%7C637798375501489433%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=9S3MqhlYv5eTaGs4W2ke%2FfMdvgwJ3CXw%2FiQgEGmZGkE%3D&reserved=0 
> <https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=04%7C01%7Crick.frey%40windstream.com%7C220d864b33c94dcdbbdd08d9ea3e1c25%7C2567b4c1b0ed40f5aee358d7c5f3e2b2%7C0%7C0%7C637798375501489433%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=9S3MqhlYv5eTaGs4W2ke%2FfMdvgwJ3CXw%2FiQgEGmZGkE%3D&reserved=0>
>
>
> Sensitivity: Internal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220207/18d86a82/attachment-0001.htm>


More information about the Kea-users mailing list