After some compilation issues which were remedied by my mentor, Steven Pritchard, I successfully parsed the XML test file (shown earlier) and created the correct qdiscs/classes.
Still to do:
- "default" HTB class setting
- the Priomap qdisc and "set_prio" setting
- better error checking
- freeing memory
Tomorrow I will begin working on the "save" feature, which should allow current QoS settings to be saved into a gnode tree (similar to iptables-save).
Tuesday, June 19, 2007
Thursday, June 7, 2007
More on parsing
I lied in the last post, I've been using libxml2 to parse and write the config file. The example I posted had some minor errors in syntax which have been fixed now.
I had some problems with the Priomap qdisc and recursively traversing the xmlNodes while creating LQLElements. Because of this, I am creating a tree (a copy of the xml tree) using N-ary Trees included in Glib. This tree holds an xmlNode (for data such as qdisc type, and other properties), an LQLInterface (required for new LQLElements), and an LQLElement.
I had some problems with the Priomap qdisc and recursively traversing the xmlNodes while creating LQLElements. Because of this, I am creating a tree (a copy of the xml tree) using N-ary Trees included in Glib. This tree holds an xmlNode (for data such as qdisc type, and other properties), an LQLInterface (required for new LQLElements), and an LQLElement.
Subscribe to:
Posts (Atom)