Re: [PATCH 1/4] Core changes to support SADR

2017-05-23 Thread Ondrej Zajicek
On Sun, May 21, 2017 at 11:01:34PM +0200, Dean Luga wrote: > @@ -1394,7 +1404,8 @@ nl_parse_route(struct nl_parse_state *s, struct > nlmsghdr *h) >struct rtattr *a[BIRD_RTA_MAX]; >int new = h->nlmsg_type == RTM_NEWROUTE; > > - net_addr dst; > + net_addr dst, sadr_src; > + net_fill_ip6

Re: [PATCH 1/4] Core changes to support SADR

2017-05-22 Thread Dean
On 05/22/2017 03:30 PM, Ondrej Zajicek wrote: @@ -231,6 +232,20 @@ fib_find(struct fib *f, const net_addr *a) case NET_ROA6: return FIB_FIND(f, a, roa6); case NET_FLOW4: return FIB_FIND(f, a, flow4); case NET_FLOW6: return FIB_FIND(f, a, flow6); + case NET_SADR_IP6: +{ + i

Re: [PATCH 1/4] Core changes to support SADR

2017-05-22 Thread Ondrej Zajicek
On Sun, May 21, 2017 at 11:01:34PM +0200, Dean Luga wrote: > From: dean > > This patch adds a new network of type NET_SADR_IP6, including new > structures, constants, and switch cases for the new network type. > Some existing functions are duplicates to handle the new network > type, and netlink

[PATCH 1/4] Core changes to support SADR

2017-05-21 Thread Dean Luga
From: dean This patch adds a new network of type NET_SADR_IP6, including new structures, constants, and switch cases for the new network type. Some existing functions are duplicates to handle the new network type, and netlink can now handle SADR routes. The net_route_sadr_ip6 function is a bit o