diff --git a/miniupnpd/bsd/getroute.c b/miniupnpd/bsd/getroute.c index f40b2a6..d84eb5a 100644 --- a/miniupnpd/bsd/getroute.c +++ b/miniupnpd/bsd/getroute.c @@ -96,7 +96,7 @@ 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", - i, SA_LEN(sa), sa->sa_family, tmp); + i, sa->sa_len, sa->sa_family, tmp); if(i == RTA_DST || i == RTA_GATEWAY) { size_t len = 0; void * paddr = NULL; @@ -127,7 +127,7 @@ get_src_for_route_to(const struct sockaddr * dst, *index = sdl->sdl_index; } #endif - p += SA_LEN(sa); + p += SA_SIZE(sa); } } }