On Sat, Aug 15, 2015 at 3:25 AM, Hans Dedecker <[email protected]> wrote:

> It would be better to make this a device setting like promiscuous
>> mode,macaddr, etc ... so it can be configured via UCI for every device and
>> thus not only restricted for GRE
>>
>
> Hans
>

You make an excellent point and I agree, but I'm unsure of some of the
details.

Is promisc mode controllable from UCI?  I didn't think it was but I can't
tell from looking at these parts of netifd.

Help me understand the extent of this implementation.  Looks like each of
these would need modification.  Did i miss anything?
device.c
  static const struct blobmsg_policy dev_attrs[__DEV_ATTR_MAX] = {
  device_merge_settings(struct device *dev, struct device_settings *n)
  device_init_settings(struct device *dev, struct blob_attr **tb)
  device_dump_status(struct blob_buf *b, struct device *dev)
system-linux.c
  system_if_get_settings(struct device *dev, struct device_settings *s)
  system_if_apply_settings(struct device *dev, struct device_settings *s,
unsigned int apply_mask)

UCI is all passthrough, right? nothing there would have to change?

-Nick
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to