From owner-freebsd-net Fri Jun 14 12:45:53 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id AB20B37B42C for ; Fri, 14 Jun 2002 12:45:44 -0700 (PDT) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id MAA65840; Fri, 14 Jun 2002 12:36:52 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g5EJaUS24202; Fri, 14 Jun 2002 12:36:30 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200206141936.g5EJaUS24202@arch20m.dellroad.org> Subject: Re: netgraph encryption? In-Reply-To: <3D0A22CC.4010003@isi.edu> "from Lars Eggert at Jun 14, 2002 10:07:24 am" To: Lars Eggert Date: Fri, 14 Jun 2002 12:36:30 -0700 (PDT) Cc: julian@elischer.org, freebsd-net@freebsd.org X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Lars Eggert writes: > #11 0xc1be5bfc in ?? () > #12 0xc01b622c in if_allmulti (ifp=0xc1be4300, onswitch=1) at > ../../net/if.c:1375 Well, this is obvious by looking at it. ng_iface_ioctl() expects (in the case of SIOCSIFFLAGS) the third argument to point to a struct ifreq, yet if_allmulti() is passing NULL. It seems that ng_iface is not the only interface code that makes this assumption, e.g., see if_vlan.c, if_ppp.c, etc. What is the deal with if_allmulti() passing NULL? -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message