summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>1999-05-31 21:07:31 +0200
committerOndrej Filip <feela@network.cz>1999-05-31 21:07:31 +0200
commitc72b09c8508d71b9a0a998c2dabe475d54b4d014 (patch)
tree29b82c6debb0b9fc7ab99a6a4f6e9f8405b532c7 /proto/ospf
parent35ff423d54ebabffc5ab9dd757dfa2a1a70e9676 (diff)
downloadbird-c72b09c8508d71b9a0a998c2dabe475d54b4d014.tar
bird-c72b09c8508d71b9a0a998c2dabe475d54b4d014.zip
IP socket priority (sock->tos) added. Constant taken from tcpdump of CISCO
and gated.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/ospf.c1
-rw-r--r--proto/ospf/ospf.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index 606ab9d..2836561 100644
--- a/proto/ospf/ospf.c
+++ b/proto/ospf/ospf.c
@@ -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;
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index 19c9eeb..9d45993 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -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