[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH] ifup: ifdown for network interface with mapped configuration
From: "Matthias Loy" <matthias.loy () hbm ! com>
Date: 2012-11-25 19:49:00
Message-ID: 50B2762C.1040208 () hbm ! com
[Download RAW message or body]
Hello,
we are using ifup from busy box in our embedded devices. In order to
reconfigure network interfaces we call ifdown, change the configuration
files and call ifup again. We found that ifdown does not work on mapped
configurations like eth1-dhcp or dhcp-manual. ifup is working fine.
Attached you find a small patch solving our problem. Is this ok for you?
regards,
Matthias Loy
Hottinger Baldwin Messtechnik GmbH, Im Tiefen See 45, 64293 Darmstadt, Germany | \
www.hbm.com
Registered as GmbH (German limited liability corporation) in the commercial register \
at the local court of Darmstadt, HRB 1147 Company domiciled in Darmstadt | CEO: \
Andreas Huellhorst | Chairman of the board: James Charles Webster
Als Gesellschaft mit beschraenkter Haftung eingetragen im Handelsregister des \
Amtsgerichts Darmstadt unter HRB 1147 Sitz der Gesellschaft: Darmstadt | \
Geschaeftsfuehrung: Andreas Huellhorst | Aufsichtsratsvorsitzender: James Charles \
Webster
The information in this email is confidential. It is intended solely for the \
addressee. If you are not the intended recipient, please let me know and delete this \
email.
Die in dieser E-Mail enthaltene Information ist vertraulich und lediglich für den \
Empfaenger bestimmt. Sollten Sie nicht der eigentliche Empfaenger sein, informieren \
Sie mich bitte kurz und loeschen diese E-Mail.
["0001-mapped-interface-should-be-resolved-in-case-of-ifdow.patch" (text/x-patch)]
From df4125f7dcd738eae0bebc4a02efcce9f223a88d Mon Sep 17 00:00:00 2001
From: Matthias Loy <matthias.loy@hbm.com>
Date: Sun, 25 Nov 2012 20:22:36 +0100
Subject: [PATCH] mapped interface should be resolved in case of ifdown
---
networking/ifupdown.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 8180482..6637eee 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1252,7 +1252,7 @@ int ifupdown_main(int argc UNUSED_PARAM, char **argv)
}
#if ENABLE_FEATURE_IFUPDOWN_MAPPING
- if ((cmds == iface_up) && !NO_MAPPINGS) {
+ if (!NO_MAPPINGS) {
struct mapping_defn_t *currmap;
for (currmap = defn->mappings; currmap; currmap = currmap->next) {
--
1.7.10.4
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic