On Mar 16, 2009, at 12:39 PM, Ed Cashin wrote:

> On Fri, Mar 06, 2009 at 01:04:53AM -0800, Matthew Ingersoll wrote:
> ...
> I would rather avoid introducing new parts of the source that aren't
> comfortable for folks using 80-character editors.
>

I overlooked this since I was pressed for time and wasn't using my  
usual editor  - I'll fix it.

> I am in a bit of a hurry, so sorry if I am missing something obvious,
> but why does the user need to supply an interface explicitly when the
> "-i" flag is in use?

Normally you start a vblade process by specifying an interface as  
argv[3] (minus getops)
  vbladed 0 0 eth0 /path/to/file

So I wanted to keep that style and any extra interfaces to use could  
be specified with the "-i" option
  vbladed -i eth1 0 0 eth0 /path/to/file
or
  vbladed -i eth1 -i eth2 0 0 eth0 /path/to/file

I haven't really given it that much thought other than keeping the  
argv/getop parsing/changes down to a minimum.
It could be modified to change the argv index after getop to assign  
the parameters correctly minus the "netif" parameter and possibly to  
comma separate the "-i" list like the "-m" option.
The current way works fine for me but feel free to suggest or modify.

--
Matth Ingersoll







------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Aoetools-discuss mailing list
Aoetools-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aoetools-discuss

Reply via email to