Project

General

Profile

Bug #75 » 0002-Adapting-ipfw-to-use-cations-as-flags-not-as-enums.patch

Adding patch for the next ipfw support (if apply) - Pablo Rincon, 02/05/2010 04:21 PM

View differences:

src/source-ipfw.c
SCEnter();
/* What to do with the packet? */
switch (p->action) {
case ACTION_ALERT:
case ACTION_PASS:
verdict = IPFW_ACCEPT;
break;
case ACTION_REJECT:
case ACTION_REJECT_DST:
case ACTION_REJECT_BOTH:
case ACTION_DROP:
default:
if (p->action & ACTION_REJECT || p->action & ACTION_REJECT_BOTH ||
p->action & ACTION_REJECT_DST || p->action & ACTION_DROP) {
verdict = IPFW_DROP;
} else if (p->action & ACTION_ALERT || p->action & ACTION_ALERT) {
verdict = IPFW_ACCEPT;
} else {
/* a verdict we don't know about, drop to be sure */
verdict = IPFW_DROP;
verdict = IPFW_DROP;
}
if (verdict == IPFW_ACCEPT) {
(2-2/2)