"fi\n",
PHYSDEV_IN, ifname,
match, ifname,
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
}
"%s",
chain, macaddr_str,
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
virBufferAsprintf(&buf,
CMD_DEF("$EBT -t nat -A %s -p IPv4 -j ACCEPT") CMD_SEPARATOR
"%s",
chain,
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
virBufferAsprintf(&buf,
CMD_DEF("$EBT -t nat -A %s -p ARP -j ACCEPT") CMD_SEPARATOR
"%s",
chain,
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
virBufferAsprintf(&buf,
CMD_DEF("$EBT -t nat -A %s -j DROP") CMD_SEPARATOR
"%s",
chain,
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
ebtablesLinkTmpRootChain(&buf, true, ifname);
ebtablesRenameTmpRootChain(&buf, true, ifname);
chain_in,
macaddr_str,
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
virBufferAsprintf(&buf,
CMD_DEF("$EBT -t nat -A %s -j DROP") CMD_SEPARATOR
"%s",
chain_in,
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
num_dhcpsrvrs = (dhcpsrvrs != NULL)
? virNWFilterVarValueGetCardinality(dhcpsrvrs)
chain_out,
(ctr == 0) ? macaddr_str : "ff:ff:ff:ff:ff:ff",
srcIPParam != NULL ? srcIPParam : "",
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
}
VIR_FREE(srcIPParam);
"%s",
chain_out,
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
ebtablesLinkTmpRootChain(&buf, true, ifname);
ebtablesLinkTmpRootChain(&buf, false, ifname);
"%s",
chain_in,
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
virBufferAsprintf(&buf,
CMD_DEF("$EBT -t nat -A %s -j DROP") CMD_SEPARATOR
"%s",
chain_out,
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
ebtablesLinkTmpRootChain(&buf, true, ifname);
ebtablesLinkTmpRootChain(&buf, false, ifname);
CMD_DEF("$FWC --state") CMD_SEPARATOR
CMD_EXEC
"%s",
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
if (ebiptablesExecCLI(&buf, false, &output) < 0) {
VIR_INFO("firewalld support disabled for nwfilter");
CMD_DEF("$EBT -t nat -L") CMD_SEPARATOR
CMD_EXEC
"%s",
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
if (ebiptablesExecCLI(&buf, false, &errmsg) < 0) {
VIR_FREE(ebtables_cmd_path);
CMD_DEF("$IPT -n -L FORWARD") CMD_SEPARATOR
CMD_EXEC
"%s",
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
if (ebiptablesExecCLI(&buf, false, &errmsg) < 0) {
VIR_FREE(iptables_cmd_path);
CMD_DEF("$IPT -n -L FORWARD") CMD_SEPARATOR
CMD_EXEC
"%s",
- CMD_STOPONERR(1));
+ CMD_STOPONERR(true));
if (ebiptablesExecCLI(&buf, false, &errmsg) < 0) {
VIR_FREE(ip6tables_cmd_path);