diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-07-21 16:27:26 -0700 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-07-27 12:37:26 +0100 |
commit | 78b31d5cf511c400d7f09158a3d8863f1bf63c2a (patch) | |
tree | b47a513278c23f7034c5ffa885facc1963d3a52a /ripd | |
parent | 9a1a331d63ae9db1912a1edb48c5c176454562f8 (diff) |
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).
Diffstat (limited to 'ripd')
-rw-r--r-- | ripd/ripd.c | 3 |
1 files changed, 3 insertions, 0 deletions
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"); |