Lines Matching refs:option

139 	bool NextOption(dhcp_option_cookie& cookie, message_option& option,
146 uint8* PutOption(uint8* options, message_option option);
147 uint8* PutOption(uint8* options, message_option option, uint8 data);
148 uint8* PutOption(uint8* options, message_option option, uint16 data);
149 uint8* PutOption(uint8* options, message_option option, uint32 data);
150 uint8* PutOption(uint8* options, message_option option, const uint8* data,
206 message_option& option, const uint8*& data, size_t& size) const
239 // handle option overload in file and/or server_name fields.
259 // if last option is not OPTION_END,
260 // there is no space left for other option!
261 if (option != OPTION_END)
272 option = (message_option)cookie.next[0];
273 if (option == OPTION_END) {
276 } else if (option == OPTION_PAD) {
287 if (option == OPTION_OVERLOAD) {
302 message_option option;
305 while (NextOption(cookie, option, data, size)) {
307 if (option == which)
319 message_option option;
322 while (NextOption(cookie, option, data, size)) {
347 // if last option is stored above "options" field, it means
368 dhcp_message::PutOption(uint8* options, message_option option)
370 options[0] = option;
376 dhcp_message::PutOption(uint8* options, message_option option, uint8 data)
378 return PutOption(options, option, &data, 1);
383 dhcp_message::PutOption(uint8* options, message_option option, uint16 data)
385 return PutOption(options, option, (uint8*)&data, sizeof(data));
390 dhcp_message::PutOption(uint8* options, message_option option, uint32 data)
392 return PutOption(options, option, (uint8*)&data, sizeof(data));
397 dhcp_message::PutOption(uint8* options, message_option option,
402 options[0] = option;
577 int option = 1;
578 setsockopt(socket, SOL_SOCKET, SO_REUSEPORT, &option, sizeof(option));
583 option = 1;
584 setsockopt(socket, SOL_SOCKET, SO_BROADCAST, &option, sizeof(option));
788 message_option option;
791 while (message.NextOption(cookie, option, data, size)) {
793 switch (option) {
877 (uint32)option, (uint32)option);