iplib: Add a helper for finding the IP router
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 22 Dec 2016 18:56:42 +0000 (13:56 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 10 Jan 2017 00:01:40 +0000 (19:01 -0500)
commite3a08f9c2c56dda858d527187cdbfd911755fb79
tree4f27ecbb4e0fe1eafff35aebca891688bf4eb58b
parentedd3d027b487325d28422adaa8ead98b32f696be
iplib: Add a helper for finding the IP router

This will return a full IP address (v4 or v6).  To get a binary v4 address
(suitable for packet copies), use v6tov4() on the result.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/iplib/include/iplib/iplib.h
user/iplib/myipaddr.c