diff options
author | wollman <wollman@FreeBSD.org> | 1994-09-06 22:42:31 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-09-06 22:42:31 +0000 |
commit | 75ad508fd126c679edba9b67bd09d74a1fff3aba (patch) | |
tree | da36f83faafbd2141b041ae182b2406dfee02756 /sys/netinet/raw_ip.c | |
parent | f624d4a80eef8e47182201473e55257609525b41 (diff) | |
download | FreeBSD-src-75ad508fd126c679edba9b67bd09d74a1fff3aba.zip FreeBSD-src-75ad508fd126c679edba9b67bd09d74a1fff3aba.tar.gz |
Initial get-the-easy-case-working upgrade of the multicast code
to something more recent than the ancient 1.2 release contained in
4.4. This code has the following advantages as compared to
previous versions (culled from the README file for the SunOS release):
- True multicast delivery
- Configurable rate-limiting of forwarded multicast traffic on each
physical interface or tunnel, using a token-bucket limiter.
- Simplistic classification of packets for prioritized dropping.
- Administrative scoping of multicast address ranges.
- Faster detection of hosts leaving groups.
- Support for multicast traceroute (code not yet available).
- Support for RSVP, the Resource Reservation Protocol.
What still needs to be done:
- The multicast forwarder needs testing.
- The multicast routing daemon needs to be ported.
- Network interface drivers need to have the `#ifdef MULTICAST' goop ripped
out of them.
- The IGMP code should probably be bogon-tested.
Some notes about the porting process:
In some cases, the Berkeley people decided to incorporate functionality from
later releases of the multicast code, but then had to do things differently.
As a result, if you look at Deering's patches, and then look at
our code, it is not always obvious whether the patch even applies. Let
the reader beware.
I ran ip_mroute.c through several passes of `unifdef' to get rid of
useless grot, and to permanently enable the RSVP support, which we will
include as standard.
Ported by: Garrett Wollman
Submitted by: Steve Deering and Ajit Thyagarajan (among others)
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r-- | sys/netinet/raw_ip.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index 86c2b5a..e0cddca 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)raw_ip.c 8.2 (Berkeley) 1/4/94 - * $Id$ + * $Id: raw_ip.c,v 1.2 1994/08/02 07:48:49 davidg Exp $ */ #include <sys/param.h> @@ -203,14 +203,20 @@ rip_ctloutput(op, so, level, optname, m) } break; + case IP_RSVP_ON: + error = ip_rsvp_init(so); + break; + + case IP_RSVP_OFF: + error = ip_rsvp_done(); + break; + case DVMRP_INIT: case DVMRP_DONE: case DVMRP_ADD_VIF: case DVMRP_DEL_VIF: - case DVMRP_ADD_LGRP: - case DVMRP_DEL_LGRP: - case DVMRP_ADD_MRT: - case DVMRP_DEL_MRT: + case DVMRP_ADD_MFC: + case DVMRP_DEL_MFC: #ifdef MROUTING if (op == PRCO_SETOPT) { error = ip_mrouter_cmd(optname, so, *m); @@ -240,9 +246,6 @@ rip_usrreq(so, req, m, nam, control) { register int error = 0; register struct inpcb *inp = sotoinpcb(so); -#ifdef MROUTING - extern struct socket *ip_mrouter; -#endif switch (req) { case PRU_ATTACH: |