mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
IP socket priority (sock->tos) added. Constant taken from tcpdump of CISCO
and gated.
This commit is contained in:
parent
35ff423d54
commit
c72b09c850
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user