Upstream: 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)
committerJaehyun Kim <jeik01.kim@samsung.com>
Fri, 12 Apr 2013 12:51:03 +0000 (21:51 +0900)
commitc2c35c2a2e1fa947697788200610fd91841cf248
tree3776b116cc5dec42ae8c36c7b5b2957f40f82b4d
parent3dcc53f736451d510df507baf5bd1bea57a79075
Upstream: 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.

Change-Id: Ia88452fb2d5e9670c81c58566d98f6fc21d9b198
gdhcp/client.c