Hi!

Noone reads this, so noone noticed, but it's just weird.
--
Martin Pelikan

Index: sync.c
===================================================================
RCS file: /cvs/src/usr.sbin/dhcpd/sync.c,v
retrieving revision 1.10
diff -u -p -r1.10 sync.c
--- sync.c      23 Dec 2010 17:38:04 -0000      1.10
+++ sync.c      10 Feb 2013 02:07:11 -0000
@@ -425,7 +425,7 @@ sync_lease(struct lease *lease)
        /* Add DHCP sync packet header */
        hdr.sh_version = DHCP_SYNC_VERSION;
        hdr.sh_af = AF_INET;
-       hdr.sh_counter = sync_counter++;
+       hdr.sh_counter = htonl(sync_counter++);
        hdr.sh_length = htons(sizeof(hdr) + sizeof(ld) + sizeof(end));
        iov[i].iov_base = &hdr;
        iov[i].iov_len = sizeof(hdr);

Reply via email to