On 2011/04/21 15:52, Reyk Floeter wrote:
> ok reyk@ but we should think about putting it in all copies of kroute.c
thanks. looking at the other copies of kroute.c:
ospfd needs route updates
bgpd needs route updates
ripd not sure, but probably needs updates
dvmrpd don't know
ldpd don't know
ospf6d needs route updates
This diff should help ospf6d, but I have no v6 OSPF setup to test
it on. The equivalent was committed to ospfd/kroute.c 1.85.
Index: kroute.c
===================================================================
RCS file: /cvs/src/usr.sbin/ospf6d/kroute.c,v
retrieving revision 1.30
diff -u -p -r1.30 kroute.c
--- kroute.c 7 Mar 2011 07:43:02 -0000 1.30
+++ kroute.c 21 Apr 2011 14:46:18 -0000
@@ -98,7 +98,7 @@ kr_init(int fs)
kr_state.fib_sync = fs;
- if ((kr_state.fd = socket(AF_ROUTE, SOCK_RAW, 0)) == -1) {
+ if ((kr_state.fd = socket(AF_ROUTE, SOCK_RAW, AF_INET6)) == -1) {
log_warn("kr_init: socket");
return (-1);
}