diff options
author | 2011-07-07 18:39:11 +0000 | |
---|---|---|
committer | 2011-07-07 18:39:11 +0000 | |
commit | 9529e7dcb6c71ec52c52593d972290dd5aacc77f (patch) | |
tree | 40ee38998a1df8f6edc29fd33d11e36d6ae09e11 | |
parent | Don't panic if uvm_fault fails, but enter ddb such that we can inspect the (diff) | |
download | wireguard-openbsd-9529e7dcb6c71ec52c52593d972290dd5aacc77f.tar.xz wireguard-openbsd-9529e7dcb6c71ec52c52593d972290dd5aacc77f.zip |
It helps to set the sdl_family so that the kernel knows what this is.
-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 */ |