Re: [OpenWrt-Devel] [PATCH] luci-proto-wwan minimal support

2015-05-22 Thread Aleksandr Kolesnik
I don't have enough time to test it on CC, but here is link
http://goo.gl/zVP3yZ  to try it. Just unzip and copy that files to your
router, I little bit modified them to use on Luci-15.05, I think it should
work.

To Cezary: all depends on Jow.

2015-05-21 12:35 GMT+03:00 Adam Kuklycz :

> Or at least let us know how to apply the patch manually and I will add it
> into my unofficial builds that I make with the ar71xx platform.
>
> I'd love to see proper or even some sort of wwan support in the luci side
> of things.
>
>
>
> On 21/05/15 15:41, Cezary Jackiewicz wrote:
>
>> Dnia 2015-04-22, o godz. 15:59:37
>> Aleksandr Kolesnik  napisaƂ(a):
>>
>>  Signed-off-by: Aleksandr Kolesnik 
>>>
>> Hi,
>> there is chance to to include this into 15.05?
>>
>>  ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2] ncm: add support to run via proto wwan

2015-07-07 Thread Aleksandr Kolesnik
Hi,

Is it OK now?

Signed-off-by: Aleksandr Kolesnik 

--- a/package/network/utils/comgt/files/ncm.sh
+++ b/package/network/utils/comgt/files/ncm.sh
@@ -27,6 +27,8 @@ proto_ncm_setup() {
  local device apn auth username password pincode delay mode
  json_get_vars device apn auth username password pincode delay mode

+ [ -n "$ctl_device" ] && device=$ctl_device
+
  [ -n "$device" ] || {
  echo "No control device specified"
  proto_notify_error "$interface" NO_DEVICE


2015-07-07 15:03 GMT+03:00 John Crispin :

> Hi,
>
> patch is generated against the wrong root folder. also your mail client
> replaced tabs with spaces. please fix and resend the patch
>
> John
>
> On 22/04/2015 15:26, Aleksandr Kolesnik wrote:
> > Signed-off-by: Aleksandr Kolesnik  > <mailto:ner...@gmail.com>>
> >
> > --- package/network/utils/comgt/files/ncm.sh
> > +++ package/network/utils/comgt/files/ncm.sh
> > @@ -27,6 +27,8 @@ proto_ncm_setup() {
> >  local device apn auth username password pincode delay mode
> >  json_get_vars device apn auth username password pincode delay mode
> >
> > +[ -n "$ctl_device" ] && device=$ctl_device
> > +
> >  [ -n "$device" ] || {
> >  echo "No control device specified"
> >  proto_notify_error "$interface" NO_DEVICE
> >
> >
> > ___
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v3] ncm: add support to run via proto wwan

2015-07-07 Thread Aleksandr Kolesnik
Signed-off-by: Aleksandr Kolesnik 

 

--- a/package/network/utils/comgt/files/ncm.sh

+++ b/package/network/utils/comgt/files/ncm.sh

@@ -27,6 +27,8 @@ proto_ncm_setup() {

   local device apn auth username password pincode delay mode

   json_get_vars device apn auth username password pincode delay
mode

+  [ -n "$ctl_device" ] && device=$ctl_device

+  

   [ -n "$device" ] || {

   echo "No control device specified"

   proto_notify_error "$interface" NO_DEVICE

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v3] ncm: add support to run via proto wwan

2015-07-08 Thread Aleksandr Kolesnik
Signed-off-by: Aleksandr Kolesnik mailto:ner...@gmail.com> >

 

--- a/package/network/utils/comgt/files/ncm.sh

+++ b/package/network/utils/comgt/files/ncm.sh

@@ -27,6 +27,8 @@ proto_ncm_setup() {

   local device apn auth username password pincode delay mode

   json_get_vars device apn auth username password pincode delay
mode

+ [ -n "$ctl_device" ] && device=$ctl_device

+ 

   [ -n "$device" ] || {

   echo "No control device specified"

   proto_notify_error "$interface" NO_DEVICE

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [patch ] comgt-ncm: add support run via proto wwan

2015-04-22 Thread Aleksandr Kolesnik
Signed-off-by: Aleksandr Kolesnik 

--- package/network/utils/comgt/files/ncm.sh 2015-04-16 23:59:02.606193538
+0300
+++ package/network/utils/comgt/files/ncm.sh 2015-04-22 14:15:34.0
+0300
@@ -27,6 +27,8 @@ proto_ncm_setup() {
  local device apn auth username password pincode delay mode
  json_get_vars device apn auth username password pincode delay mode

+ [ -n "$ctl_device" ] && device=$ctl_device
+
  [ -n "$device" ] || {
  echo "No control device specified"
  proto_notify_error "$interface" NO_DEVICE
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] luci-proto-wwan minimal support

2015-04-22 Thread Aleksandr Kolesnik
Signed-off-by: Aleksandr Kolesnik 

--- a/contrib/package/luci/Makefile
+++ b/contrib/package/luci/Makefile
@@ -194,6 +194,7 @@ $(eval $(call protocol,ipv6,Support for
 $(eval $(call protocol,3g,Support for 3G,+PACKAGE_luci-proto-3g:comgt))
 $(eval $(call protocol,hso,Support for HSO,+PACKAGE_luci-proto-hso:comgt
+PACKAGE_luci-proto-hso:kmod-usb-net
+PACKAGE_luci-proto-hso:kmod-usb-net-hso))
 $(eval $(call protocol,relay,Support for relayd pseudo
bridges,+PACKAGE_luci-proto-relay:relayd))
+$(eval $(call protocol,wwan,Support for 3G/4g
wwan,+PACKAGE_luci-proto-wwan:wwan))


 ### Modules ###
--- a/modules/base/luasrc/model/network.lua
+++ b/modules/base/luasrc/model/network.lua
@@ -756,7 +756,11 @@ function protocol.ifname(self)
 end

 function protocol.proto(self)
- return "none"
+ local p = self:_ubus("proto")
+ if not p then
+ p = "none"
+ end
+ return p
 end

 function protocol.get_i18n(self)
@@ -934,7 +938,16 @@ function protocol.del_interface(self, if
 end

 function protocol.get_interface(self)
- if self:is_virtual() then
+ if self:is_virtual() and self:proto() == "wwan" then
+ local ldev = self:_ubus("l3_device")
+ if ldev then
+ _tunnel[ldev] = true
+ return interface(ldev, self)
+ else
+ _tunnel[self:proto() .. "-" .. self.sid] = true
+ return interface(self:proto() .. "-" .. self.sid, self)
+ end
+ elseif self:is_virtual() then
  _tunnel[self:proto() .. "-" .. self.sid] = true
  return interface(self:proto() .. "-" .. self.sid, self)
  elseif self:is_bridge() then
--- /dev/null
+++ b/protocols/wwan/Makefile
@@ -0,0 +1,2 @@
+include ../../build/config.mk
+include ../../build/module.mk
--- /dev/null
+++ b/protocols/wwan/luasrc/model/cbi/admin_network/proto_wwan.lua
@@ -0,0 +1,130 @@
+--[[
+LuCI - Lua Configuration Interface
+
+Copyright 2015 Aleksandr Kolesnik 
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+]]--
+
+local map, section, net = ...
+
+local apn, service, pincode, username, password
+local ipv6, maxwait, defaultroute, metric, peerdns, dns,
+  keepalive_failure, keepalive_interval, demand
+
+apn = section:taboption("general", Value, "apn", translate("APN"))
+
+
+pincode = section:taboption("general", Value, "pincode", translate("PIN"))
+
+
+username = section:taboption("general", Value, "username",
translate("PAP/CHAP username"))
+
+
+password = section:taboption("general", Value, "password",
translate("PAP/CHAP password"))
+password.password = true
+
+
+if luci.model.network:has_ipv6() then
+
+ ipv6 = section:taboption("advanced", Flag, "ipv6",
+ translate("Enable IPv6 negotiation on the PPP link"))
+
+ ipv6.default = ipv6.disabled
+
+end
+
+
+maxwait = section:taboption("advanced", Value, "maxwait",
+ translate("Modem init timeout"),
+ translate("Maximum amount of seconds to wait for the modem to become
ready"))
+
+maxwait.placeholder = "20"
+maxwait.datatype= "min(1)"
+
+
+defaultroute = section:taboption("advanced", Flag, "defaultroute",
+ translate("Use default gateway"),
+ translate("If unchecked, no default route is configured"))
+
+defaultroute.default = defaultroute.enabled
+
+
+metric = section:taboption("advanced", Value, "metric",
+ translate("Use gateway metric"))
+
+metric.placeholder = "0"
+metric.datatype= "uinteger"
+metric:depends("defaultroute", defaultroute.enabled)
+
+
+peerdns = section:taboption("advanced", Flag, "peerdns",
+ translate("Use DNS servers advertised by peer"),
+ translate("If unchecked, the advertised DNS server addresses are
ignored"))
+
+peerdns.default = peerdns.enabled
+
+
+dns = section:taboption("advanced", DynamicList, "dns",
+ translate("Use custom DNS servers"))
+
+dns:depends("peerdns", "")
+dns.datatype = "ipaddr"
+dns.cast = "string"
+
+
+keepalive_failure = section:taboption("advanced", Value,
"_keepalive_failure",
+ translate("LCP echo failure threshold"),
+ translate("Presume peer to be dead after given amount of LCP echo
failures, use 0 to ignore failures"))
+
+function keepalive_failure.cfgvalue(self, section)
+ local v = m:get(section, "keepalive")
+ if v and #v > 0 then
+ return tonumber(v:match("^(%d+)[ ,]+%d+") or v)
+ end
+end
+
+function keepalive_failure.write() end
+function keepalive_failure.remove() end
+
+keepalive_failure.placeholder = "0"
+keepalive_fai

[OpenWrt-Devel] [PATCH] comgt-ncm: add support run via proto wwan

2015-04-22 Thread Aleksandr Kolesnik
Signed-off-by: Aleksandr Kolesnik 

--- package/network/utils/comgt/files/ncm.sh 2015-04-16 23:59:02.606193538
 +0300
+++ package/network/utils/comgt/files/ncm.sh 2015-04-22 14:15:34.0
+0300
@@ -27,6 +27,8 @@ proto_ncm_setup() {
  local device apn auth username password pincode delay mode
  json_get_vars device apn auth username password pincode delay mode

+ [ -n "$ctl_device" ] && device=$ctl_device
+
  [ -n "$device" ] || {
  echo "No control device specified"
  proto_notify_error "$interface" NO_DEVICE
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2] ncm: add support to run via proto wwan

2015-04-22 Thread Aleksandr Kolesnik
Signed-off-by: Aleksandr Kolesnik 

--- package/network/utils/comgt/files/ncm.sh
+++ package/network/utils/comgt/files/ncm.sh
@@ -27,6 +27,8 @@ proto_ncm_setup() {
  local device apn auth username password pincode delay mode
  json_get_vars device apn auth username password pincode delay mode

+ [ -n "$ctl_device" ] && device=$ctl_device
+
  [ -n "$device" ] || {
  echo "No control device specified"
  proto_notify_error "$interface" NO_DEVICE
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [ar71xx] myloader partition table update (resizing)

2013-11-04 Thread Aleksandr Kolesnik
Default kernel size is bigger than partition table have.

[mkmylofw] Error: file
/home/user/wpe72-12.09.1/build_dir/linux-ar71xx_generic/tmp/vmlinux-wpe72.bin.lzma
is too big
make[5]: [install] Error 1 (ignored)

New table solved this problem, also it have "firmware" partition.
https://dev.openwrt.org/ticket/14096


Best regards,
Aleksandr Kolesnik


myloader.patch
Description: Binary data
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: myloader partition table resizing

2013-11-04 Thread Aleksandr Kolesnik
Give more size for Kernel part

Signed-off-by: Aleksandr Kolesnik 


myloader.patch
Description: Binary data
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: myloader partition table resizing

2013-11-05 Thread Aleksandr Kolesnik
Make more space for kernel part.
Add new firmware partition

[mkmylofw] Error: file
/home/user/wpe72-12.09.1/build_dir/linux-ar71xx_generic/tmp/vmlinux-wpe72.bin.lzma
is too big
make[5]: [install] Error 1 (ignored)

New table solved this problem, also it have "firmware" partition.
https://dev.openwrt.org/ticket/14096

Signed-off-by: Aleksandr Kolesnik 


myloader.patch
Description: Binary data
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: Compex myloader partition table resizing

2013-11-05 Thread Aleksandr Kolesnik
Make more space for kernel part.
Add new "firmware" partition

[mkmylofw] Error: file
/home/user/wpe72-12.09.1/build_dir/linux-ar71xx_generic/tmp/vmlinux-wpe72.bin.lzma
is too big
make[5]: [install] Error 1 (ignored)

New table solved this problem, also it have "firmware" partition.
https://dev.openwrt.org/ticket/14096

Signed-off-by: Aleksandr Kolesnik 

Index: trunk/target/linux/ar71xx/image/Makefile
===
--- trunk/target/linux/ar71xx/image/Makefile (revision 38267)
+++ trunk/target/linux/ar71xx/image/Makefile (working copy)
@@ -409,8 +409,9 @@

 define Image/Build/MyLoader
  -$(STAGING_DIR_HOST)/bin/mkmylofw -B $(2) -s $(4) \
- -p0x03:0xe:al:0x8006:kernel:$(KDIR_TMP)/vmlinux-$(2).bin.lzma
\
- -p0x11:0:::rootfs:$(KDIR)/root.$(1) \
+ -p0x03:0x10:al:0x8006:kernel:$(KDIR_TMP)/vmlinux-$(2).bin.lzma
\
+ -p0x13:0:::rootfs:$(KDIR)/root.$(1) \
+ -p0x03:0:::firmware \
  $(call imgname,$(1),$(2))-$(5)-factory.img
 endef


myloader.patch
Description: Binary data
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: Compex WPE72 network leds, button and partition change for AA.

2013-11-07 Thread Aleksandr Kolesnik
Sorry, last patch has mistake.

This patch add two network leds, which wasn't included before.

Change button problem by adding active_low value.
Adding compex partition table changes for AA.

https://dev.openwrt.org/ticket/14096
https://dev.openwrt.org/ticket/12475

Signed-off-by: Aleksandr Kolesnik 


wpeFULL.patch
Description: Binary data
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] init script runs after S99sysctl?

2013-12-01 Thread Aleksandr Kolesnik
Hi Dat,

Why you cannot add yours script to run in /etc/rc.local? or if you need
change iptables everytime after some interface (ex WAN) going up, you can
easily create script in /etc/hotplug.d/iface/ directory where add :

[ ifup = "$ACTION" ] && [ "$INTERFACE" = "WAN" ] && {
#here add yours iptables

}

Regards,
Aleksandr



2013/12/2 Le Tran Dat 

> Hi all,
>
> I am trying to run a script after the S99sysctl. I tried to use START=100
> but it does not work.
>
> I don't want to extent the sysctl to call my script.
> for example:
> cat " /etc/init.d/myscript.sh start" >> /etc/init.d/sysctl
>
> I want to do so because my application needs to change iptables
> configuration after rebooting.
>
> Thanks
> Dat
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] init script runs after S99sysctl?

2013-12-01 Thread Aleksandr Kolesnik
http://wiki.openwrt.org/doc/techref/hotplug


2013/12/2 John Crispin 

> On 02/12/13 08:02, Le Tran Dat wrote:
>
>> Hi Aleksandr,
>>
>> Many thanks for your help, I added my script to /etc/rc.local and it
>> works like a cham. I haven't known about this script before.
>>
>> I don't know this too, I will check it later.
>>
>> or if you need change iptables everytime after some interface (ex
>> WAN) going up, you can easily create script in /etc/hotplug.d/iface/
>> directory where add :
>> [ ifup = "$ACTION" ] && [ "$INTERFACE" = "WAN" ] && {
>> #here add yours iptables
>> }
>>
>>
>>   I am using CoovaChilli's up.sh script to change iptables everytime
>> TUN/TAP interface going up but it somehow does not work as expected if I
>> do reboot. That's why I want to restart the CoovaChilli to apply up.sh
>> iptales rule. Anyway, It is just a work-around solution, I have to check
>> why up.sh does not work...
>>
>> Thanks,
>> Dat
>>
>>
> Hi,
>
> /etc/hotplug.d/net or /etc/hotplug.d/iface would be a more correct place
> for the script
>
> John
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How to use ethernet port as lan or wan port in WR703N

2014-02-18 Thread Aleksandr Kolesnik
look this topic https://forum.openwrt.org/viewtopic.php?id=48907 and
https://forum.openwrt.org/viewtopic.php?id=48892
looks like ath_register_eth(1) not selected, so device detect only one wan
port


2014-02-18 0:23 GMT+02:00 camden lindsay :

> It sounds like you have to re-configure the switch, to have the port
> that is currently 'wan' on the same vlan as the LAN.
>
> see http://wiki.openwrt.org/doc/uci/network/switch
>
> On Mon, Feb 17, 2014 at 2:04 PM, jonsm...@gmail.com 
> wrote:
> > On Mon, Feb 17, 2014 at 4:48 PM, Hartmut Knaack  wrote:
> >> jonsm...@gmail.com schrieb:
> >>> The switch (esw) configuration separates the LAN and WAN ports.
> >> But according to the wiki, the 703n has only one ethernet port and no
> switch.
> >
> > AR9331 has the switch on chip.
> > http://www.eeboard.com/wp-content/uploads/downloads/2013/08/AR9331.pdf
> >
> >
> >>>
> >>> On Mon, Feb 17, 2014 at 4:07 PM, Hartmut Knaack 
> wrote:
>  bjzhougong schrieb:
> > Dear Sirs.
> >
> >>> As we know, we can configure "network.lan.interface" or
> "network.wan.interface" as eth0 to use ethernet port as lan or wan port on
> WR703N.
> >>> I think it should need to do anything in driver for switch
> ethernet port,
> >>> and I want to know what happened between user space and kernel
> space after we run "/etc/init.d/network restart",
> >>> Thanks for any idea about this!
> > If there is any help? Thanks!
>  Not sure, what exactly you want to know. When running
> "/etc/init.d/network restart", all the configured options in
> /etc/config/network get configured. See
> http://wiki.openwrt.org/doc/uci/network for more information about
> available options.
>  When changing a certain network device from WAN to LAN, it is mainly
> about switching the configuration from being DHCP master or slave, and some
> routing configurations.
> >
> --
> > bjzhougong
> >
> >
> >
> >
> > ___
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>  ___
>  openwrt-devel mailing list
>  openwrt-devel@lists.openwrt.org
>  https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >>>
> >>>
> >> ___
> >> openwrt-devel mailing list
> >> openwrt-devel@lists.openwrt.org
> >> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >
> >
> >
> > --
> > Jon Smirl
> > jonsm...@gmail.com
> > ___
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How to use ethernet port as lan or wan port in WR703N

2014-02-18 Thread Aleksandr Kolesnik
you need to build own image where enable eth1 port. eth1 connected to
internal switch. Read topics
https://forum.openwrt.org/viewtopic.php?id=48907 and
https://forum.openwrt.org/viewtopic.php?id=48892


2014-02-18 15:04 GMT+02:00 bjzhougong :

>  Thanks for All
>
> but in WR703N's network config, it doesn't has switch:
>  config interface 'loopback'
> option ifname 'lo'
> option proto 'static'
> option ipaddr '127.0.0.1'
> option netmask '255.0.0.0'
>
> config interface 'lan'
> #option ifname 'eth0'
> option type 'bridge'
> option proto 'static'
> option ipaddr '192.168.22.1'
> option netmask '255.255.255.0'
>
> config interface 'wan'
> option ifname 'eth0'
> option proto 'dhcp'
>
> --
> bjzhougong
>
>  *From:* camden lindsay 
> *Date:* 2014-02-18 06:23
> *To:* OpenWrt Development List 
> *CC:* bjzhougong 
> *Subject:* Re: [OpenWrt-Devel] How to use ethernet port as lan or wan
> port in WR703N
>  It sounds like you have to re-configure the switch, to have the port
> that is currently 'wan' on the same vlan as the LAN.
>
> see http://wiki.openwrt.org/doc/uci/network/switch
>
> On Mon, Feb 17, 2014 at 2:04 PM, jonsm...@gmail.com  > wrote:
> > On Mon, Feb 17, 2014 at 4:48 PM, Hartmut Knaack  wrote:
> >> jonsm...@gmail.com schrieb:
> >>> The switch (esw) configuration separates the LAN and WAN ports.
>
> >> But according to the wiki, the 703n has only one ethernet port and no 
> >> switch.
> >
> > AR9331 has the switch on chip.
> > http://www.eeboard.com/wp-content/uploads/downloads/2013/08/AR9331.pdf
> >
> >
> >>>
> >>> On Mon, Feb 17, 2014 at 4:07 PM, Hartmut Knaack  > wrote:
>  bjzhougong schrieb:
> > Dear Sirs.
> >
>
> >>> As we know, we can configure "network.lan.interface" or 
> >>> "network.wan.interface" as eth0 to use ethernet port as lan or wan 
> >>> port on WR703N.
>
> >>> I think it should need to do anything in driver for switch ethernet 
> >>> port,
>
> >>> and I want to know what happened between user space and kernel space 
> >>> after we run "/etc/init.d/network restart",
> >>> Thanks for any idea about this!
> > If there is any help? Thanks!
>
>  Not sure, what exactly you want to know. When running 
>  "/etc/init.d/network restart", all the configured options in 
>  /etc/config/network get configured. See
> http://wiki.openwrt.org/doc/uci/network
>  for more information about available options.
>
>  When changing a certain network device from WAN to LAN, it is mainly 
>  about switching the configuration from being DHCP master or slave, and 
>  some routing configurations.
>
> > --
> > bjzhougong
> >
> >
> >
> >
> > ___
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>  ___
>  openwrt-devel mailing list
>  openwrt-devel@lists.openwrt.org
>  https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >>>
> >>>
> >> ___
> >> openwrt-devel mailing list
> >> openwrt-devel@lists.openwrt.org
> >> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >
> >
> >
> > --
> > Jon Smirl
> > jonsm...@gmail.com
> > ___
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel