netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [fragmentation ICMP 0/2] fragmentation ICMP
@ 2015-05-06  1:59 Andy Zhou
  2015-05-06  1:59 ` [net-next fragmenation icmp 1/2] ipv4_fragment: Add a bit in IPCB to control ICMP generation Andy Zhou
  2015-05-06  1:59 ` [net-next fragmenation icmp 2/2] bridge: do not send icmp on fragmentation or defragmentation error Andy Zhou
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Zhou @ 2015-05-06  1:59 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.

This patch series adds a bit in IPCB to control whether ICMP packet
should be generated on fragmentation or de-fragmentation error. Currently
the only user is br_netfilter.

Andy Zhou (2):
  ipv4_fragment: Add a bit in IPCB to control ICMP generation
  bridge: do not send icmp on fragmentation or defragmentation error

 include/net/inet_frag.h   |  2 ++
 include/net/ip.h          |  1 +
 net/bridge/br_netfilter.c |  7 +++++++
 net/ipv4/ip_fragment.c    | 11 ++++++++++-
 net/ipv4/ip_output.c      |  5 +++--
 5 files changed, 23 insertions(+), 3 deletions(-)

-- 
1.9.1

*** BLURB HERE ***

Andy Zhou (2):
  ipv4_fragment: Add a bit in IPCB to control ICMP generation
  bridge: do not send icmp on fragmentation or defragmentation error

 include/net/inet_frag.h   |  2 ++
 include/net/ip.h          |  1 +
 net/bridge/br_netfilter.c |  7 +++++++
 net/ipv4/ip_fragment.c    | 11 ++++++++++-
 net/ipv4/ip_output.c      |  5 +++--
 5 files changed, 23 insertions(+), 3 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2015-05-06 21:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-06  1:59 [fragmentation ICMP 0/2] fragmentation ICMP Andy Zhou
2015-05-06  1:59 ` [net-next fragmenation icmp 1/2] ipv4_fragment: Add a bit in IPCB to control ICMP generation Andy Zhou
2015-05-06 12:23   ` Eric Dumazet
2015-05-06 21:12     ` Andy Zhou
2015-05-06  1:59 ` [net-next fragmenation icmp 2/2] bridge: do not send icmp on fragmentation or defragmentation error Andy Zhou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).