Move callback initialization into child function.
Function interface_state() uses global handle.
Generate arp reply in test client.