/*
- * Copyright (c) 2004-2007 Apple Inc. All rights reserved.
+ * Copyright (c) 2004-2012 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
if (!rule_vers1)
return;
- bzero(rule_vers1, sizeof(struct ip_fw_compat));
+ bzero(rule_vers1, sizeof(struct ip_fw_compat_32));
rule_vers1->version = IP_FW_VERSION_1;
rule_vers1->context = CAST_DOWN_EXPLICIT(user32_addr_t,curr_rule->context);
if (!rule_vers1)
return;
- bzero(rule_vers1, sizeof(struct ip_fw_compat));
+ bzero(rule_vers1, sizeof(struct ip_fw_compat_64));
rule_vers1->version = IP_FW_VERSION_1;
rule_vers1->context = CAST_DOWN_EXPLICIT(__uint64_t, curr_rule->context);
ipfw_insn *action, *cmd, *src, *dst;
ipfw_insn *have_state = NULL; /* track check-state or keep-state */
- if (!compat_rule || !curr_rule || !(curr_rule->cmd)) {
+ if (!compat_rule || !curr_rule) {
return;
}
ipfw_insn *action, *cmd, *src, *dst;
ipfw_insn *have_state = NULL; /* track check-state or keep-state */
- if (!compat_rule || !curr_rule || !(curr_rule->cmd)) {
+ if (!compat_rule || !curr_rule) {
return;
}