Optimize the state engine a little and fix timeval -> poll timeout calculation.
Optimize the state engine a little and fix timeval -> poll timeout calculation.


rsmarples/dhcpcd,rsmarples/dhcpcd,rsmarples/dhcpcd