Summary: | tcpreplay not working for if_tun (tun0) | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Michael F <micolous+fbsd> | ||||
Component: | kern | Assignee: | Mark Johnston <markj> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | mikhail.v.gavrilov, seth.hoffert, zlei | ||||
Priority: | --- | Flags: | markj:
mfc-stable13-
|
||||
Version: | 13.0-RELEASE | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Michael F
2021-06-14 02:41:04 UTC
FYI, I'm taking this on as part of https://github.com/freebsd/freebsd-src/pull/876 and also took the opportunity to make other interfaces consistent as well. The pull request for this (#876) has been merged into the main branch. A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3f6515c20f381d6e136c8c322eadc69fd0e6c4aa commit 3f6515c20f381d6e136c8c322eadc69fd0e6c4aa Author: Seth Hoffert <seth.hoffert@gmail.com> AuthorDate: 2023-10-22 14:12:45 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-05-08 13:06:15 +0000 bpf: Make BPF interop consistent with if_loop The pseudo_AF_HDRCMPLT check is already being done in if_loop and just needed to be ported over to if_ic, if_wg, if_disc, if_gif, if_gre, if_me, if_tuntap and ng_iface. This is needed in order to allow these interfaces to work properly with e.g., tcpreplay. PR: 256587 Reviewed by: markj MFC after: 2 weeks Pull Request: https://github.com/freebsd/freebsd-src/pull/876 (cherry picked from commit 2cb0fce24d64039090dc9243cdf0715ee80c91b1) sys/dev/iicbus/if_ic.c | 4 ++-- sys/dev/wg/if_wg.c | 3 ++- sys/net/if_disc.c | 2 +- sys/net/if_gif.c | 3 ++- sys/net/if_gre.c | 3 ++- sys/net/if_me.c | 3 ++- sys/net/if_tuntap.c | 2 +- sys/netgraph/ng_iface.c | 2 +- 8 files changed, 13 insertions(+), 9 deletions(-) |