Date: Wed, 7 Sep 2022 12:09:46 -0700 From: Gleb Smirnoff <glebius@freebsd.org> To: "Bjoern A. Zeeb" <bz@freebsd.org> Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: e72c522858cb - main - divert(4): make it compilable and working without INET Message-ID: <YxjseuGII9UjG0An@FreeBSD.org> In-Reply-To: <p7o69n5-29rs-50no-7p5-924199p79n4@serrofq.bet> References: <202208302249.27UMnSwI022109@gitrepo.freebsd.org> <6q6n8553-2143-n24p-4816-406549997s@mnoonqbm.arg> <YxQ9Shj2Em3oe92s@FreeBSD.org> <15on1poo-pnpq-3pos-qs7s-673pp1q0s83@serrofq.bet> <YxgYPD2WT35sRxV9@FreeBSD.org> <6r5o5nqn-9srp-79qr-n33-q4992936q51q@serrofq.bet> <YxjAeuv0CbhXPplL@FreeBSD.org> <p7o69n5-29rs-50no-7p5-924199p79n4@serrofq.bet>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 07, 2022 at 06:16:07PM +0000, Bjoern A. Zeeb wrote: B> > B> > On Sun, Sep 04, 2022 at 06:39:53AM +0000, Bjoern A. Zeeb wrote: B> > B> > B> > B> > Author: Gleb Smirnoff <glebius@FreeBSD.org> B> > B> > B> > B> > AuthorDate: 2022-08-30 22:09:21 +0000 B> > B> > B> > B> > Commit: Gleb Smirnoff <glebius@FreeBSD.org> B> > B> > B> > B> > CommitDate: 2022-08-30 22:09:21 +0000 B> > B> > B> > B> > B> > B> > B> > B> > divert(4): make it compilable and working without INET B> > B> > B> > B> > B> > B> > B> > B> > Differential revision: https://reviews.freebsd.org/D36383 B> > B> > B> > B> B> > B> > B> > B> Well, almost at least.... B> > B> > B> > B> > B> > B> > I wonder why LINT-NOINET builds without this?? B> > B> > B> B> > B> > B> I wondered the same last night.. I would be good to find out? B> > B> > B> > B> > Ok, I think that assumption that sysctl parts of divert require B> > B> > INET were just wrong, that's why LINT-NOINET builds. B> > B> B> > B> Not entirely. It's because sys/netinet/in_proto.c uncodonitionally B> > B> currently provides _net_inet for the sysctl. B> > B> The reason for that is that a lot of AF independent sysctls were initially B> > B> put under inet but are equally used for inet6 or neither in the network stack. B> > B> B> > B> You will need at least #if defined(INET6) || defined(INET) around the sysctls B> > B> in divert.c then. B> > B> B> > B> A LINT-NOIP kernel will complain about the missing symbol if we keep compiling B> > B> divert without INET or INET6 in the kernel: B> > B> > My goal was not to make divert(4) supported on NOIP kernel. The goal was to make B> > it supported on NOINET, an IPv6 only kernel. I don't see any value for divert(4) B> > on a kernel without either stack. B> B> then we should stop compiling it in that case. Do we compile it for NOIP? -- Gleb Smirnoff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YxjseuGII9UjG0An>