[LiSA-Users] Can i use LISA for..?

Radu Rendec radu.rendec at ines.ro
Fri Jul 6 18:39:29 EEST 2007


Hi,

1. If your software supports in any way the packet handling for those
interfaces and you restart it while the interfaces are in the switch,
then... well... I think it's normal to get things crash.

2. The switch can be stopped by removing the "switch" module from the
kernel (i.e. "rmmod switch"). But it has the downside of completely
"shutting down" the switch (all configuration is lost etc.). It's safe
to remove the module even if it has running interfaces in it (it's
shutdown code is synchronized).

3. When you add a new interface to the switch, it is by default in
"access" mode (i.e. not tagged/trunk) and it is assigned to vlan 1. Each
vlan can be "seen" as a virtual interface (that's the core layer 3
functionality of LiSA). You just need to tell the switch to create the
virtual interface. In your case, it's necessary to do this:

	swctl addif 1

This would start the virtual interface for vlan nr. 1. The interface
will be named "vlan1", and you will be able to use it like br0 from the
bridge module.

Best regards,

Radu


On Fri, 2007-07-06 at 16:53 +0200, Ivan Muccini wrote:
> I install LiSA on a Slackware 11 with kernel 2.6.17.13. I aplly the
> patch and install the userspace tool.
> The command line seem work. If I add an ethernet inferface in a
> switch, the showmac command show me a list of mac address. 
> And also the wireless interface seem to work.
> In my software i need to create and destroy dynamically some VAP
> (virtual access point) and dynamically add and remove from the switch.
> If I stop my software and the restart, the utility like "ifconfig",
> "iwconfig" and "wlanconfig" break. 
> And I can't reboot my pc, because some wireless interface are busy and
> there are some error.
> For my test i need to stop and restart my software a lot of time, and
> evrytime i need to reboot the pc.
> 
> There is a way to stop the switch manually, so all the interface will
> removie from the switch? 
> Is possible to see the switch as virtuale device (like br0 when i use
> the bridge)?
> 
> Ivan
> 
> 2007/7/3, Radu Rendec <radu.rendec at ines.ro >:
>         On Mon, 2007-07-02 at 18:04 +0200, Ivan Muccini wrote:
>         > I like to use LiSA ioctl() calls directly from my program. 
>         >
>         > My only problem is that I need to work with 2.4 kernel.
>         > Does LiSA run olso in a 2.4 kernel version?
>         
>         Hi Ivan,
>         
>         Unfortunately lisa was written on 2.6 kernel. I think it could
>         be
>         backported to 2.4 with minor changes and yet lot of
>         headaches :)
>         Fortunately, the lisa kernel module was designed to be as
>         standalone as
>         possible. But of course, besides the networking stack (which
>         was only
>         touched by adding a function call hook) it uses a lot of core
>         kernel 
>         functions. The biggest issues are:
>         * RCU synchronization: this was only added in 2.6 kernels; I
>         know there
>         is a RCU patch for 2.4, but I don't know if it's 100%
>         compatible with
>         the 2.6 RCU api;
>         * module loading and unloading - some changes were made in
>         2.6.
>         
>         The truth is nobody asked us about compiling lisa against 2.4
>         kernels.
>         If you are willing to try (and have at least a bit of kernel
>         programming
>         knowledge), you could do that. And if you get stuck with
>         anything, maybe 
>         I can help if it doesn't involve spending too much time -
>         because this
>         is what I lack most :)
>         
>         Best regards,
>         
>         Radu
>         
>         
> 



More information about the LiSA-Users mailing list