From 4e9d97f9bd4bf6ffea35c2fc1c968806bab268a6 Mon Sep 17 00:00:00 2001 From: Chris Cappuccio Date: Fri, 5 Jun 2009 22:40:25 +0000 Subject: rtm->rtm_hdrlen conversion ok claudio@, henning@ --- usr.sbin/rarpd/arptab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/rarpd') diff --git a/usr.sbin/rarpd/arptab.c b/usr.sbin/rarpd/arptab.c index 0bc28f90daa..ae785c17dcc 100644 --- a/usr.sbin/rarpd/arptab.c +++ b/usr.sbin/rarpd/arptab.c @@ -125,7 +125,7 @@ tryagain: s = -1; return (1); } - sin = (struct sockaddr_inarp *)(rtm + 1); + sin = (struct sockaddr_inarp *)((char *)rtm + rtm->rtm_hdrlen); sdl = (struct sockaddr_dl *)(sin->sin_len + (char *)sin); if (sin->sin_addr.s_addr == sin_m.sin_addr.s_addr) { if (sdl->sdl_family == AF_LINK && -- cgit v1.2.3