From a39fd6d2805cfb50a3020921f12a0d3f57b5a811 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 30 Jan 2017 17:44:34 +0100 Subject: [PATCH] bsd/getroute.c: output offset see #227 --- miniupnpd/bsd/getroute.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miniupnpd/bsd/getroute.c b/miniupnpd/bsd/getroute.c index 5f9d93d..dacad86 100644 --- a/miniupnpd/bsd/getroute.c +++ b/miniupnpd/bsd/getroute.c @@ -102,7 +102,8 @@ get_src_for_route_to(const struct sockaddr * dst, } sa = (struct sockaddr *)p; sockaddr_to_string(sa, tmp, sizeof(tmp)); - syslog(LOG_DEBUG, "type=%d sa_len=%d sa_family=%d %s", + syslog(LOG_DEBUG, "offset=%3d type=%2d sa_len=%d sa_family=%d %s", + (int)(p - m_rtmsg.m_space), i, SA_LEN(sa), sa->sa_family, tmp); if(i == RTA_IFA) { size_t len = 0;