diff options
| author | Satheesh Kumar K <sathk@cumulusnetworks.com> | 2019-09-23 20:45:05 -0700 | 
|---|---|---|
| committer | Satheesh Kumar K <sathk@cumulusnetworks.com> | 2019-09-23 23:03:12 -0700 | 
| commit | 9036d0ef1a7156780cf2c3118001144751dacc8c (patch) | |
| tree | 90df54337efa3de19d55ee382ced91b8543fae98 /pimd/pim_pim.c | |
| parent | 5034c882bfaf8d6c703ad5aa70a8a9652d7b6f24 (diff) | |
pimd: Mark Default TOS Values for PIM & IGMP Outgoing packets
This will facilitate the Hardware to prefer control packets over
Normal Data packets while queuing, so that during congestion, the
chance of dropping control packet will be minimised.
Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_pim.c')
| -rw-r--r-- | pimd/pim_pim.c | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index 12b28ed9af..cd2d306f3d 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -574,6 +574,7 @@ int pim_msg_send(int fd, struct in_addr src, struct in_addr dst,  	ip->ip_id = htons(++ip_id);  	ip->ip_hl = 5;  	ip->ip_v = 4; +	ip->ip_tos = IPTOS_PREC_INTERNETCONTROL;  	ip->ip_p = PIM_IP_PROTO_PIM;  	ip->ip_src = src;  	ip->ip_dst = dst;  | 
