summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_mroute.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-07-24 18:15:13 +0000
committerwollman <wollman@FreeBSD.org>1995-07-24 18:15:13 +0000
commit9fcb833ae60e2324aac06b1ade13d5cb45a85353 (patch)
tree26d4697678c807accfb717bec958ee71d6a5261c /sys/netinet/ip_mroute.c
parentd79a9f75377bc8d7ffb37412174b9e9cce567dae (diff)
downloadFreeBSD-src-9fcb833ae60e2324aac06b1ade13d5cb45a85353.zip
FreeBSD-src-9fcb833ae60e2324aac06b1ade13d5cb45a85353.tar.gz
Declare rsvp_input() to take the correct set of arguments and figure out
the receipt interface in the correct way.
Diffstat (limited to 'sys/netinet/ip_mroute.c')
-rw-r--r--sys/netinet/ip_mroute.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c
index 61c6b85..c743469 100644
--- a/sys/netinet/ip_mroute.c
+++ b/sys/netinet/ip_mroute.c
@@ -9,7 +9,7 @@
* Modified by Bill Fenner, PARC, April 1995
*
* MROUTING Revision: 3.5
- * $Id$
+ * $Id: ip_mroute.c,v 1.19 1995/06/26 16:15:49 wollman Exp $
*/
@@ -2116,14 +2116,15 @@ ip_rsvp_force_done(so)
}
void
-rsvp_input(m, ifp)
- struct mbuf *m;
- struct ifnet *ifp;
+rsvp_input(m, iphlen)
+ struct mbuf *m;
+ int iphlen;
{
int vifi;
register struct ip *ip = mtod(m, struct ip *);
- static struct sockaddr_in rsvp_src = { AF_INET };
+ static struct sockaddr_in rsvp_src = { sizeof rsvp_src, AF_INET };
register int s;
+ struct ifnet *ifp;
if (rsvpdebug)
printf("rsvp_input: rsvp_on %d\n",rsvp_on);
@@ -2152,6 +2153,12 @@ rsvp_input(m, ifp)
if (rsvpdebug)
printf("rsvp_input: check vifs\n");
+#ifdef DIAGNOSTIC
+ if (!(m->m_flags & M_PKTHDR))
+ panic("rsvp_input no hdr");
+#endif
+
+ ifp = m->m_pkthdr.rcvif;
/* Find which vif the packet arrived on. */
for (vifi = 0; vifi < numvifs; vifi++) {
if (viftable[vifi].v_ifp == ifp)
OpenPOWER on IntegriCloud