svn commit: r213516 - projects/sv/sys/netinet
Attilio Rao
attilio at FreeBSD.org
Thu Oct 7 15:04:16 UTC 2010
Author: attilio
Date: Thu Oct 7 15:04:16 2010
New Revision: 213516
URL: http://svn.freebsd.org/changeset/base/213516
Log:
Fix a reversed use of arguments in bcopy().
Modified:
projects/sv/sys/netinet/netdump_client.c
Modified: projects/sv/sys/netinet/netdump_client.c
==============================================================================
--- projects/sv/sys/netinet/netdump_client.c Thu Oct 7 13:13:02 2010 (r213515)
+++ projects/sv/sys/netinet/netdump_client.c Thu Oct 7 15:04:16 2010 (r213516)
@@ -972,7 +972,7 @@ nd_handle_arp(struct mbuf **mb)
m->m_len = sizeof(*ah) + (2 * ah->ar_pln) + (2 * ah->ar_hln);
m->m_pkthdr.len = m->m_len;
- bcopy(dst.octet, ar_tha(ah), ETHER_ADDR_LEN);
+ bcopy(ar_tha(ah), dst.octet, ETHER_ADDR_LEN);
netdump_ether_output(m, ifp, dst, ETHERTYPE_ARP);
*mb = NULL; /* Don't m_free upon return */
}
More information about the svn-src-projects
mailing list