diff options
author | bms <bms@FreeBSD.org> | 2007-02-28 21:58:37 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2007-02-28 21:58:37 +0000 |
commit | cbe2d2bcd1c7c247c552eb3856d6f592e550bb65 (patch) | |
tree | c2c50e7960362a5b85c69babc46e58e6866d1614 /sys/netinet6/ip6_mroute.c | |
parent | 277afd00bb2a1810c31e0d9d6bc4df55a490751a (diff) | |
download | FreeBSD-src-cbe2d2bcd1c7c247c552eb3856d6f592e550bb65.zip FreeBSD-src-cbe2d2bcd1c7c247c552eb3856d6f592e550bb65.tar.gz |
Add comments about common idioms for cleanup pass at a later date.
Diffstat (limited to 'sys/netinet6/ip6_mroute.c')
-rw-r--r-- | sys/netinet6/ip6_mroute.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index 01bad3f..daab702 100644 --- a/sys/netinet6/ip6_mroute.c +++ b/sys/netinet6/ip6_mroute.c @@ -121,6 +121,7 @@ static MALLOC_DEFINE(M_MRTABLE6, "mf6c", "multicast forwarding cache entry"); +/* XXX: this is a very common idiom; move to <sys/mbuf.h> ? */ #define M_HASCL(m) ((m)->m_flags & M_EXT) static int ip6_mdq __P((struct mbuf *, struct ifnet *, struct mf6c *)); @@ -253,6 +254,7 @@ static int pim6; /* * Macros to compute elapsed time efficiently * Borrowed from Van Jacobson's scheduling code + * XXX: replace with timersub() ? */ #define TV_DELTA(a, b, delta) do { \ int xxs; \ @@ -272,6 +274,7 @@ static int pim6; } \ } while (/*CONSTCOND*/ 0) +/* XXX: replace with timercmp(a, b, <) ? */ #define TV_LT(a, b) (((a).tv_usec < (b).tv_usec && \ (a).tv_sec <= (b).tv_sec) || (a).tv_sec < (b).tv_sec) |