File 0022-modprobe-af_packet-early-before-link-set-up.patch of Package sysconfig.openSUSE_12.1_Update

From 86d5fe875765a54eccb58547a9df7d3dfe0ade07 Mon Sep 17 00:00:00 2001
From: Marius Tomaschewski <mt@suse.com>
Date: Wed, 26 Sep 2012 17:34:40 +0200
References: bnc#780644
Subject: [PATCH 04/11] modprobe af_packet early, before link set up

---
 scripts/ifup-dhcp |    6 ++++++
 1 Datei geändert, 6 Zeilen hinzugefügt(+)

diff --git a/scripts/ifup-dhcp b/scripts/ifup-dhcp
index c122e42..3bce0ee 100755
--- a/scripts/ifup-dhcp
+++ b/scripts/ifup-dhcp
@@ -682,6 +682,12 @@ case "$ACTION" in
 			write_cached_config_data hostname "`hostname 2>/dev/null`" $INTERFACE
 			commit_cached_config_data                                  $INTERFACE
 
+			# make sure linux packet filter is ready before we set
+			# the interface up. Otherwise some dhcp packets may be
+			# never sent (or dhcp does not get any response?) until
+			# both the link + af_packet are ready to use.
+			/sbin/modprobe af_packet
+
 			debug "Activating interface $INTERFACE"
 			if ! is_iface_up $INTERFACE ; then
 
-- 
1.7.10.4

openSUSE Build Service is sponsored by