aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/0002-arp-flush-arp-cache-on-IFF_NOARP-change.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-05-27 11:33:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-03 14:00:27 +0000
commit87760fec3a0aa1087b85e5c96b0e6fc16c4b87e7 (patch)
tree398e2a7484c7b008b39b4e480e76bff41d21100c /main/linux-grsec/0002-arp-flush-arp-cache-on-IFF_NOARP-change.patch
parent4d918a907f0cde4ac412b82ba2f9fef910490ef2 (diff)
downloadaports-87760fec3a0aa1087b85e5c96b0e6fc16c4b87e7.tar.gz
aports-87760fec3a0aa1087b85e5c96b0e6fc16c4b87e7.tar.bz2
aports-87760fec3a0aa1087b85e5c96b0e6fc16c4b87e7.tar.xz
main/linux-grsec: upgrade to 3.9.4 and use reworked arp and frag patches
fixes #1782 (cherry picked from commit a43c9a4092402400bd3f008d2841a468773ddad0)
Diffstat (limited to 'main/linux-grsec/0002-arp-flush-arp-cache-on-IFF_NOARP-change.patch')
-rw-r--r--main/linux-grsec/0002-arp-flush-arp-cache-on-IFF_NOARP-change.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/linux-grsec/0002-arp-flush-arp-cache-on-IFF_NOARP-change.patch b/main/linux-grsec/0002-arp-flush-arp-cache-on-IFF_NOARP-change.patch
new file mode 100644
index 0000000000..0e364f4718
--- /dev/null
+++ b/main/linux-grsec/0002-arp-flush-arp-cache-on-IFF_NOARP-change.patch
@@ -0,0 +1,35 @@
+From 36fbd62c47d800705d9989c69994359711514165 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
+Date: Thu, 23 May 2013 11:43:55 +0300
+Subject: [PATCH 2/6] arp: flush arp cache on IFF_NOARP change
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+IFF_NOARP affects what kind of neighbor entries are created
+(nud NOARP or nud INCOMPLETE). If the flag changes, flush the arp
+cache to refresh all entries.
+
+Signed-off-by: Timo Teräs <timo.teras@iki.fi>
+---
+ net/ipv4/arp.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
+index fea4929..2a06ecf 100644
+--- a/net/ipv4/arp.c
++++ b/net/ipv4/arp.c
+@@ -1226,6 +1226,10 @@ static int arp_netdev_event(struct notifier_block *this, unsigned long event,
+ neigh_changeaddr(&arp_tbl, dev);
+ rt_cache_flush(dev_net(dev));
+ break;
++ case NETDEV_CHANGE:
++ if (dev->flags_changed & IFF_NOARP)
++ neigh_changeaddr(&arp_tbl, dev);
++ break;
+ default:
+ break;
+ }
+--
+1.8.2.3
+