-/* $OpenBSD: ip_input.c,v 1.372 2022/06/29 09:01:48 mvs Exp $ */
+/* $OpenBSD: ip_input.c,v 1.373 2022/07/24 22:38:25 bluhm Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
struct ipqent *ipqe;
int mff, hlen;
- NET_ASSERT_WLOCKED();
-
hlen = ip->ip_hl << 2;
/*
int nest = 0;
#endif /* INET6 */
+ NET_ASSERT_WLOCKED();
+
/* pf might have modified stuff, might have to chksum */
switch (af) {
case AF_INET:
-/* $OpenBSD: ip6_input.c,v 1.248 2022/06/29 22:45:24 bluhm Exp $ */
+/* $OpenBSD: ip6_input.c,v 1.249 2022/07/24 22:38:25 bluhm Exp $ */
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
/*
if (ours) {
if (af == AF_UNSPEC)
- nxt = ip_deliver(mp, offp, nxt,
- AF_INET6);
+ nxt = ip6_ours(mp, offp, nxt, af);
goto out;
}
goto bad;
if (ours) {
if (af == AF_UNSPEC)
- nxt = ip_deliver(mp, offp, nxt, AF_INET6);
+ nxt = ip6_ours(mp, offp, nxt, af);
goto out;
}
int
ip6_local(struct mbuf **mp, int *offp, int nxt, int af)
{
- NET_ASSERT_WLOCKED();
-
nxt = ip6_hbhchcheck(mp, offp, NULL);
if (nxt == IPPROTO_DONE)
return IPPROTO_DONE;