From owner-p4-projects@FreeBSD.ORG Sun Mar 15 08:05:56 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 99B81106568D; Sun, 15 Mar 2009 08:05:55 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 566B410656E2 for ; Sun, 15 Mar 2009 08:05:55 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 2A7ED8FC19 for ; Sun, 15 Mar 2009 08:05:55 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n2F85tMx064890 for ; Sun, 15 Mar 2009 08:05:55 GMT (envelope-from julian@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n2F85tgV064888 for perforce@freebsd.org; Sun, 15 Mar 2009 08:05:55 GMT (envelope-from julian@freebsd.org) Date: Sun, 15 Mar 2009 08:05:55 GMT Message-Id: <200903150805.n2F85tgV064888@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to julian@freebsd.org using -f From: Julian Elischer To: Perforce Change Reviews Cc: Subject: PERFORCE change 159234 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2009 08:05:57 -0000 http://perforce.freebsd.org/chv.cgi?CH=159234 Change 159234 by julian@julian_trafmon1 on 2009/03/15 08:05:02 hey presto.. compile! Affected files ... .. //depot/projects/vimage/src/sys/netinet/igmp.c#27 edit .. //depot/projects/vimage/src/sys/netinet/in_mcast.c#20 edit .. //depot/projects/vimage/src/sys/netinet/vinet.h#53 edit Differences ... ==== //depot/projects/vimage/src/sys/netinet/igmp.c#27 (text+ko) ==== @@ -1132,10 +1132,12 @@ nsrc = ntohs(igmpv3->igmp_numsrc); +#if 0 /* MARKO, what is this? */ SLIST_INIT(&V_router_info_head); +#endif if (!IS_DEFAULT_VNET(curvnet)) - return; + return (retval); /* * Deal with group-specific queries upfront. ==== //depot/projects/vimage/src/sys/netinet/in_mcast.c#20 (text+ko) ==== @@ -209,8 +209,7 @@ return (ifp == NULL); } -static struct ifnet * - ip_multicast_if(struct in_addr *a); +static struct ifnet *ip_multicast_if(const struct in_addr *a); /* * Initialize an in_mfilter structure to a known state at t0, t1 @@ -1834,7 +1833,7 @@ ifp = NULL; if (!in_nullhost(ina)) { - ifp = ip_multicast_if(&mreqs.imr_interface); + ifp = ip_multicast_if(&ina); } else { struct route ro; @@ -2895,10 +2894,11 @@ #endif /* KTR */ RB_GENERATE(ip_msource_tree, ip_msource, ims_link, ip_msource_cmp); +/* * following RFC1724 section 3.3, 0.0.0.0/8 is interpreted as interface index. */ static struct ifnet * -ip_multicast_if(struct in_addr *a) +ip_multicast_if(const struct in_addr *a) { INIT_VNET_NET(curvnet); INIT_VNET_INET(curvnet); ==== //depot/projects/vimage/src/sys/netinet/vinet.h#53 (text+ko) ==== @@ -313,7 +313,7 @@ #define V_reply_src VNET_INET(reply_src) #define V_ripcb VNET_INET(ripcb) #define V_ripcbinfo VNET_INET(ripcbinfo) -#define V_router_info_head VNET_INET(router_info_head) +/* #define V_router_info_head VNET_INET(router_info_head) */ #define V_rsvp_on VNET_INET(rsvp_on) #define V_rtq_minreallyold VNET_INET(rtq_minreallyold) #define V_rtq_reallyold VNET_INET(rtq_reallyold)