[PATCH netifd 0/4] order by address index in ubus output

Yousong Zhou yszhou4tech at gmail.com
Tue Oct 20 23:08:21 EDT 2020


Quote commit message of commit "interface: proto_ip: order by address index first"

> At the moment, dnsmasq initscript generates dhcp-range for an interface
> by inspecting first address of that interface from netifd ubus output.
>
> Order by address index as specified in the uci config make netifd ubus
> output consistent with linux network interfaces' primary/secondary
> address settings.  More importantly, the ubus output and dnsmasq config
> generation will be more predictable.

Yousong Zhou (4):
  build: find and use libnl header dirs
  proto: rework parse_addr to return struct device_addr
  device_addr: record address index as in the blob
  interface: proto_ip: order by address index first

 CMakeLists.txt |  8 ++++++--
 interface-ip.c | 11 +++++++++--
 interface-ip.h |  1 +
 proto.c        | 30 ++++++++++++++++++------------
 4 files changed, 34 insertions(+), 16 deletions(-)




More information about the openwrt-devel mailing list