chiark / gitweb /
server: Correct handling of interface names in tun interface.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 11 Jan 2007 00:04:39 +0000 (00:04 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 11 Jan 2007 00:04:39 +0000 (00:04 +0000)
commit72917fe7c663aced54f7e1185b7b72ba59aea73c
tree1c68356e0de1607deb2246fbebc5bb744d24193a
parent24952f96a3f853e9c37e2c501dd04ae6ee2a552e
server: Correct handling of interface names in tun interface.

Now that interface names can be changed, we need to let the tunnel
driver know of changes so that it can produce the right messages when
things go weird.  It's better to let the peer edifice handle interface
names, so

  * let `create' return the interface name rather than have p_ifname ask
    the tunnel explicitly, and

  * replace the `ifname' query with an optional `setifname'
    notification, which is currently used only by the SLIP driver to
    maintain the correct name for its persistent interfaces.
doc/tripe-admin.5.in
server/peer.c
server/tripe.h
server/tun-bsd.c
server/tun-linux.c
server/tun-slip.c
server/tun-unet.c