mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 18:50:39 +00:00
vrrpd: set DSCP byte on adverts to CS6
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
fa211f1c51
commit
6ad94d3abd
@ -831,6 +831,9 @@ static int vrrp_socket(struct vrrp_router *r)
|
|||||||
r->vr->vrid);
|
r->vr->vrid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Set Tx socket DSCP byte */
|
||||||
|
setsockopt_ipv4_tos(r->sock_tx, IPTOS_PREC_INTERNETCONTROL);
|
||||||
|
|
||||||
/* Turn off multicast loop on Tx */
|
/* Turn off multicast loop on Tx */
|
||||||
setsockopt_ipv4_multicast_loop(r->sock_tx, 0);
|
setsockopt_ipv4_multicast_loop(r->sock_tx, 0);
|
||||||
|
|
||||||
@ -917,6 +920,9 @@ static int vrrp_socket(struct vrrp_router *r)
|
|||||||
r->vr->vrid);
|
r->vr->vrid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Set Tx socket DSCP byte */
|
||||||
|
setsockopt_ipv6_tclass(r->sock_tx, IPTOS_PREC_INTERNETCONTROL);
|
||||||
|
|
||||||
/* Request hop limit delivery */
|
/* Request hop limit delivery */
|
||||||
setsockopt_ipv6_hoplimit(r->sock_rx, 1);
|
setsockopt_ipv6_hoplimit(r->sock_rx, 1);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user