From owner-freebsd-net@FreeBSD.ORG Sat Aug 16 05:40:22 2008 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26F081065671; Sat, 16 Aug 2008 05:40:22 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (hergotha.csail.mit.edu [66.92.79.170]) by mx1.freebsd.org (Postfix) with ESMTP id BC1FE8FC16; Sat, 16 Aug 2008 05:40:21 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (localhost [127.0.0.1]) by hergotha.csail.mit.edu (8.13.8/8.13.8) with ESMTP id m7G5BG1B083708; Sat, 16 Aug 2008 01:11:16 -0400 (EDT) (envelope-from wollman@hergotha.csail.mit.edu) Received: (from wollman@localhost) by hergotha.csail.mit.edu (8.13.8/8.13.8/Submit) id m7G5BEb1083707; Sat, 16 Aug 2008 01:11:14 -0400 (EDT) (envelope-from wollman) Date: Sat, 16 Aug 2008 01:11:14 -0400 (EDT) From: Garrett Wollman Message-Id: <200808160511.m7G5BEb1083707@hergotha.csail.mit.edu> To: rfrench@freebsd.org In-Reply-To: <200808161356.26891.rfrench@freebsd.org> Organization: None X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hergotha.csail.mit.edu [127.0.0.1]); Sat, 16 Aug 2008 01:11:16 -0400 (EDT) X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on hergotha.csail.mit.edu Cc: net@freebsd.org Subject: Re: .pru_attach and kernel warnings X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 05:40:22 -0000 In article <200808161356.26891.rfrench@freebsd.org>, rfrench@freebsd.org writes: >static int >mpls_attach(struct socket *so) The prototype for a protocol attach functions is int (*pru_attach)(struct socket *so, int proto, struct thread *td); (see sys/protosw.h). You don't have to use these arguments, but you do have to declare them properly. -GAWollman