Separate local IP address query into a seaprate function

This change moves the local IP address query into its own function.

We then move it after the recvfrom() as the IP address may be stale by
the time recvfrom() returns.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
1 file changed
tree: 7a177025ef5d2e8febd698f310ba76ab3762e193
  1. inarp.c
  2. Makefile