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