Fixed (local) style bugs in previous revision.
This commit is contained in:
parent
8573e68110
commit
3843533e18
@ -463,7 +463,9 @@ rules starting from the rule number
|
|||||||
will be used for punching firewall holes.
|
will be used for punching firewall holes.
|
||||||
The range will be cleared for all rules on startup.
|
The range will be cleared for all rules on startup.
|
||||||
.It Fl log_ipfw_denied
|
.It Fl log_ipfw_denied
|
||||||
Log when a packet can't be re-injected because a ipfw rule deny it.
|
Log when a packet can not be re-injected because an
|
||||||
|
.Xr ipfw 8
|
||||||
|
rule blocks it.
|
||||||
.El
|
.El
|
||||||
.Sh RUNNING NATD
|
.Sh RUNNING NATD
|
||||||
The following steps are necessary before attempting to run
|
The following steps are necessary before attempting to run
|
||||||
|
@ -126,7 +126,7 @@ static int packetDirection;
|
|||||||
static int dropIgnoredIncoming;
|
static int dropIgnoredIncoming;
|
||||||
static int logDropped;
|
static int logDropped;
|
||||||
static int logFacility;
|
static int logFacility;
|
||||||
static int log_ipfw_denied;
|
static int logIpfwDenied;
|
||||||
|
|
||||||
int main (int argc, char** argv)
|
int main (int argc, char** argv)
|
||||||
{
|
{
|
||||||
@ -161,7 +161,7 @@ int main (int argc, char** argv)
|
|||||||
dynamicMode = 0;
|
dynamicMode = 0;
|
||||||
logDropped = 0;
|
logDropped = 0;
|
||||||
logFacility = LOG_DAEMON;
|
logFacility = LOG_DAEMON;
|
||||||
log_ipfw_denied = 0;
|
logIpfwDenied = 0;
|
||||||
/*
|
/*
|
||||||
* Mark packet buffer empty.
|
* Mark packet buffer empty.
|
||||||
*/
|
*/
|
||||||
@ -616,7 +616,7 @@ static void FlushPacketBuffer (int fd)
|
|||||||
(struct ip*) packetBuf,
|
(struct ip*) packetBuf,
|
||||||
ifMTU - aliasOverhead);
|
ifMTU - aliasOverhead);
|
||||||
}
|
}
|
||||||
else if (errno == EACCES && log_ipfw_denied) {
|
else if (errno == EACCES && logIpfwDenied) {
|
||||||
|
|
||||||
sprintf (msgBuf, "failed to write packet back");
|
sprintf (msgBuf, "failed to write packet back");
|
||||||
Warn (msgBuf);
|
Warn (msgBuf);
|
||||||
@ -1257,7 +1257,7 @@ static void ParseOption (const char* option, const char* parms)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case LogDenied:
|
case LogDenied:
|
||||||
logDropped = 1;
|
logDropped = yesNoValue;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LogFacility:
|
case LogFacility:
|
||||||
@ -1283,8 +1283,10 @@ static void ParseOption (const char* option, const char* parms)
|
|||||||
case PunchFW:
|
case PunchFW:
|
||||||
SetupPunchFW(strValue);
|
SetupPunchFW(strValue);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LogIpfwDenied:
|
case LogIpfwDenied:
|
||||||
log_ipfw_denied=1;
|
logIpfwDenied = yesNoValue;;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user