/** * iptablesRemoveOutputFixUdpChecksum: * @ctx: pointer to the IP table context * @iface: the interface name * @port: the UDP port of the rule to remove * * Removes the checksum fixup rule that was previous added with * iptablesAddOutputFixUdpChecksum. * * Returns 0 in case of success or an error code in case of error * (again, if iptables doesn't support checksum fixup, this will * return an error, which should be ignored) */ int iptablesRemoveOutputFixUdpChecksum(iptablesContext *ctx, const char *iface, int port) { return iptablesOutputFixUdpChecksum(ctx, iface, port, REMOVE); }
int iptablesAddOutputFixUdpChecksum(iptablesContext *ctx, const char *iface, int port) { return iptablesOutputFixUdpChecksum(ctx, iface, port, ADD); }
/** * iptablesRemoveOutputFixUdpChecksum: * @ctx: pointer to the IP table context * @iface: the interface name * @port: the UDP port of the rule to remove * * Removes the checksum fixup rule that was previous added with * iptablesAddOutputFixUdpChecksum. */ void iptablesRemoveOutputFixUdpChecksum(virFirewallPtr fw, const char *iface, int port) { iptablesOutputFixUdpChecksum(fw, iface, port, REMOVE); }
/** * iptablesAddOutputFixUdpChecksum: * @ctx: pointer to the IP table context * @iface: the interface name * @port: the UDP port to match * * Add a rule to the mangle table's POSTROUTING chain that fixes up the * checksum of packets with the given destination @port. * the given @iface interface for TCP packets. * */ void iptablesAddOutputFixUdpChecksum(virFirewallPtr fw, const char *iface, int port) { iptablesOutputFixUdpChecksum(fw, iface, port, ADD); }
int iptablesAddOutputFixUdpChecksum(const char *iface, int port) { return iptablesOutputFixUdpChecksum(iface, port, ADD); }