generating click configs with cpp. Classifier?

powell molleti powelllinux at yahoo.com
Tue Nov 6 22:30:36 EST 2001


hi,
 
--- "Douglas S. J. De Couto" <decouto at lcs.mit.edu>
wrote:
> Hi,
> 
> I am trying to generate click configuration files
> using cpp, and am 
> having a problem with the Classifier parameter
> syntax.
> 

> What ideas do people have for doing these sorts of
> dynamic configuration 
> generation?
> 

Well i really could not get your problem in the
broader sense. But i have written code that actually
parses the AddressInfo class and the IPFilter class
and then there is this ncurses console that displays
the info where any one can change and when the user
updates the policy on the console a new click config
file is generated. 

What i have done is writing three functions,  one that
parses the element and builds a data structure and
then function(s) to modify the data structure (or the
user can direcly use the datastructure) and the final
function that takes the data structure as the
parameter and builds the whole config file. 

wanna take a look at the code if it helps?,  then mail
me , otherwise kindly ignore this mail.

i hope this helps
cya
powell

> d
> 
> -- 
> Douglas S. J. De Couto    decouto at lcs.mit.edu
> 
> 


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com



More information about the click mailing list