mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Correct the commented out debugging printf()s in REPLACE and NEXT macros.
ip6_sprintf() needs a buffer as first argument these days. MFC after: 2 weeks
This commit is contained in:
parent
8c03c6c023
commit
ab569b9c05
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175512
1 changed files with 8 additions and 2 deletions
|
@ -141,14 +141,20 @@ static struct in6_addrpolicy *match_addrsel_policy(struct sockaddr_in6 *);
|
|||
if ((r) < sizeof(ip6stat.ip6s_sources_rule) / \
|
||||
sizeof(ip6stat.ip6s_sources_rule[0])) /* check for safety */ \
|
||||
ip6stat.ip6s_sources_rule[(r)]++; \
|
||||
/* printf("in6_selectsrc: replace %s with %s by %d\n", ia_best ? ip6_sprintf(&ia_best->ia_addr.sin6_addr) : "none", ip6_sprintf(&ia->ia_addr.sin6_addr), (r)); */ \
|
||||
/* { \
|
||||
char ip6buf[INET6_ADDRSTRLEN], ip6b[INET6_ADDRSTRLEN]; \
|
||||
printf("in6_selectsrc: replace %s with %s by %d\n", ia_best ? ip6_sprintf(ip6buf, &ia_best->ia_addr.sin6_addr) : "none", ip6_sprintf(ip6b, &ia->ia_addr.sin6_addr), (r)); \
|
||||
} */ \
|
||||
goto replace; \
|
||||
} while(0)
|
||||
#define NEXT(r) do {\
|
||||
if ((r) < sizeof(ip6stat.ip6s_sources_rule) / \
|
||||
sizeof(ip6stat.ip6s_sources_rule[0])) /* check for safety */ \
|
||||
ip6stat.ip6s_sources_rule[(r)]++; \
|
||||
/* printf("in6_selectsrc: keep %s against %s by %d\n", ia_best ? ip6_sprintf(&ia_best->ia_addr.sin6_addr) : "none", ip6_sprintf(&ia->ia_addr.sin6_addr), (r)); */ \
|
||||
/* { \
|
||||
char ip6buf[INET6_ADDRSTRLEN], ip6b[INET6_ADDRSTRLEN]; \
|
||||
printf("in6_selectsrc: keep %s against %s by %d\n", ia_best ? ip6_sprintf(ip6buf, &ia_best->ia_addr.sin6_addr) : "none", ip6_sprintf(ip6b, &ia->ia_addr.sin6_addr), (r)); \
|
||||
} */ \
|
||||
goto next; /* XXX: we can't use 'continue' here */ \
|
||||
} while(0)
|
||||
#define BREAK(r) do { \
|
||||
|
|
Loading…
Reference in a new issue