svn commit: r211902 - in projects/sv/sys: net netinet
Attilio Rao
attilio at FreeBSD.org
Fri Aug 27 21:52:28 UTC 2010
Author: attilio
Date: Fri Aug 27 21:52:27 2010
New Revision: 211902
URL: http://svn.freebsd.org/changeset/base/211902
Log:
Rework the padding by having a 32 bits object and clearing to 0.
Requested by: emaste
Modified:
projects/sv/sys/net/netdump_client.c
projects/sv/sys/netinet/netdump.h
Modified: projects/sv/sys/net/netdump_client.c
==============================================================================
--- projects/sv/sys/net/netdump_client.c Fri Aug 27 21:52:05 2010 (r211901)
+++ projects/sv/sys/net/netdump_client.c Fri Aug 27 21:52:27 2010 (r211902)
@@ -618,6 +618,7 @@ retransmit:
nd_msg_hdr->type = htonl(type);
nd_msg_hdr->offset = htonll(offset+sent_so_far);
nd_msg_hdr->len = htonl(pktlen);
+ nd_msg_hdr->_pad = 0;
if (pktlen) {
if ((m2 = m_get(M_DONTWAIT, MT_DATA)) == NULL) {
Modified: projects/sv/sys/netinet/netdump.h
==============================================================================
--- projects/sv/sys/netinet/netdump.h Fri Aug 27 21:52:05 2010 (r211901)
+++ projects/sv/sys/netinet/netdump.h Fri Aug 27 21:52:27 2010 (r211902)
@@ -47,7 +47,7 @@ struct netdump_msg_hdr {
uint32_t seqno; /* Match acks with msgs. */
uint64_t offset; /* vmcore offset (bytes). */
uint32_t len; /* Attached data (bytes). */
- uint8_t pad[4]; /* Pad space matching 32- and 64-bits archs. */
+ uint32_t _pad; /* Pad space matching 32- and 64-bits archs. */
};
struct netdump_ack {
More information about the svn-src-projects
mailing list