if ((tmp = decode_rfc3361(dl, data)) == NULL)
return -1;
l = strlen(tmp);
- l = print_string(s, len, l - 1, (uint8_t *)tmp);
+ l = print_string(s, len, l, (uint8_t *)tmp);
free(tmp);
return l;
}
define 122 encap tsp
encap 1 ipaddress dhcp_server
encap 2 ipaddress dhcp_secondary_server
-encap 3 embed provisioning_server
-embed byte type
-embed domain fqdn
-#embed ipaddress address
-# We only support FQDN in option 3 out of the box which is type 0.
-# Type 1 is an ipaddress, but we currently have no logic to change embedded
-# type based on the content of an option.
-# To swap it out, just comment / uncomment the above two lines to your liking.
-# However, ensure that only one is uncommented.
+encap 3 rfc3361 provisioning_server
encap 4 embed as_req_as_rep_backoff
embed uint32 nominal
embed uint32 maximum