From: Ted Lemon Date: Sun, 8 Apr 2001 21:12:49 +0000 (+0000) Subject: Fix an incorrect use of BPF_WORDALIGN X-Git-Tag: V3-RC1~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=611ba57c995eef193a9661c19b3531a1bc44404a;p=thirdparty%2Fdhcp.git Fix an incorrect use of BPF_WORDALIGN --- diff --git a/common/bpf.c b/common/bpf.c index 5e8214bf6..49af907dc 100644 --- a/common/bpf.c +++ b/common/bpf.c @@ -47,7 +47,7 @@ #ifndef lint static char copyright[] = -"$Id: bpf.c,v 1.47 2001/04/05 20:47:34 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: bpf.c,v 1.48 2001/04/08 21:12:49 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -500,8 +500,7 @@ ssize_t receive_packet (interface, buf, len, from, hfrom) 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,