aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config
Commit message (Collapse)AuthorAgeFilesLines
* firewall: allow '*' as synonym for any / all in family and proto optionsJo-Philipp Wich2014-09-191-2/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42620 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: fix heap corruption in fw3_bitlen2netmask() with IPv6 addressesJo-Philipp Wich2014-09-181-2/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42610 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: fix invalid memory access when processing /128 IPv6 addresses from ↵Jo-Philipp Wich2014-09-171-2/+2
| | | | | | | | ubus, properly emit REDIRECT rules for local port forwards Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42604 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: revert vr9 driver update as it causes problemsJohn Crispin2014-09-152-5/+5
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42556 3c298f89-4303-0410-b956-a3cf2f4a3e73
* qos-scripts: disable fq_codel ecn by default to improve compatibilityFelix Fietkau2014-09-111-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42479 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: update to a newer versions of the vr9 driversJohn Crispin2014-09-112-5/+5
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42478 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: work-around kernel IPv6 on-link route issueSteven Barth2014-09-081-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42439 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: update to the latest version, adds interface cleanup fixesFelix Fietkau2014-08-311-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42345 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: update to the latest version, fixes proto-shell teardown after renewFelix Fietkau2014-08-311-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42344 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/*: remove useless explicit set of function returncodeJohn Crispin2014-08-252-18/+0
| | | | | | | | | | | | | | | | | | | | | | somebody started to set a function returncode in the validation stuff and everybody copies it, e.g. myfunction() { fire_command return $? } a function automatically returns with the last returncode, so we can safely remove the command 'return $?'. reference: http://tldp.org/LDP/abs/html/exit-status.html "The last command executed in the function or script determines the exit status." Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42278 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: the firewall did not start properly on bootJohn Crispin2014-08-211-1/+1
| | | | | | | | https://dev.openwrt.org/ticket/17593 Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42233 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: assign ipv6-prefixes with length <64 with /64 on-link routesSteven Barth2014-08-131-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42161 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: fix potential NULL pointer accessJo-Philipp Wich2014-08-111-2/+2
| | | | | | | | Properly skip struct ifaddr entries with NULL ifa_addr, thanks Kostas Papadopoulos for reporting. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42138 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: implement selective conntrack flushing (#10225)Jo-Philipp Wich2014-08-111-2/+2
| | | | | | | | | | Utilize the new selective conntrack flushing facility to clear out active conntrack entries referring to old IP addresses after a firewall reload. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42114 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: unblock some proto shell actions in teardown stateSteven Barth2014-08-071-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42032 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: disable ds-lite, map & gre for old kernelsSteven Barth2014-08-061-2/+2
| | | | | | this unbreaks netifd compilation on old kernels git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42019 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: minor fixes (thanks Hans Dedecker)Steven Barth2014-08-051-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42000 3c298f89-4303-0410-b956-a3cf2f4a3e73
* gre: Change hostdependcy to remote endpoint tunnel addressSteven Barth2014-08-052-3/+3
| | | | | | | | | Depend on the GRE tunnel peeraddr to trigger setup of the tunnel interface. Addresses the issue reported in https://lists.openwrt.org/pipermail/openwrt-devel/2014-August/027201.html Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41998 3c298f89-4303-0410-b956-a3cf2f4a3e73
* gre: Generic Routing Encapsulation package supportSteven Barth2014-07-302-0/+299
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The package supports Generic Routing Encapsulation support by registering following protocol kinds: -gre -gretap -grev6 -grev6tap Following options are valid for gre and gretap kinds: -ipaddr -peeraddr -df -mtu -ttl -tunlink -zone -ikey -okey -icsum -ocsum -iseqno -oseqno The gretap kind supports additionally the network option Following options are valid for grev6 and grev6tap kinds: -ip6addr -peer6addr -weakif -mtu -ttl -tunlink -zone -ikey -okey -icsum -ocsum -iseqno -oseqno The grev6tap kind supports additionally the network option Typical network config for a GREv4 tunnel : config interface 'gre' option peeraddr '172.16.18.240' option mtu '1400' option proto 'gre' option tunlink 'wan' option zone 'tunnel' Typical network config for a GREv4 tap tunnel : config interface 'gretap' option peeraddr '195.207.5.79' option mtu '1400' option proto 'gretap' option zone 'tunnel' option tunlink 'wan' option network 'wlan_ap' I added myself as maintainer for the moment; feel free to change. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41897 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: fixes and GRE support (thx Hans Dedecker)Steven Barth2014-07-301-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41896 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: suppress fw3 warnings in dhcp scriptSteven Barth2014-07-301-1/+1
| | | | | | Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41892 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: more race condition fixes in proto-shellSteven Barth2014-07-291-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41887 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: more dynamic interface improvementsSteven Barth2014-07-281-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41862 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: fix a small issue in r41831Felix Fietkau2014-07-261-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41836 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: update to the latest version, fixes a race condition with renew/setupFelix Fietkau2014-07-261-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41831 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: Fix some race-conditions in interface handlingSteven Barth2014-07-241-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41825 3c298f89-4303-0410-b956-a3cf2f4a3e73
* softwires: redesign dhcp(v6) provisioningSteven Barth2014-07-242-3/+15
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41823 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: update to the latest version, enables bridge multicast querier and ↵Felix Fietkau2014-07-241-2/+2
| | | | | | | | fixes interface reload issues with wifi Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41818 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq-dsl: add 2 ugly workarounds for the IB to workJohn Crispin2014-07-212-2/+2
| | | | | | | | | | the IB tries to run the enable target on all init.d scripts. It fails when including the dsl_control helper. Check for existence prior to the include. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41787 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: implement support for abritary netmasksJo-Philipp Wich2014-07-191-2/+2
| | | | | | | | | | | Properly parse and pass arbritary netmasks to iptables, this allows specifying ranges like '::c23f:eff:fe7a:a094/::ffff:ffff:ffff:ffff' to match the host part of an IPv6 address regardless of the currently active IPv6 prefix. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41760 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: update to the latest version, adds a small validation fixFelix Fietkau2014-07-181-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41731 3c298f89-4303-0410-b956-a3cf2f4a3e73
* qos-scripts: convert to procdFelix Fietkau2014-07-181-5/+17
| | | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41730 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: update to the latest version, enables igmp snooping by defaultFelix Fietkau2014-07-171-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41683 3c298f89-4303-0410-b956-a3cf2f4a3e73
* qos-scripts: fix ingress packet marking with ifbFelix Fietkau2014-07-172-13/+27
| | | | | | | | | | | | | | | | Split connection mark into two parts: The lower nibble contains the confirmed conntrack mark which is not generated by default/reclassify rules. The upper nibble contains the current value specified by default/reclassify rules. For egress, the default/reclassify value is preferred For ingress, the connection mark is preferred Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41682 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: fix segfault introduced by latest updateJo-Philipp Wich2014-07-101-2/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41558 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: fix regressions introduced after latest ubus reworkJo-Philipp Wich2014-07-101-2/+2
| | | | | | | | | | The commit 92281eb747b56e748b7c3d754055919c23befdd4 broke fw3_ubus_addresses() so that no addresses where returned at all, this caused fw3 to not emit NAT reflection rules anymore. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41556 3c298f89-4303-0410-b956-a3cf2f4a3e73
* qos-scripts: remove maxsize options and packet size based reclassify from ↵Felix Fietkau2014-07-081-14/+0
| | | | | | | | | | | the default config They should be unnecessary with fq_codel, and simplifying rules helps with performance Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41549 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: fix issue with parsing network optionsJo-Philipp Wich2014-07-031-2/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41491 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: update to the latest version, adds support for fetching firewall ↵Felix Fietkau2014-07-021-2/+2
| | | | | | | | rules from procd Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41480 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: update to the latest version, fixes a crash on reload with ↵Felix Fietkau2014-06-291-1/+1
| | | | | | | | hotplugged devices Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41393 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: update to the latest version, addds a few fixes and enables ↵Felix Fietkau2014-06-291-2/+2
| | | | | | | | multicast->unicast for igmp snooping on wireless devices Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41390 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall3: add fw3 zone function to enumerate devicesSteven Barth2014-06-261-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41349 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: various routing table handling fixesSteven Barth2014-06-201-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41287 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Revert "netifd: fix handling of "lookup main" for ip rules (#15315)"Jo-Philipp Wich2014-06-201-2/+2
| | | | | | | | The netifd fixes went to the wrong repository, revert until it is sorted out. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41283 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: fix handling of "lookup main" for ip rules (#15315)Jo-Philipp Wich2014-06-201-2/+2
| | | | | | | | | Reworks the handling of RT_TABLE_MAIN in system-linux.c so that ip rules with lookup main can be properly setup. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41282 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: various bugfixes (thanks Hans Dedecker)Steven Barth2014-06-181-2/+2
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41259 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: use procd_add_reload_triggerFelix Fietkau2014-06-111-4/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41147 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: update to latest version, fixes reload issue (#16754) and adds ↵Felix Fietkau2014-06-111-2/+2
| | | | | | | | 802.1ad support Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41112 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: add support for onlink-flag for routesSteven Barth2014-06-101-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41098 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netfid: make procd watch the network.interface object for eventsJohn Crispin2014-06-051-0/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41010 3c298f89-4303-0410-b956-a3cf2f4a3e73