From owner-freebsd-net@FreeBSD.ORG Fri Aug 8 13:12:04 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71C391065671; Fri, 8 Aug 2008 13:12:04 +0000 (UTC) (envelope-from gonzo@freebsd.org) Received: from luidgi.portaone.com (luidgi.portaone.com [195.138.219.143]) by mx1.freebsd.org (Postfix) with ESMTP id 53AA98FC19; Fri, 8 Aug 2008 13:12:04 +0000 (UTC) (envelope-from gonzo@freebsd.org) Received: from mail.pbxpress.com ([65.61.203.142] helo=leaf.pbxpress.com) by luidgi.portaone.com (8.11.3/8.11.3) with ESMTP (TLSv1:AES256-SHA:256)id 1KRRY9-000KKh-VD; Fri, 08 Aug 2008 05:58:33 -0700 Received: from jeeves.bluezbox.com (k3-gw.portaone.com [193.28.87.193]) (authenticated bits=0) by leaf.pbxpress.com (8.13.3/8.13.3) with ESMTP id m78D1ivL047153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Aug 2008 06:01:47 -0700 (PDT) (envelope-from gonzo@freebsd.org) Message-ID: <489C42F9.1030207@freebsd.org> Date: Fri, 08 Aug 2008 15:58:33 +0300 From: Oleksandr Tymoshenko User-Agent: Thunderbird 2.0.0.14 (X11/20080704) MIME-Version: 1.0 To: Ryan French References: <200808090032.53611.rfrench@freebsd.org> In-Reply-To: <200808090032.53611.rfrench@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, recieved from trusted server Cc: freebsd-net@freebsd.org Subject: Re: Probem with protosw 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: Fri, 08 Aug 2008 13:12:04 -0000 Ryan French wrote: > Hi, > > I am working on my implementation of MPLS in FreeBSD and I'm having problems > with integrating the code I have ported over into the FreeBSD networking > stack. The problem I am having at the moment is trying to get my mpls > protocol struct to compile. When I try to build the kernel I get a pr_* > undeclared here (not in a function) error, for each field of the struct I > have declared. I have included the code just in case anyone is able to figure > this out. Syntax is wrong, there are no dots before pr_. Code should look like: struct protosw mplssw[] = { { .pr_type = 0, .pr_domain = &mplsdomain, .pr_init = mpls_init, .pr_sysctl = mpls_sysctl }, { -- gonzo