Use sizeof(uint32_t) for bpfattach(DLT_NULL) for clarity
authorAaron LI <aly@aaronly.me>
Wed, 15 Nov 2023 08:45:07 +0000 (16:45 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 16 Nov 2023 00:49:22 +0000 (08:49 +0800)
commit3bd69058f990746f487f371a2074a44ffeeef731
treef2efb650c1857a556621facd052008e371401ee8
parentebc3dd460ef06977154606713ed5e55b0d1d005c
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.
sys/net/disc/if_disc.c
sys/net/gif/if_gif.c
sys/net/if_loop.c
sys/net/stf/if_stf.c
sys/net/tun/if_tun.c
sys/netgraph/iface/ng_iface.c