packet->code - PW_DHCP_OFFSET);
}
- DEBUG("Received %s of id %08x from %s:%d to %s:%d",
+ DEBUG("Received %s of id %08x from %s:%d to %s:%d\n",
name, (unsigned int) packet->id,
inet_ntop(packet->src_ipaddr.af,
&packet->src_ipaddr.ipaddr,
default:
fr_strerror_printf("Internal sanity check %d %d", vp->type, __LINE__);
- break;
+ return -1;
} /* switch over type */
vp->length = alen;
uint32_t giaddr;
VALUE_PAIR *head, *vp, **tail;
VALUE_PAIR *maxms, *mtu;
- char buffer[2048];
head = NULL;
tail = &head;
if (!vp) continue;
- if (fr_debug_flag > 1) {
- vp_prints(buffer, sizeof(buffer), vp);
- fr_strerror_printf("\t%s", buffer);
- }
+ debug_pair(vp);
*tail = vp;
tail = &vp->next;
}
return -1;
}
- if (fr_debug_flag > 1) {
- vp_prints(buffer, sizeof(buffer), vp);
- fr_strerror_printf("\t%s", buffer);
- }
-
+ debug_pair(vp);
*tail = vp;
while (*tail) tail = &(*tail)->next;
p += alen;
maxms->vp_integer = mtu->vp_integer;
}
+ if (fr_debug_flag > 0) {
+ for (vp = packet->vps; vp != NULL; vp = vp->next) {
+
+ }
+ }
+
if (fr_debug_flag) fflush(stdout);
return 0;
packet->code - PW_DHCP_OFFSET);
}
- DEBUG("Sending %s of id %08x from %s:%d to %s:%d",
+ DEBUG("Sending %s of id %08x from %s:%d to %s:%d\n",
name, (unsigned int) packet->id,
inet_ntop(packet->src_ipaddr.af,
&packet->src_ipaddr.ipaddr,
if (((vp->attribute & 0xffff) > 255) &&
(DHCP_BASE_ATTR(vp->attribute) != PW_DHCP_OPTION_82)) goto next;
+ debug_pair(vp);
length = vp->length;
for (same = vp->next; same != NULL; same = same->next) {