diff options
author | phk <phk@FreeBSD.org> | 2008-07-30 11:56:15 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2008-07-30 11:56:15 +0000 |
commit | 2f3eaa65d516cc9b503141da15b0c4032c949af0 (patch) | |
tree | e1b1c915012698a693779a70eb2a8a279838d72f /sbin/routed/defs.h | |
parent | 19bf5e280722ebf99ad48917f4b8d0af5dbd14e1 (diff) | |
download | FreeBSD-src-2f3eaa65d516cc9b503141da15b0c4032c949af0.zip FreeBSD-src-2f3eaa65d516cc9b503141da15b0c4032c949af0.tar.gz |
Update routed to use the RFC 3678 protocol-independent multicast API. Use
IP_MULTICAST_IF with struct ip_mreqn (obtained from Linux) to tell the
stack which interface index to use for sending IPv4 datagrams.
Submitted by: bms
Tested by: phk
Diffstat (limited to 'sbin/routed/defs.h')
-rw-r--r-- | sbin/routed/defs.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sbin/routed/defs.h b/sbin/routed/defs.h index 9860e4d..ff6e8ab 100644 --- a/sbin/routed/defs.h +++ b/sbin/routed/defs.h @@ -121,21 +121,6 @@ #define _HAVE_SIN_LEN #endif -/* Turn on if IP_{ADD,DROP}_MEMBERSHIP and IP_MULTICAST_IF considers address - * within 0.0.0.0/8 as interface index. - */ -#ifdef __FreeBSD__ -#define MCAST_IFINDEX -#endif - -/* Turn on if IP_DROP_MEMBERSHIP and IP_ADD_MEMBERSHIP do not look at - * the dstaddr of point-to-point interfaces. - * #define MCAST_PPP_BUG - */ -#ifdef MCAST_IFINDEX -#undef MCAST_PPP_BUG -#endif - #define DAY (24*60*60) #define NEVER DAY /* a long time */ #define EPOCH NEVER /* bias time by this to avoid <0 */ |