From 78b31d5cf511c400d7f09158a3d8863f1bf63c2a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 21 Jul 2009 16:27:26 -0700 Subject: ripd: set IP TOS for control socket * ripd.c: (rip_create_socket) RIP packets should go out with Type Of Service (DSCP) set to Internet control (like OSPF and BGP). --- ripd/ripd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ripd/ripd.c b/ripd/ripd.c index c865acee..2d5a8560 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -1372,6 +1372,9 @@ rip_create_socket (struct sockaddr_in *from) #ifdef RIP_RECVMSG setsockopt_pktinfo (sock); #endif /* RIP_RECVMSG */ +#ifdef IPTOS_PREC_INTERNETCONTROL + setsockopt_ipv4_tos (sock, IPTOS_PREC_INTERNETCONTROL); +#endif if (ripd_privs.change (ZPRIVS_RAISE)) zlog_err ("rip_create_socket: could not raise privs"); -- cgit v1.2.1