Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2002 07:55:38 +0100
From:      Edward Brocklesby <nighthawk@unrealircd.com>
To:        freebsd-net@freebsd.org
Subject:   netns and protosw
Message-ID:  <20020904065538.GA64646@firedrake.hades.skumler.net>

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

Regards,
	-larne.

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?20020904065538.GA64646>