forked from Mirror/frr
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).
This commit is contained in:
parent
9a1a331d63
commit
78b31d5cf5
|
@ -1372,6 +1372,9 @@ rip_create_socket (struct sockaddr_in *from)
|
||||||
#ifdef RIP_RECVMSG
|
#ifdef RIP_RECVMSG
|
||||||
setsockopt_pktinfo (sock);
|
setsockopt_pktinfo (sock);
|
||||||
#endif /* RIP_RECVMSG */
|
#endif /* RIP_RECVMSG */
|
||||||
|
#ifdef IPTOS_PREC_INTERNETCONTROL
|
||||||
|
setsockopt_ipv4_tos (sock, IPTOS_PREC_INTERNETCONTROL);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (ripd_privs.change (ZPRIVS_RAISE))
|
if (ripd_privs.change (ZPRIVS_RAISE))
|
||||||
zlog_err ("rip_create_socket: could not raise privs");
|
zlog_err ("rip_create_socket: could not raise privs");
|
||||||
|
|
Loading…
Reference in a new issue