Probem with protosw

Oleksandr Tymoshenko gonzo at freebsd.org
Fri Aug 8 13:12:04 UTC 2008


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


More information about the freebsd-net mailing list