[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-cvs
Subject:    CVS: cvs.openbsd.org: src
From:       David Gwynne <dlg () openbsd ! org>
Date:       2018-02-27 22:32:26
Message-ID: ac632d309085bc7f () openbsd ! org
[Download RAW message or body]

CVSROOT:	/cvs
Module name:	src
Changes by:	dlg@cvs.openbsd.org	2018/02/27 15:32:26

Modified files:
	sbin/ifconfig  : ifconfig.c 

Log message:
handle "tunnels" without a destination address

this is used for mgre, which has a local address but dynamically
addresses other endpoints based on routing information.

"tunneladdr" takes a single address (where "tunnel" takes two) and
sets the destination address in the ioctl to an AF_UNSPEC destination.

tunnel status is changed so it recognises this and only outputs the
local address if the destination is AF_UNSPEC. the tunnel status
is also changed so it can tell the difference between tunnels being
unsupported on the interface (ie, ENOTTY comes back) or if there's
just no address configured yet (EADDRNOTAVAIL), which allows the
other tunnel params like ttl and df to be shown.

tested with and without -DSMALL

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic