- In dhcp6opt_print() constify tp
- Add decoder for option 21 (SIP_SERVER_D - RFC3319)
dhcp6opt_print(const u_char *cp, const u_char *ep)
{
struct dhcp6opt *dh6o;
- u_char *tp;
+ const u_char *tp;
size_t i;
u_int16_t opttype;
size_t optlen;
printf(" %s", ip6addr_string(&tp[i]));
printf(")");
break;
+ case DH6OPT_SIP_SERVER_D:
+ tp = (u_char *)(dh6o + 1);
+ while (tp < ep) {
+ putchar(' ');
+ if((tp = ns_nprint(tp, ep)) == NULL)
+ goto trunc;
+ }
+ break;
case DH6OPT_STATUS_CODE:
if (optlen < 2) {
printf(" ?)");
dhcpv6-ia-pd dhcpv6-ia-pd.pcap dhcpv6-ia-pd.out -t -v
dhcpv6-ia-ta dhcpv6-ia-ta.pcap dhcpv6-ia-ta.out -t -v
dhcpv6-ntp-server dhcpv6-ntp-server.pcap dhcpv6-ntp-server.out -t -v
+dhcpv6-sip-server-d dhcpv6-sip-server-d.pcap dhcpv6-sip-server-d.out -t -v
# ZeroMQ/PGM tests
# ZMTP/1.0 over TCP
--- /dev/null
+IP6 (hlim 64, next-header UDP (17) payload length: 114) fe80::20c:29ff:fe9b:a15d.547 > fe80::20c:29ff:fe38:f368.546: [udp sum ok] dhcp6 reply (xid=6890d8 (client-ID hwaddr/time type 1 time 418384703 000c2938f368) (server-ID hwaddr/time type 1 time 418354459 000c299ba153) (SIP-servers-domain sip1.my-domain.net. sip2.example.com. sip3.sub.my-domain.org.)