]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: enable hex number inputs in filter XML
authorStefan Berger <stefanb@us.ibm.com>
Mon, 26 Apr 2010 17:50:40 +0000 (13:50 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Mon, 26 Apr 2010 17:50:40 +0000 (13:50 -0400)
commit5c7c755f50bf82d96b5c25aa622bd9c1eec45103
tree0ac4ce5a57b895563a78e61fdd91c19b6c1e23ff
parent8fa9c221424702459ebcf039cad6b1ef3278848b
nwfilter: enable hex number inputs in filter XML

With this patch I want to enable hex number inputs in the filter XML. A
number that was entered as hex is also printed as hex unless a string
representing the meaning can be found.

I am also extending the schema and adding a test case. A problem with
the DSCP value is fixed on the way as well.

Changes from V1 to V2:

- using asHex boolean in all printf type of functions to select the
output format in hex or decimal format
docs/schemas/nwfilter.rng
src/conf/nwfilter_conf.c
src/conf/nwfilter_conf.h
src/nwfilter/nwfilter_ebiptables_driver.c
tests/nwfilterxml2xmlin/hex-data-test.xml [new file with mode: 0644]
tests/nwfilterxml2xmlout/hex-data-test.xml [new file with mode: 0644]
tests/nwfilterxml2xmltest.c