if (getsockname(sockfd, (struct sockaddr *) &dst, &sizeof_dst) < 0) {
fr_strerror_printf("getsockname failed: %s", strerror(errno));
rad_free(&packet);
- return NULL;
+ return NULL;
}
#endif
while (next < (data + len)) {
int num_entries, alen;
DICT_ATTR *da;
-
+
p = next;
if (*p == 0) break;
p += alen;
} /* loop over array entries */
} /* loop over the entire packet */
-
+
return next - data;
}
/*
* Loop over the options.
*/
-
+
/*
- * Nothing uses tail after this call, if it does in the future
+ * Nothing uses tail after this call, if it does in the future
* it'll need to find the new tail...
* FIXME: This should also check sname && file fields.
* See the dhcp_get_option() function above.
*/
if (fr_dhcp_decode_options(packet->data + 240, packet->data_len - 240,
- tail) < 0) {
+ tail) < 0) {
return -1;
}
} else {
*p++ = 1; /* client message */
}
-
+
/* DHCP-Hardware-Type */
if ((vp = pairfind(packet->vps, DHCP2ATTR(257)))) {
*p++ = vp->vp_integer & 0xFF;
* instead of being placed verbatim in the filename field.
*/
- /* DHCP-Boot-Filename */
+ /* DHCP-Boot-Filename */
if ((vp = pairfind(packet->vps, DHCP2ATTR(269)))) {
if (vp->length > DHCP_FILE_LEN) {
memcpy(p, vp->vp_strvalue, DHCP_FILE_LEN);
interface = interface;
macaddr = macaddr;
ip = ip;
-
+
fr_strerror_printf("Adding ARP entry is unsupported on this system");
return -1;
#endif