git: Use sizeof(uint32_t) for bpfattach(DLT_NULL) for clarity
Aaron LI
aly at crater.dragonflybsd.org
Wed Nov 15 17:42:20 PST 2023
commit 3bd69058f990746f487f371a2074a44ffeeef731
Author: Aaron LI <aly at aaronly.me>
Date: Wed Nov 15 16:45:07 2023 +0800
Use sizeof(uint32_t) for bpfattach(DLT_NULL) for clarity
The DLT_NULL link-layer header is a 4-byte field in host byte order. So
use 'sizeof(uint32_t)' instead of 'sizeof(u_int)' to make it clear.
Summary of changes:
sys/net/disc/if_disc.c | 2 +-
sys/net/gif/if_gif.c | 2 +-
sys/net/if_loop.c | 2 +-
sys/net/stf/if_stf.c | 2 +-
sys/net/tun/if_tun.c | 2 +-
sys/netgraph/iface/ng_iface.c | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3bd69058f990746f487f371a2074a44ffeeef731
--
DragonFly BSD source repository
More information about the Commits
mailing list