PR/36484: Pavlin Radoslavov: PIM Register in-kernel encapsulation IP_DF

setting is incorrect
This commit is contained in:
christos 2007-06-13 23:09:59 +00:00
parent ae302fd15c
commit fc506e028c
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_mroute.c,v 1.102 2007/04/25 00:11:18 dyoung Exp $ */
/* $NetBSD: ip_mroute.c,v 1.103 2007/06/13 23:09:59 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@ -93,7 +93,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.102 2007/04/25 00:11:18 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.103 2007/06/13 23:09:59 christos Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@ -3304,7 +3304,7 @@ pim_register_send_rp(struct ip *ip, struct vif *vifp,
*/
ip_outer->ip_tos = ip->ip_tos;
if (ntohs(ip->ip_off) & IP_DF)
ip_outer->ip_off |= IP_DF;
ip_outer->ip_off |= htons(IP_DF);
pimhdr = (struct pim_encap_pimhdr *)((char *)ip_outer
+ sizeof(pim_encap_iphdr));
*pimhdr = pim_encap_pimhdr;