[ previous ] [ next ] [ threads ]
 
 From:  "Chris Buechler" <cbuechler at gmail dot com>
 Cc:  "Mono Dev List" <m0n0wall dash dev at lists dot m0n0 dot ch>
 Subject:  Re: [m0n0wall-dev] where INTERFAC association info is stored?
 Date:  Mon, 6 Nov 2006 20:48:54 -0500
On 11/6/06, Alex M <radiussupport at lrcommunications dot net> wrote:
>
> How can I find out which interface is assigned to LAN and which to WAN? What
> file contains this info and how can I get it? I need to know the name of the
> interface so that I can do ifconfig for the interface later on
>

Unless I'm misunderstanding your question, that's all in config.xml.

<lan>
       <if>sis2</if>
...
 </lan>
  <wan>
          <if>sis0</if>
...
</wan>

etc...


There may be some way to programatically handle it with built in
functions, but someone with some development knowledge will have to
fill you in on that.

-Chris