Searched refs:OPT_LEN (Results 1 - 19 of 19) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/networking/udhcp/
H A Doptions.c87 if (i + 1 + optionptr[i + OPT_LEN] >= length) {
98 if (i + 1 + optionptr[i + OPT_LEN] >= length) {
103 i += optionptr[OPT_LEN] + 2;
119 i += optionptr[OPT_LEN + i] + 2;
133 else i += optionptr[i + OPT_LEN] + 2;
146 if (end + string[OPT_LEN] + 2 + 1 >= 308) {
152 memcpy(optionptr + end, string, string[OPT_LEN] + 2);
153 optionptr[end + string[OPT_LEN] + 2] = DHCP_END;
154 return string[OPT_LEN] + 2;
169 option[OPT_LEN]
[all...]
H A Dfiles.c105 new->data[OPT_LEN] = length;
128 existing->data[OPT_LEN], buffer, &length);
130 if (existing->data[OPT_LEN] + length <= 255) {
132 existing->data[OPT_LEN] + length + 3);
135 if (existing->data[OPT_LEN] + length >= 255)
138 existing->data[existing->data[OPT_LEN] + 2] = ' ';
139 existing->data[OPT_LEN]++;
141 memcpy(existing->data + existing->data[OPT_LEN] + 2, buffer, length);
142 existing->data[OPT_LEN] += length;
H A Doptions.h97 #define OPT_LEN 1 macro
H A Dclientpacket.c68 packet->options[end + OPT_LEN] = len;
H A Dpacket.c64 if (vendor[OPT_LEN - 2] == (uint8_t)(sizeof("MSFT 98")-1)
H A Dscript.c68 len = option[OPT_LEN - 2];
H A Ddhcpc.c137 storage[OPT_LEN] = len + extra;
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/udhcpd/
H A Doptions.c97 if (i + 1 + optionptr[i + OPT_LEN] >= length) {
108 if (i + 1 + optionptr[i + OPT_LEN] >= length) {
113 i += optionptr[OPT_LEN] + 2;
129 i += optionptr[OPT_LEN + i] + 2;
143 else i += optionptr[i + OPT_LEN] + 2;
156 if (end + string[OPT_LEN] + 2 + 1 >= 308) {
161 memcpy(optionptr + end, string, string[OPT_LEN] + 2);
162 optionptr[end + string[OPT_LEN] + 2] = DHCP_END;
163 return string[OPT_LEN] + 2;
192 option[OPT_LEN]
[all...]
H A Ddhcpd.h92 #define OPT_LEN 1 macro
H A Dpacket.c73 if (vendor[OPT_LEN - 2] == (unsigned char) strlen(broken_vendors[i]) &&
74 !strncmp(vendor, broken_vendors[i], vendor[OPT_LEN - 2])) {
H A Dscript.c73 int len = option[OPT_LEN - 2];
233 envp[j] = xmalloc(upper_length(temp[OPT_LEN - 2], &options[i]) + strlen(options[i].name) + 2);
H A Ddhcpc.c342 client_config.clientid[OPT_LEN] = len;
358 client_config.hostname[OPT_LEN] = len;
408 client_config.clientid[OPT_LEN] = 7;
H A Dclientpacket.c105 packet->options[end + OPT_LEN] = len;
/netgear-R7000-V1.0.7.12_1.2.5/src/router/udhcpd/
H A Doptions.c79 if (i + 1 + optionptr[i + OPT_LEN] >= length) {
90 if (i + 1 + optionptr[i + OPT_LEN] >= length) {
95 i += optionptr[OPT_LEN] + 2;
111 i += optionptr[OPT_LEN + i] + 2;
125 else i += optionptr[i + OPT_LEN] + 2;
138 if (end + string[OPT_LEN] + 2 + 1 >= 308) {
143 memcpy(optionptr + end, string, string[OPT_LEN] + 2);
144 optionptr[end + string[OPT_LEN] + 2] = DHCP_END;
145 return string[OPT_LEN] + 2;
174 option[OPT_LEN]
[all...]
H A Ddhcpd.h92 #define OPT_LEN 1 macro
H A Dpacket.c72 if (vendor[OPT_LEN - 2] == (unsigned char) strlen(broken_vendors[i]) &&
73 !strncmp((char *)vendor, broken_vendors[i], vendor[OPT_LEN - 2])) {
H A Dscript.c74 int len = option[OPT_LEN - 2];
175 envp[j] = xmalloc(upper_length(temp[OPT_LEN - 2], &options[i]) + strlen(options[i].name) + 2);
H A Ddhcpc.c253 client_config.clientid[OPT_LEN] = len;
269 client_config.hostname[OPT_LEN] = len;
312 client_config.clientid[OPT_LEN] = 7;
H A Dclientpacket.c101 packet->options[end + OPT_LEN] = len;

Completed in 190 milliseconds