Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/dhcp/common Don't use BPF_WORDALIGN in the midst of...



details:   https://anonhg.NetBSD.org/src/rev/5b7cb52b1c1f
branches:  trunk
changeset: 508215:5b7cb52b1c1f
user:      mellon <mellon%NetBSD.org@localhost>
date:      Sun Apr 08 20:48:52 2001 +0000

description:
Don't use BPF_WORDALIGN in the midst of unpacking the packet.

diffstat:

 usr.sbin/dhcp/common/bpf.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 226606a6a86b -r 5b7cb52b1c1f usr.sbin/dhcp/common/bpf.c
--- a/usr.sbin/dhcp/common/bpf.c        Sun Apr 08 19:57:12 2001 +0000
+++ b/usr.sbin/dhcp/common/bpf.c        Sun Apr 08 20:48:52 2001 +0000
@@ -47,7 +47,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: bpf.c,v 1.9 2001/04/06 17:08:53 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: bpf.c,v 1.10 2001/04/08 20:48:52 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -504,8 +504,7 @@
                                               hdr.bh_caplen);
                        continue;
                }
-               interface -> rbuf_offset =
-                       BPF_WORDALIGN (interface -> rbuf_offset + offset);
+               interface -> rbuf_offset = interface -> rbuf_offset + offset;
                hdr.bh_caplen -= offset;
 
                /* If there's not enough room to stash the packet data,



Home | Main Index | Thread Index | Old Index