[PATCH 4/4] Handling routing loops

2017-05-21 Thread Dean Luga
From: dean In networks with both routers that support SADR and routers that don't, there is the possibility of routing loops. draft-ietf-rtgwg-dst-src-routing-04 describes some ways to avoid these loops. One of these ways is to detect that the path for an SADR route passes through a non-SADR rout

[PATCH 3/4] OSPFv3 supports SADR

2017-05-21 Thread Dean Luga
From: dean A new OSPF variant can be used to support SADR. protocol ospf v3_sadr { ... } The channel type should be the same as for the static protocol, sadr_ip6. Static routes are distributed in OSPF using external LSAs. A new LSA type was created (LSA_T_EXT_SADR 0x4025) to distribute

[PATCH 2/4] Static protocol supports SADR

2017-05-21 Thread Dean Luga
From: dean A new channel, sadr_ip6, is used for SADR both in the kernel and static protocols. In the static protocol, routes can be inserted with the following syntax: route from via "interface" route from recursive There is a bug in the Linux kernel that causes undefined behavior when bot

[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

Source Address Dependent Routing patch

2017-05-21 Thread Dean
Hello, This is another try at extending the static and OSPFv3 protocols to support Source Address Dependent Routing (SADR), also called Source Specific Routing. This basically means that routing will take into account not only the destination address, but the source address as well. IPv6 sub