libvirt/src/nwfilter
Stefan Berger 5174b02fb9 Consolidate interface related functions in interface.c
Changes from v1 to v2:
- changed function name prefixes to 'iface' from previous 'Iface'

- Further to make make syntax-check pass:
 - indentation fix in interface.h
 - added entry to POTFILES.in

I am consolidating network interface related functions used in nwfilter
and macvtap code in utils/interface.c. All function names are prefixed
with 'Iface'. The following functions are now available through
interface.h:

int ifaceCtrl(const char *name, bool up);
int ifaceUp(const char *name);
int ifaceDown(const char *name);

int ifaceCheck(bool reportError, const char *ifname,
               const unsigned char *macaddr, int ifindex);

int ifaceGetIndex(bool reportError, const char *ifname, int *ifindex);

I added 'int ifindex' as parameter to ifaceCheck to the original
function and modified the code accordingly.
2010-04-13 10:57:11 -04:00
..
nwfilter_driver.c nwfilter: Fix memory leak on daemon init and shutdown 2010-04-12 08:19:11 -04:00
nwfilter_driver.h filter new files through cppi, so syntax-check passes once again 2010-03-26 22:47:30 +01:00
nwfilter_ebiptables_driver.c nwfilter: fix for directionality of ICMP traffic 2010-04-08 06:25:38 -04:00
nwfilter_ebiptables_driver.h nwfilter: Support for learning a VM's IP address 2010-04-07 23:12:21 +02:00
nwfilter_gentech_driver.c Consolidate interface related functions in interface.c 2010-04-13 10:57:11 -04:00
nwfilter_gentech_driver.h Consolidate interface related functions in interface.c 2010-04-13 10:57:11 -04:00
nwfilter_learnipaddr.c Consolidate interface related functions in interface.c 2010-04-13 10:57:11 -04:00
nwfilter_learnipaddr.h nwfilter: Support for learning a VM's IP address 2010-04-07 23:12:21 +02:00