sync with OpenBSD -current

This commit is contained in:
purplerain 2024-01-27 03:29:19 +00:00
parent 8ff00f10fc
commit 8365991714
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
9 changed files with 2084 additions and 79 deletions

View file

@ -1,4 +1,4 @@
/* $OpenBSD: bpf.c,v 1.221 2023/03/09 05:56:58 dlg Exp $ */
/* $OpenBSD: bpf.c,v 1.222 2024/01/26 21:14:08 jan Exp $ */
/* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */
/*
@ -1397,6 +1397,8 @@ _bpf_mtap(caddr_t arg, const struct mbuf *mp, const struct mbuf *m,
if (ISSET(mp->m_pkthdr.csum_flags,
M_FLOWID))
SET(tbh.bh_flags, BPF_F_FLOWID);
tbh.bh_csumflags =
mp->m_pkthdr.csum_flags;
m_microtime(mp, &tv);
} else

View file

@ -1,4 +1,4 @@
/* $OpenBSD: bpf.h,v 1.71 2023/03/09 05:56:58 dlg Exp $ */
/* $OpenBSD: bpf.h,v 1.72 2024/01/26 21:14:08 jan Exp $ */
/* $NetBSD: bpf.h,v 1.15 1996/12/13 07:57:33 mikel Exp $ */
/*
@ -161,6 +161,7 @@ struct bpf_hdr {
#define BPF_F_DIR_IN (BPF_DIRECTION_IN << BPF_F_DIR_SHIFT)
#define BPF_F_DIR_OUT (BPF_DIRECTION_OUT << BPF_F_DIR_SHIFT)
u_int8_t bh_drops;
u_int16_t bh_csumflags; /* checksum flags */
};
#ifdef _KERNEL