Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Aug 2008 15:58:33 +0300
From:      Oleksandr Tymoshenko <gonzo@freebsd.org>
To:        Ryan French <rfrench@freebsd.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Probem with protosw
Message-ID:  <489C42F9.1030207@freebsd.org>
In-Reply-To: <200808090032.53611.rfrench@freebsd.org>
References:  <200808090032.53611.rfrench@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?489C42F9.1030207>