Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-08-11 | utils: Move IP address validation to parse_addr function | Hans Dedecker | |
Commit 7a51f23e adds IP address validation in the function parse_ip_and_netmask; however the added check is too restrictive as the function is used on several places resulting into the problem multicast routes cannot be added anymore via UCI. Therefore move the IP host address validation to the function parse_addr so experimantal/multicast addresses cannot be added as a host IP address while multicast routes can be added again. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> | |||
2016-03-07 | utils.c: Add ip address validation | Naresh Kumar Mehta | |
Do not allow configuring invalid IPv4/IPv6 addresses. Curently if I configure LAN IP Address as 224.1.1.1, netifd will configure it. e.g. uci set network.lan.ipaddr='224.1.1.1' uci commit /etc/init.d/network restart Now ifconfig br-lan returns br-lan Link encap:Ethernet HWaddr 00:03:7F:13:BA:17 inet addr:224.1.1.1 Bcast:224.1.1.255 Mask:255.255.255.0 which is wrong. If I use ifconfig eth1 224.1.1.1, I will get ifconfig: SIOCSIFADDR: Invalid argument it means ifconfig is working fine, whereas netifd not. Proposed patch will test IPv4 address to make sure it is class A/B/C only. Similarly IPv6 multicast addresses will not be allowed. Signed-off-by: Naresh Kumar Mehta <naresh@codeaurora.org> | |||
2015-02-16 | utils.c: add missing include | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2014-02-17 | add a helper to convert blobmsg types to luci validate rules | John Crispin | |
Signed-off-by: John Crispin <blogic@openwrt.org> | |||
2013-10-22 | utils: add a function for checking if a process given by pid is still alive | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-02-19 | Only update resolv.conf if changed (avoid logspam) | Steven Barth | |
2012-09-28 | utils.c: add helper function to format mac addresses as strings | Jo-Philipp Wich | |
2012-06-18 | Move IP address parsing functions to utils. | Stéphan Kochen | |
This is a patch series against the netifd repository. This first patch moves some previously static functions to utils, so that the follow up patch may use them from system-linux.c. Signed-off-by: Stéphan Kochen <stephan@kochen.nl> | |||
2012-05-26 | vlist is now part of libubox | Felix Fietkau | |
2012-05-26 | avl_strcmp is now part of libubox | Felix Fietkau | |
2012-05-20 | flush list in vlist_replace() | Felix Fietkau | |
2012-05-19 | move dns server/search list parsing to interface core to support peerdns=0 + ↵ | Felix Fietkau | |
static entries | |||
2012-05-04 | add copyright headers | Felix Fietkau | |
2012-03-04 | vlist: add a special node version -1 for nodes that should not be flushed on ↵ | Felix Fietkau | |
updates | |||
2012-03-04 | simplify vlist, move avl key handling to vlist_add() | Felix Fietkau | |
2012-02-03 | vlist: fix node version update for tree->keep_old/no_delete | Felix Fietkau | |
2012-01-15 | add a simplified vlist type | Felix Fietkau | |
2011-10-24 | fix a logic error leading to segfaults on updates | Felix Fietkau | |
2011-10-03 | utils: fix existing node check when keep_old/no_delete is enabled | Felix Fietkau | |
2011-10-02 | add a new vlist flag for avoiding automatic delete of entries | Felix Fietkau | |
2011-10-02 | vlist: store a pointer to the real key to make lookups easier | Felix Fietkau | |
2011-10-02 | extend vlist code to allow keeping the old data structure instead of the new ↵ | Felix Fietkau | |
one on updates | |||
2011-10-02 | make versioned lists more flexible by using an external comparator | Felix Fietkau | |
2011-09-07 | add code for versioned lists and use it to manage addresses and routes | Felix Fietkau | |
2011-09-07 | move some code to utils.[ch] | Felix Fietkau | |