diff options
Diffstat (limited to 'src/dhcp-common.c')
-rw-r--r-- | src/dhcp-common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dhcp-common.c b/src/dhcp-common.c index 9d13ac8..05f3ee6 100644 --- a/src/dhcp-common.c +++ b/src/dhcp-common.c @@ -890,6 +890,14 @@ void log_context(int family, struct dhcp_context *context) #endif } + +#ifdef HAVE_PD +void log_prefix(struct dhcp_context *context) +{ + inet_ntop(AF_INET6, &context->start6, daemon->addrbuff, ADDRSTRLEN); + my_syslog(MS_DHCP | LOG_INFO, _("DHCPv6-PD with prefix %s/%d"), daemon->addrbuff, context->prefix); +} +#endif void log_relay(int family, struct dhcp_relay *relay) { |