View | Details | Raw Unified | Return to bug 240650 | Differences between
and this patch

Collapse All | Expand All

(-)ipfw2.c (-2 / +2 lines)
Lines 3720-3726 Link Here
3720
	else if (proto == IPPROTO_IP || strcmp(av, "me") == 0 ||
3720
	else if (proto == IPPROTO_IP || strcmp(av, "me") == 0 ||
3721
	    inet_pton(AF_INET, host, &a) == 1)
3721
	    inet_pton(AF_INET, host, &a) == 1)
3722
		ret = add_srcip(cmd, av, cblen, tstate);
3722
		ret = add_srcip(cmd, av, cblen, tstate);
3723
	else if (ret == NULL && strcmp(av, "any") != 0)
3723
	else if (ret == NULL && strcmp(av, "any") == 0)
3724
		ret = cmd;
3724
		ret = cmd;
3725
3725
3726
	return ret;
3726
	return ret;
Lines 3750-3756 Link Here
3750
	else if (proto == IPPROTO_IP || strcmp(av, "me") == 0 ||
3750
	else if (proto == IPPROTO_IP || strcmp(av, "me") == 0 ||
3751
	    inet_pton(AF_INET, host, &a) == 1)
3751
	    inet_pton(AF_INET, host, &a) == 1)
3752
		ret = add_dstip(cmd, av, cblen, tstate);
3752
		ret = add_dstip(cmd, av, cblen, tstate);
3753
	else if (ret == NULL && strcmp(av, "any") != 0)
3753
	else if (ret == NULL && strcmp(av, "any") == 0)
3754
		ret = cmd;
3754
		ret = cmd;
3755
3755
3756
	return ret;
3756
	return ret;

Return to bug 240650