+
+#define ND6_CACHE_STATE_TRANSITION(ln, nstate) do {\
+ if (nd6_debug >= 1) {\
+ nd6log((LOG_INFO,\
+ "[%s:%d]: NDP cache entry changed from %s -> %s",\
+ __FILE__,\
+ __LINE__,\
+ ndcache_state2str((ln)->ln_state),\
+ ndcache_state2str(nstate)));\
+ if ((ln)->ln_rt)\
+ nd6log((LOG_INFO,\
+ " for address: %s.\n",\
+ ip6_sprintf(&SIN6(rt_key((ln)->ln_rt))->sin6_addr)));\
+ else\
+ nd6log((LOG_INFO, "\n"));\
+ }\
+ (ln)->ln_state = nstate;\
+} while(0)
+