diff options
author | Ulrich Dangel <uli@spamt.net> | 2011-03-28 18:59:36 +0200 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2011-03-29 14:54:06 +0200 |
commit | 462d58eb98068b99cbb52063d11ac28b74a77222 (patch) | |
tree | b648ad5bf84b292de35bfe32eb04d1b53f51ad5f | |
parent | 6df362216a2e5beb4f29feafeabc630034a76914 (diff) | |
download | klibc-462d58eb98068b99cbb52063d11ac28b74a77222.tar.gz |
[klibc] ipconfig: Ignore configured devices in process_recieve_event.
It may happen that process_receive_event is called with already configured
devices resulting in multiple prints of the device configuration.
This patch changes the behaviour of process_receive_event and ignores
already configured devices.
Signed-off-by: Ulrich Dangel <uli@spamt.net>
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/kinit/ipconfig/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c index 43b6637908fdc..76708a9454cc3 100644 --- a/usr/kinit/ipconfig/main.c +++ b/usr/kinit/ipconfig/main.c @@ -180,6 +180,8 @@ static int process_receive_event(struct state *s, time_t now) switch (s->state) { case DEVST_ERROR: return 0; /* Not handled */ + case DEVST_COMPLETE: + return 0; /* Not handled as already configured */ case DEVST_BOOTP: s->restart_state = DEVST_BOOTP; |