]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
Add if_nametospec helper to decode and interface name such as bge1:2 into
authorRoy Marples <roy@marples.name>
Mon, 18 Jul 2016 10:53:45 +0000 (10:53 +0000)
committerRoy Marples <roy@marples.name>
Mon, 18 Jul 2016 10:53:45 +0000 (10:53 +0000)
commitb277b424d0daa25cb3a75cd14131754635004603
tree15b9b395fdce6e57c7ae6dc18108a2f3756cc1ee
parent6e2bd183a75a0cbf81173cbca04ab4be70b31b6f
Add if_nametospec helper to decode and interface name such as bge1:2 into
device name, lun, ppa and driver name.
Use this function when discovering addresesses and when they arrive
via the kernel listening socket so they can be assigned to the correct
physical interface.

This change does also stop `dhcpcd eth0:1` working on Linux, but is needed
for basic Solaris support.
dhcpcd.h
if-linux.c
if.c
if.h