Skip to content

Commit

Permalink
printed more debugging info
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmei committed Jun 17, 2004
1 parent 12c498d commit 1971389
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions kame/kame/dhcp6/dhcp6s.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: dhcp6s.c,v 1.126 2004/06/12 13:20:59 jinmei Exp $ */
/* $KAME: dhcp6s.c,v 1.127 2004/06/17 06:22:27 jinmei Exp $ */
/*
* Copyright (C) 1998 and 1999 WIDE Project.
* All rights reserved.
Expand Down Expand Up @@ -644,22 +644,25 @@ server6_do_command(buf, len)
memcpy(&p32, bp, sizeof(bp));
p32 = ntohl(p32);
if (p32 != DHCP6CTL_BINDING) {
dprintf(LOG_INFO, FNAME, "unknown remove target");
dprintf(LOG_INFO, FNAME,
"unknown remove target: %ul", p32);
return (DHCP6CTL_R_FAILURE);
}
bp += sizeof(p32);

memcpy(&p32, bp, sizeof(bp));
p32 = ntohl(p32);
if (p32 != DHCP6CTL_BINDING_IA) {
dprintf(LOG_INFO, FNAME, "unknown binding type");
dprintf(LOG_INFO, FNAME, "unknown binding type: %ul",
p32);
return (DHCP6CTL_R_FAILURE);
}
bp += sizeof(p32);

memcpy(&iaspec, bp, sizeof(iaspec));
if (ntohl(iaspec.type) != DHCP6CTL_IA_PD) {
dprintf(LOG_INFO, FNAME, "unknown IA type");
dprintf(LOG_INFO, FNAME, "unknown IA type: %ul",
ntohl(iaspec.type));
return (DHCP6CTL_R_FAILURE);
}
bp += sizeof(iaspec);
Expand Down

0 comments on commit 1971389

Please sign in to comment.