From 3e1f30610e109b3eff7e3d8b420c4b7988bd3152 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 1 Jun 1999 13:57:24 +0000 Subject: Defined IP_PREC_INTERNET_CONTROL and made all (well, both :)) protocols use it when creating sockets. --- proto/ospf/ospf.c | 2 +- proto/ospf/ospf.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'proto/ospf') diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 2836561..47c87f8 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -229,7 +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->tos=IP_PREC_INTERNET_CONTROL; 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 9d45993..19c9eeb 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -12,7 +12,6 @@ #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 -- cgit v1.2.3