summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>1999-09-20 09:10:46 +0000
committerru <ru@FreeBSD.org>1999-09-20 09:10:46 +0000
commitdbca32e915256c6097ea32b090fea3ee501ab814 (patch)
treef365f265ea1521d7857801da3d70d0dc58d34fac /usr.sbin
parentc3c763bc9d3978cbcc38d23dbcc6771edad750de (diff)
downloadFreeBSD-src-dbca32e915256c6097ea32b090fea3ee501ab814.zip
FreeBSD-src-dbca32e915256c6097ea32b090fea3ee501ab814.tar.gz
Yet another align.
It will be required if sizeof(struct sockaddr_in) changes in the future. Not objected to by: wollman
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/arp/arp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index 3fde087..0343bd2 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -451,7 +451,7 @@ search(u_long addr, void (*action)(struct sockaddr_dl *sdl,
for (next = buf; next < lim; next += rtm->rtm_msglen) {
rtm = (struct rt_msghdr *)next;
sin = (struct sockaddr_inarp *)(rtm + 1);
- sdl = (struct sockaddr_dl *)(sin + 1);
+ (char *)sdl = (char *)sin + ROUNDUP(sin->sin_len);
if (addr) {
if (addr != sin->sin_addr.s_addr)
continue;
OpenPOWER on IntegriCloud