diff options
author | Chris Cappuccio <chris@cvs.openbsd.org> | 2009-06-05 03:54:43 +0000 |
---|---|---|
committer | Chris Cappuccio <chris@cvs.openbsd.org> | 2009-06-05 03:54:43 +0000 |
commit | fd2e525180d09afc20fd20316714687a98e7dadf (patch) | |
tree | 5dab9d16e5135a5d2b61c283ae1dbc29bab59e47 | |
parent | b19586007ce1b86e2eac330adac8815e4b115f4f (diff) |
more rtm->rtm_hdrlen conversion
ok claudio@
-rw-r--r-- | usr.sbin/arp/arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index 4e40e778138..f6e48dc8787 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arp.c,v 1.46 2009/06/05 00:13:35 claudio Exp $ */ +/* $OpenBSD: arp.c,v 1.47 2009/06/05 03:54:42 chris Exp $ */ /* $NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $ */ /* @@ -296,7 +296,7 @@ tryagain: warn("%s", host); return (1); } - sin = (struct sockaddr_inarp *)(rtm + 1); + sin = (struct sockaddr_inarp *)((char *)rtm + rtm->rtm_hdrlen); sdl = (struct sockaddr_dl *)(ROUNDUP(sin->sin_len) + (char *)sin); if (sin->sin_addr.s_addr == sin_m.sin_addr.s_addr) { if (sdl->sdl_family == AF_LINK && |