Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2002 00:02:43 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        Edward Brocklesby <nighthawk@unrealircd.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: netns and protosw
Message-ID:  <Pine.BSF.4.21.0209040000110.26122-100000@InterJet.elischer.org>
In-Reply-To: <20020904065538.GA64646@firedrake.hades.skumler.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 4 Sep 2002, Edward Brocklesby wrote:

> Good morning,
> 
> I am currently trying to make the /sys/netns code work again.
> While I'm quite close to making it at least compile, I'm having
> a problem with the protosw struct that I can't see the answer to.
> 
> For example, idp_input() is defined as:
> 	int idp_input(struct mbuf *m, struct nspcb *nsp);
> However, it's passed as a pr_input_t:
> 	typedef void    pr_input_t (struct mbuf *, int);
> in protosw in /sys/netns/ns_proto.c.  I assume this is some
> change that has been made since this code last worked; could
> someone enlighten me as to how the nspcb can be extracted
> from mbuf and int? (A similar problem exists with the other functions
> passed in the protosw.)

is idp_input called directly or through the table?
the protosw format was changed in a rather non portable way during the
importing of ipv6. If your routine as called directly, then there is
actually no reason to have it in the protosw.

The whole protosw format needs to be gone ove with an eye to ALL
the protocols.


> 
> Regards,
> 	-larne.
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0209040000110.26122-100000>