Score:0

Parsing dhcp-parameter-request-list

us flag

I am actually trying to parse the dhcp-parameter-request-list and see if it contains option 143 in the list. If it contains 143 option, then I have to respond with a 143 message with bootstrap server list.

But based on current eval options, I can only see whether option 55 exists in the request message. substring() also does not work, since I have to mention the offset and length to match, but 143 message can be anywhere in the parameter-request-list message.

Eg - option dhcp-parameter-request-list 1, 3, 43, 53, 54, 51, 58, 59, 143, 121;

Without knowing the offset, how can I parse this message and match if 143 option is a part of option dhcp-parameter-request-list?

if (exists dhcp-parameter-request-list) #55 { log(info, "YASH - SZTP5"); #This gets printed ## NEED TO CHECK WHETHER dhcp-parameter-request-list HAS 143 TYPE MESSAGE HERE. IF YES, THEN REPLY WITH - option OPTION_V4_SZTP_REDIRECT "https://172.16.24.1"; }

in flag
Perhaps Include the part of your config that so far works?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.