All of lore.kernel.org
 help / color / mirror / Atom feed
* [net-next fragmenation icmp v2 0/2] fragmentation ICMP
@ 2015-05-07  1:27 Andy Zhou
  2015-05-07  1:27 ` [net-next fragmenation icmp v2 1/2] bridge_netfilter: No ICMP packet on IPv4 defragmentation timeout Andy Zhou
  2015-05-07  1:27 ` [net-next fragmenation icmp v2 2/2] bridge_netfilter: No ICMP packet on IPv4 fragmentation error Andy Zhou
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Zhou @ 2015-05-07  1:27 UTC (permalink / raw)
  To: davem; +Cc: netdev, Andy Zhou

Currently, we send ICMP packets when errors occur during fragmentation or
de-fragmentation.  However, it is a bug when sending those ICMP packets
in the context of using netfilter for bridging.

Those ICMP packets are only expected in the context of routing, not in
bridging mode.

The Local stack are not involved in bridging forward decisions, thus
should be not used for deciding the reverse path for those ICMP messages.

This bug only affects IPV4, not in IPv6.

---
v1->v2:  restructure the patches into two patches that fix defragmentation and
         fragmentation respectively. 

	 A bit is add in IPCB to control whether ICMP packet should be
	 generated for defragmentation.

	 Fragmentation ICMP is now removed by restructuring the
	 ip_fragment() API.

Andy Zhou (2):
  bridge_netfilter: No ICMP packet on IPv4 defragmentation timeout
  bridge_netfilter: No ICMP packet on IPv4 fragmentation error

 include/net/inet_frag.h   |  4 +++-
 include/net/ip.h          |  3 +++
 net/bridge/br_netfilter.c | 25 ++++++++++++++++++++++++-
 net/ipv4/ip_fragment.c    | 12 ++++++++++--
 net/ipv4/ip_output.c      | 36 ++++++++++++++++++++++++------------
 5 files changed, 64 insertions(+), 16 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-07 20:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-07  1:27 [net-next fragmenation icmp v2 0/2] fragmentation ICMP Andy Zhou
2015-05-07  1:27 ` [net-next fragmenation icmp v2 1/2] bridge_netfilter: No ICMP packet on IPv4 defragmentation timeout Andy Zhou
2015-05-07  2:07   ` Florian Westphal
2015-05-07 20:09     ` Andy Zhou
2015-05-07  1:27 ` [net-next fragmenation icmp v2 2/2] bridge_netfilter: No ICMP packet on IPv4 fragmentation error Andy Zhou

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.