diff options
| author | 2008-05-10 01:52:34 +0000 | |
|---|---|---|
| committer | 2008-05-10 01:52:34 +0000 | |
| commit | c881b255f8056dc660d1700469f362c9a953911d (patch) | |
| tree | 5451a2910f5fe70d43004b122855f21b77943fb5 /sys/net/if_ethersubr.c | |
| parent | - Count excess and late collisions as output errors. (diff) | |
| download | wireguard-openbsd-c881b255f8056dc660d1700469f362c9a953911d.tar.xz wireguard-openbsd-c881b255f8056dc660d1700469f362c9a953911d.zip | |
convert sdltosa to a real cast because I removed the silly makro last night.
Diffstat (limited to 'sys/net/if_ethersubr.c')
| -rw-r--r-- | sys/net/if_ethersubr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 974046bf7ed..48af47dd281 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ethersubr.c,v 1.120 2008/05/09 00:37:43 claudio Exp $ */ +/* $OpenBSD: if_ethersubr.c,v 1.121 2008/05/10 01:52:34 claudio Exp $ */ /* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */ /* @@ -340,9 +340,11 @@ ether_output(ifp0, m0, dst, rt0) switch (dst->sa_family) { case AF_LINK: - if (satosdl(dst)->sdl_alen < sizeof(edst)) + if (((struct sockaddr_dl *)dst)->sdl_alen < + sizeof(edst)) senderr(EHOSTUNREACH); - bcopy(LLADDR(satosdl(dst)), edst, sizeof(edst)); + bcopy(LLADDR(((struct sockaddr_dl *)dst)), edst, + sizeof(edst)); break; case AF_INET: if (!arpresolve(ac, rt, m, dst, edst)) |
