diff options
author | jmg <jmg@FreeBSD.org> | 2005-03-16 08:13:08 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2005-03-16 08:13:08 +0000 |
commit | 64c69bfb4e911016c73b3e9bf14c13c3aa693f12 (patch) | |
tree | cd018a6243ab1438339f570dd01570a2d887dfd9 /sys/nfsclient/krpc_subr.c | |
parent | 5443e9818b928e8bed164859ee00cb7e5736064d (diff) | |
download | FreeBSD-src-64c69bfb4e911016c73b3e9bf14c13c3aa693f12.zip FreeBSD-src-64c69bfb4e911016c73b3e9bf14c13c3aa693f12.tar.gz |
MFp4: use the function to fix the packet header length instead of rolling
our own...
Diffstat (limited to 'sys/nfsclient/krpc_subr.c')
-rw-r--r-- | sys/nfsclient/krpc_subr.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/nfsclient/krpc_subr.c b/sys/nfsclient/krpc_subr.c index a813059..e840317 100644 --- a/sys/nfsclient/krpc_subr.c +++ b/sys/nfsclient/krpc_subr.c @@ -299,13 +299,7 @@ krpc_call(struct sockaddr_in *sa, u_int prog, u_int vers, u_int func, /* * Setup packet header */ - len = 0; - m = mhead; - while (m) { - len += m->m_len; - m = m->m_next; - } - mhead->m_pkthdr.len = len; + m_fixhdr(mhead); mhead->m_pkthdr.rcvif = NULL; /* |