mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
MFp4: use the function to fix the packet header length instead of rolling
our own...
This commit is contained in:
parent
fd475cc19d
commit
7f76b06b35
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143687
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user