Instead of calculating the mbuf packet header length here and there,
authorbluhm <bluhm@openbsd.org>
Mon, 10 Sep 2018 16:14:07 +0000 (16:14 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 10 Sep 2018 16:14:07 +0000 (16:14 +0000)
commitf02cb2e83cda2e7c843af31d86dd656fd741d8ab
treeeaf8366e40f233b53e70230953160d8a4fca02ba
parent4cc6c382050db818c73b4b4df1930d38556647ff
Instead of calculating the mbuf packet header length here and there,
put the algorithm into a new function m_calchdrlen().  Also set an
uninitialized m_len to 0 in NFS code.
OK claudio@
share/man/man9/mbuf.9
sys/kern/uipc_mbuf.c
sys/net/pf_norm.c
sys/netinet/ip_input.c
sys/netinet6/frag6.c
sys/nfs/krpc_subr.c
sys/nfs/nfs_socket.c
sys/sys/mbuf.h