summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/network
Commit message (Collapse)AuthorAgeFilesLines
* [package] base-files: r22444 caused interfaces to remain down if the macaddr ↵jow2010-08-021-2/+2
| | | | | | option is used, fix it. Also localize the txqueuelen option variable git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22467 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] add txqueuelen option, patch from Roberto Riggioflorian2010-07-311-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22444 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: introduce option "broadcast" for proto=dhcp interface ↵jow2010-06-021-2/+11
| | | | | | to enable the broadcast flag in DHCP requests, required by certain providers git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21661 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: remove IPv6 LL addr from interfaces before adding them ↵jow2010-06-021-0/+9
| | | | | | to a bridge git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21659 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files:jow2010-06-021-3/+22
| | | | | | | | | | | - add aliases to device by default (not ifname) - introduce option "layer" to select the target ifname to attach the alias to: - 3 use tun device (tun over bridge over device) fallback to bridge or device - 2 use bridge (bridge over device) fallback to device - 1 use device git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21655 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-file: move alias setup to route hotplug, this fixes alias ↵jow2010-06-011-36/+16
| | | | | | sections for non-static interfaces like ppp, dhcp, 6in4 etc. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21652 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files:jow2010-05-301-15/+28
| | | | | | | | | | - use add_dns() and remove_dns() for when changing resolv.conf.auto for static or dhcp interfaces - force 0644 permissions when creating resolv.conf.auto, fixes dnsmasq permissions denied problem with pppd interfaces - revert dns servers in /sbin/ifdown - bump package revision git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21638 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: revert r21595jow2010-05-281-2/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21597 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: bring bridge port iface down before changing the mac ↵jow2010-05-281-0/+2
| | | | | | (#7111) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21595 3c298f89-4303-0410-b956-a3cf2f4a3e73
* when changing the mac address of a bridge interface, keep member interface ↵nbd2010-05-271-1/+3
| | | | | | addresses in sync (patch from #7111) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21577 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: add add_dns() and remove_dns() helpers to network ↵jow2010-05-071-0/+29
| | | | | | config, useful to merge dns entries from multiple interfaces git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21391 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files, ppp: fix interface shutdownjow2010-05-061-3/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21386 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files, ppp: remove protocol specific cleanup code from ↵jow2010-05-051-5/+22
| | | | | | /sbin/ifdown and move it to protocol stop callbacks git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21383 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix error output of brctl if bridging is not supported.nbd2010-03-141-1/+1
| | | | | | | | | | | | The following error is displayed during network configuration on any device that has DEVICE_TYPE set to something else then router, or has brctl functionality disabled through some other method: "brctl: SIOCGIFBR: Package not installed" This is due to the unbridge function being called, which uses "brctl show" to determine if the interface is bridged. Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20218 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: revert dhcp state information on ifdown and restore ↵jow2010-02-121-0/+5
| | | | | | pre-r19530 behaviour in udhcp default.script git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19597 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-file: revert unrelated change accidentally committed in r19478jow2010-02-011-4/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19488 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: preinit: get rid of /dev/null redirections and use ↵jow2010-02-011-0/+4
| | | | | | grep -q where applicable git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19478 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: ensure that the ip6addr of the main interface stays ↵jow2010-01-231-20/+28
| | | | | | the primary ip by re-adding it after alias setup is completed - patch by Alina Friedrichsen git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19303 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Add udhcpc command-line argument to request rootpathhcg2009-12-211-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18876 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: clear ip addresses on interfaces that are about to be ↵jow2009-09-161-0/+2
| | | | | | added to a bridge git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17596 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Revert "fix nonhotpluggable networks not being brought up. Closes #2781" ↵nbd2009-09-091-1/+0
| | | | | | (r17527) until we've solved the race conditions it creates git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17544 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix nonhotpluggable networks not being brought up. Closes #2781thepeople2009-09-061-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17527 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: move ipv6 module loading from setup_interface() to ↵jow2009-08-101-9/+0
| | | | | | addif() in the hotplug call, this ensures that ipv6 is loaded before any interfaces or aliases with ip6addr option are configured (#5356) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17217 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: some /lib/network/config.sh refactoringnbd2009-08-071-25/+38
| | | | | | | | | | | * Localize a lot more variables than before. * Do stuff or localize variables at later points or inner blocks so less commands are executed in some cases. * Use the default option of config_get where it makes sense. Signed-off-by: Malte S. Stretz <mss@apache.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17160 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: ensure that ipv6 is loaded if interfaces have an ↵jow2009-08-041-12/+21
| | | | | | ip6addr defined, clean trailing whitespace, bump pkg revision (#5356) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17118 3c298f89-4303-0410-b956-a3cf2f4a3e73
* network: prevent unnecessary interface down/up cycles if no mac address ↵nbd2009-06-011-2/+3
| | | | | | change is requested git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16269 3c298f89-4303-0410-b956-a3cf2f4a3e73
* network: do not unnecessarily touch interfaces configured as proto=none; ↵nbd2009-06-011-2/+11
| | | | | | bring down old aliases before setting up new ones git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16266 3c298f89-4303-0410-b956-a3cf2f4a3e73
* do not run hotplug event for aliasesnbd2009-04-131-0/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15224 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package]jow2009-03-251-2/+9
| | | | | | | | | - fix mac assignment for broadcom vifs in bridging mode - thanks abramoff1 for spotting this - fix possible regression with different interface protocols - bump PKG_RELEASE git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15042 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] sync macs with vif bssids in broadcom.sh, fixes multi-ssid with wpajow2009-03-241-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15028 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Prevent "SIOCSIFHWADDR: Device or resource busy" when trying to change mac ↵jow2008-11-171-0/+1
| | | | | | address git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13258 3c298f89-4303-0410-b956-a3cf2f4a3e73
* make network config script work with brctl from both bridge-utils & busyboxnico2008-11-091-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13165 3c298f89-4303-0410-b956-a3cf2f4a3e73
* don't bring down interfaces when preparing themnbd2008-10-291-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13079 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fixes variables, oopsblogic2008-08-201-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12344 3c298f89-4303-0410-b956-a3cf2f4a3e73
* adds the option to have no proto for a interface, usefull if the uci states ↵blogic2008-08-201-0/+7
| | | | | | need to be set, but interface bring up is handled somewhere else git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12343 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add basic interface alias support.nbd2008-08-071-37/+80
| | | | | | | | | | | | | | for now (since we don't use ip in our network scripts yet), it adds :1, :2, ... alias interfaces this will change when we add support for the ip utility, but the config format will remain the same. example: config alias test option interface lan option ipaddr 192.168.1.1 option netmask 255.255.0.0 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12241 3c298f89-4303-0410-b956-a3cf2f4a3e73
* avoid duplicate vlan add eventsnbd2008-08-011-1/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12057 3c298f89-4303-0410-b956-a3cf2f4a3e73
* link default routes added by the network scripts to the appropriate ↵nbd2008-07-301-2/+2
| | | | | | interface (#2621) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12027 3c298f89-4303-0410-b956-a3cf2f4a3e73
* properly keep track of bridged interfaces in the network statenbd2008-07-301-0/+17
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12004 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix use of uci_set_state in network scripts (thx, netprince)nbd2008-04-071-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10763 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix interface enumeration issues related to /var/state/network (thx to fish ↵nbd2008-04-021-3/+13
| | | | | | for debugging this) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10715 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Here comes the new UCI. Enjoy :)nbd2008-02-031-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10367 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix ppp issues (thanks to Fatus for debugging this)nbd2007-11-301-2/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9634 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Allow specifying static IPv6 gateways (#2710)florian2007-11-161-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9569 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add support for interfaces with ipv6, but no ipv4 (patch from #2695)nbd2007-11-121-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9545 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Turn off stp by default, thanks ejkaflorian2007-10-181-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9345 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Turn on stp by default for bridges (#2476)florian2007-10-181-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9343 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add clientid to udhcpc thanks pjamathepeople2007-10-061-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9159 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix a race condition with dynamic interfaces and firewallingnbd2007-08-041-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8343 3c298f89-4303-0410-b956-a3cf2f4a3e73
* more wpa+wds patchesmbm2007-07-081-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7888 3c298f89-4303-0410-b956-a3cf2f4a3e73