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
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"