From e93c7089caccede589e930cec0172f0397b40ec1 Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Thu, 28 Dec 2000 23:13:07 +0000 Subject: [PATCH] Account for word alignment of buffer returned by bpf. --- common/bpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/bpf.c b/common/bpf.c index edc889a1..3a65ffa3 100644 --- a/common/bpf.c +++ b/common/bpf.c @@ -47,7 +47,7 @@ #ifndef lint static char copyright[] = -"$Id: bpf.c,v 1.44 2000/11/30 18:12:56 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: bpf.c,v 1.45 2000/12/28 23:13:07 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -425,7 +425,7 @@ ssize_t receive_packet (interface, buf, len, from, hfrom) if (length <= 0) return length; interface -> rbuf_offset = 0; - interface -> rbuf_len = length; + interface -> rbuf_len = BPF_WORDALIGN (length); } /* If there isn't room for a whole bpf header, something went