diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-08-31 06:30:50 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-08-31 06:30:50 +0000 |
commit | 546451a2e557e382e7d1c277be2018cf2f1d471e (patch) | |
tree | 350cfdb81a21ab7b15901e4a6ed8a6bc07b9c6af /sys/netinet | |
parent | 178b14d674d5db9f9df9572a80e3f5f5c11221e2 (diff) | |
download | src-546451a2e557e382e7d1c277be2018cf2f1d471e.tar.gz src-546451a2e557e382e7d1c277be2018cf2f1d471e.zip |
Use macros instead of referencing struct if_data that resides in ifnet.
Sponsored by: Nginx, Inc.
Notes
Notes:
svn path=/head/; revision=270869
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/if_ether.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index f40c683be4e2..47c7f2d04fb1 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -258,8 +258,8 @@ arprequest(struct ifnet *ifp, const struct in_addr *sip, if ((m = m_gethdr(M_NOWAIT, MT_DATA)) == NULL) return; - m->m_len = sizeof(*ah) + 2*sizeof(struct in_addr) + - 2*ifp->if_data.ifi_addrlen; + m->m_len = sizeof(*ah) + 2 * sizeof(struct in_addr) + + 2 * ifp->if_addrlen; m->m_pkthdr.len = m->m_len; MH_ALIGN(m, m->m_len); ah = mtod(m, struct arphdr *); |