diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-07-07 18:39:12 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-07-07 18:39:12 +0000 |
commit | 865a3c0b1eca0bbccb96dc850a3360bcd31de946 (patch) | |
tree | d997a44ba2fbfbcfc5d083c4a398c78176fb4216 /usr.sbin | |
parent | 9ea910feca0f2283b30c2b0e6d4db52398d77391 (diff) |
It helps to set the sdl_family so that the kernel knows what this is.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ospf6d/kroute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ospf6d/kroute.c b/usr.sbin/ospf6d/kroute.c index 3f7f4d0ae79..da76b5ab88c 100644 --- a/usr.sbin/ospf6d/kroute.c +++ b/usr.sbin/ospf6d/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.35 2011/07/07 17:10:48 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.36 2011/07/07 18:39:11 claudio Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -1074,6 +1074,7 @@ send_rtmsg(int fd, int action, struct kroute *kroute) */ bzero(&ifp, sizeof(ifp)); ifp.addr.sdl_len = sizeof(struct sockaddr_dl); + ifp.addr.sdl_family = AF_LINK; ifp.addr.sdl_index = kroute->ifindex; /* adjust header */ |