aboutsummaryrefslogtreecommitdiffstats
path: root/testing/linux-virt-grsec/0004-arp-flush-arp-cache-on-device-change.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-29 11:49:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-29 11:49:41 +0000
commit1e30a1ac20bbe29cc2d4f5ce73c12ba5d8813a08 (patch)
tree4f29388ccbdb1b85b59f501c919be68d7b09cdfd /testing/linux-virt-grsec/0004-arp-flush-arp-cache-on-device-change.patch
parent9e1deb968c5a9ca95a3e6748f701fb02afca5a23 (diff)
downloadaports-1e30a1ac20bbe29cc2d4f5ce73c12ba5d8813a08.tar.bz2
aports-1e30a1ac20bbe29cc2d4f5ce73c12ba5d8813a08.tar.xz
testing/linux-virt-grsec: new aport
Linux kernel with grsecurity http://grsecurity.net
Diffstat (limited to 'testing/linux-virt-grsec/0004-arp-flush-arp-cache-on-device-change.patch')
-rw-r--r--testing/linux-virt-grsec/0004-arp-flush-arp-cache-on-device-change.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/linux-virt-grsec/0004-arp-flush-arp-cache-on-device-change.patch b/testing/linux-virt-grsec/0004-arp-flush-arp-cache-on-device-change.patch
new file mode 100644
index 0000000000..85161ea3a3
--- /dev/null
+++ b/testing/linux-virt-grsec/0004-arp-flush-arp-cache-on-device-change.patch
@@ -0,0 +1,29 @@
+From 8a0e3ea4924059a7268446177d6869e3399adbb2 Mon Sep 17 00:00:00 2001
+From: Timo Teras <timo.teras@iki.fi>
+Date: Mon, 12 Apr 2010 13:46:45 +0000
+Subject: [PATCH 04/18] arp: flush arp cache on device change
+
+If IFF_NOARP is changed, we must flush the arp cache.
+
+Signed-off-by: Timo Teras <timo.teras@iki.fi>
+---
+ net/ipv4/arp.c | 3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
+index 4e80f33..580bfc3 100644
+--- a/net/ipv4/arp.c
++++ b/net/ipv4/arp.c
+@@ -1200,6 +1200,9 @@ static int arp_netdev_event(struct notifier_block *this, unsigned long event, vo
+ neigh_changeaddr(&arp_tbl, dev);
+ rt_cache_flush(dev_net(dev), 0);
+ break;
++ case NETDEV_CHANGE:
++ neigh_changeaddr(&arp_tbl, dev);
++ break;
+ default:
+ break;
+ }
+--
+1.7.0.2
+