if (!ip6tc_commit(handle)) {
STC_LOGE("Failed to ip6tc_commit [%s]", ip6tc_strerror(errno)); //LCOV_EXCL_LINE
ip6tc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
ip6tc_free(handle);
if (!ip6tc_delete_entry(chain, (const ip6t_entry_t *)entry, mask, handle)) {
STC_LOGW("ip6tc_delete_entry failed [%s]", ip6tc_strerror(errno)); //LCOV_EXCL_LINE
ip6tc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_NONE; //LCOV_EXCL_LINE
}
if (!ip6tc_commit(handle)) {
STC_LOGE("Failed to ip6tc_commit [%s]", ip6tc_strerror(errno)); //LCOV_EXCL_LINE
ip6tc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
ip6tc_free(handle);
if (!ip6tc_commit(handle)) {
STC_LOGE("Failed to ip6tc_commit [%s]", ip6tc_strerror(errno)); //LCOV_EXCL_LINE
ip6tc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
ip6tc_free(handle);
if (!ip6tc_commit(handle)) {
STC_LOGE("Failed to ip6tc_commit [%s]", ip6tc_strerror(errno)); //LCOV_EXCL_LINE
ip6tc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
ip6tc_free(handle);
if (!ip6tc_commit(handle)) {
STC_LOGE("Failed to ip6tc_commit [%s]", ip6tc_strerror(errno)); //LCOV_EXCL_LINE
ip6tc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
ip6tc_free(handle);
if (!iptc_commit(handle)) {
STC_LOGE("Failed to iptc_commit [%s]", iptc_strerror(errno)); //LCOV_EXCL_LINE
iptc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
iptc_free(handle);
if (!iptc_delete_entry(chain, (const ipt_entry_t *)entry, mask, handle)) {
STC_LOGW("iptc_delete_entry failed [%s]", iptc_strerror(errno)); //LCOV_EXCL_LINE
iptc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_NONE; //LCOV_EXCL_LINE
}
if (!iptc_commit(handle)) {
STC_LOGE("Failed to iptc_commit [%s]", iptc_strerror(errno)); //LCOV_EXCL_LINE
iptc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
iptc_free(handle);
if (!iptc_commit(handle)) {
STC_LOGE("Failed to iptc_commit [%s]", iptc_strerror(errno)); //LCOV_EXCL_LINE
iptc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
iptc_free(handle);
if (!iptc_commit(handle)) {
STC_LOGE("Failed to iptc_commit [%s]", iptc_strerror(errno)); //LCOV_EXCL_LINE
iptc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
iptc_free(handle);
if (!iptc_commit(handle)) {
STC_LOGE("Failed to iptc_commit [%s]", iptc_strerror(errno)); //LCOV_EXCL_LINE
iptc_free(handle); //LCOV_EXCL_LINE
- return STC_ERROR_INVALID_OPERATION; //LCOV_EXCL_LINE
+ return STC_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
iptc_free(handle);