gdhcp: Set client state to INIT_SELECTING on restart
authorForest Bond <forest.bond@rapidrollout.com>
Mon, 16 Jul 2012 13:09:01 +0000 (09:09 -0400)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 17 Jul 2012 08:22:12 +0000 (10:22 +0200)
commit74d19997c964b60b9f94dc82b5531173f83c1081
tree3c9cfa33f2b18ce395b5bab6758380a9b3c8aa12
parent18af3028c215a28732acf55099559074154aa26e
gdhcp: Set client state to INIT_SELECTING on restart

With the previous behavior, we would end up sending a discover message
and then ignoring the reply due to the client state mismatch, so a
restart would never result in successful acquisition of a lease.

RFC 2131 specifies that the client should return to INIT state in
various restart scenarios.  However, also note that it would not make
sense in any case to send a discover message and ignore the reply.
gdhcp/client.c