]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
IP socket priority (sock->tos) added. Constant taken from tcpdump of CISCO
authorOndrej Filip <feela@network.cz>
Mon, 31 May 1999 19:07:31 +0000 (19:07 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 31 May 1999 19:07:31 +0000 (19:07 +0000)
and gated.

proto/ospf/ospf.c
proto/ospf/ospf.h

index 606ab9d81c5a40b1237123b63666d8494ddc4f06..2836561fde04c13024d2226dacafca3f52fe4667 100644 (file)
@@ -229,6 +229,7 @@ ospf_open_socket(struct proto *p, struct ospf_iface *ifa)
     mcsk->dport=OSPF_PROTO;
     mcsk->saddr=AllSPFRouters;
     mcsk->daddr=AllSPFRouters;
+    mcsk->tos=OSPF_IP_PRI;
     mcsk->ttl=1;
     mcsk->rx_hook=ospf_rx_hook;
     mcsk->tx_hook=ospf_tx_hook;
index 19c9eeb1e46f693340dea2a64c6dd47a2b17fc25..9d45993e780b7ba4b45a0d75cdb0889d3a8fbf25 100644 (file)
@@ -12,6 +12,7 @@
 #define OSPF_PROTO 89
 #ifndef IPV6
 #define OSPF_VERSION 2
+#define OSPF_IP_PRI 0xc0
 #define AllSPFRouters ipa_from_u32(0xe0000005) /* 224.0.0.5 */
 #define AllDRouters ipa_from_u32(0xe0000006)   /* 224.0.0.6 */
 #else