/** * iptablesRemoveUdpOutput: * @ctx: pointer to the IP table context * @iface: the interface name * @port: the UDP port to remove * * Removes an output from the IP table, hence forbidding access to the given * @port from the given @iface interface for UDP packets * * Returns 0 in case of success or an error code in case of error */ int iptablesRemoveUdpOutput(int family, const char *iface, int port) { return iptablesOutput(family, iface, port, REMOVE, 0); }
int iptablesAddUdpOutput(int family, const char *iface, int port) { return iptablesOutput(family, iface, port, ADD, 0); }
/** * iptablesRemoveUdpOutput: * @ctx: pointer to the IP table context * @iface: the interface name * @port: the UDP port to remove * * Removes an output from the IP table, hence forbidding access to the given * @port from the given @iface interface for UDP packets */ void iptablesRemoveUdpOutput(virFirewallPtr fw, virFirewallLayer layer, const char *iface, int port) { iptablesOutput(fw, layer, iface, port, REMOVE, 0); }
/** * iptablesAddUdpOutput: * @ctx: pointer to the IP table context * @iface: the interface name * @port: the UDP port to add * * Add an output to the IP table allowing access to the given @port from * the given @iface interface for UDP packets */ void iptablesAddUdpOutput(virFirewallPtr fw, virFirewallLayer layer, const char *iface, int port) { iptablesOutput(fw, layer, iface, port, ADD, 0); }