From: Benjamin Cama Date: Fri, 16 Sep 2011 15:51:29 +0000 (+0200) Subject: Change the rtm_proto to some arbitrary-defined value. X-Git-Tag: debian/2.2.1-1fdn3~2^2 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/1a20ccb84089a46e7a9e73ade70c3cbce58bfadb?hp=6b54e4985e16ba807172532e1341ccd922f81260 Change the rtm_proto to some arbitrary-defined value. We change this value (which should really _not_ be RTPROT_BOOT) to some arbitrary number so that we can import it into BIRD. Signed-off-by: Benjamin Cama --- diff --git a/l2tpns.c b/l2tpns.c index 90ac930..5fad2df 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -456,7 +456,7 @@ static void routeset(sessionidt s, in_addr_t ip, int prefixlen, in_addr_t gw, in req.rt.rtm_family = AF_INET; req.rt.rtm_dst_len = prefixlen; req.rt.rtm_table = RT_TABLE_MAIN; - req.rt.rtm_protocol = RTPROT_BOOT; // XXX + req.rt.rtm_protocol = 42; req.rt.rtm_scope = RT_SCOPE_LINK; req.rt.rtm_type = RTN_UNICAST; @@ -535,7 +535,7 @@ void route6set(sessionidt s, struct in6_addr ip, int prefixlen, int add) req.rt.rtm_family = AF_INET6; req.rt.rtm_dst_len = prefixlen; req.rt.rtm_table = RT_TABLE_MAIN; - req.rt.rtm_protocol = RTPROT_BOOT; // XXX + req.rt.rtm_protocol = 42; req.rt.rtm_scope = RT_SCOPE_LINK; req.rt.rtm_type = RTN_UNICAST;