FreeBSD Bugzilla – Attachment 9240 Details for
Bug 18992
log packets blocked by filter rules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.59 KB, created by
loughry
on 2000-06-03 21:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
loughry
Created:
2000-06-03 21:50:01 UTC
Size:
1.59 KB
patch
obsolete
>*** ip.c.OLD Sat Jun 3 14:27:38 2000 >--- ip.c Sat Jun 3 14:28:12 2000 >*************** >*** 440,457 **** > struct udphdr *uh; > struct icmp *icmph; > char *ptop; >! int mask, len, n, pri, logit, loglen, result; > char logbuf[200]; > > logit = (log_IsKept(LogTCPIP) || log_IsKept(LogDNS)) && > (!filter || filter->logok); > loglen = 0; > pri = 0; > > pip = (struct ip *)cp; > uh = NULL; > >! if (logit && loglen < sizeof logbuf) { > if (filter) > snprintf(logbuf + loglen, sizeof logbuf - loglen, "%s ", filter->name); > else >--- 440,458 ---- > struct udphdr *uh; > struct icmp *icmph; > char *ptop; >! int mask, len, n, pri, logit, log_blocked, loglen, result; > char logbuf[200]; > > logit = (log_IsKept(LogTCPIP) || log_IsKept(LogDNS)) && > (!filter || filter->logok); >+ log_blocked = log_IsKept(LogBLOCKED) && filter->logok; > loglen = 0; > pri = 0; > > pip = (struct ip *)cp; > uh = NULL; > >! if ((logit || log_blocked) && loglen < sizeof logbuf) { > if (filter) > snprintf(logbuf + loglen, sizeof logbuf - loglen, "%s ", filter->name); > else >*************** >*** 589,595 **** > } > > if (filter && FilterCheck(pip, filter)) { >! if (logit) > log_Printf(LogTCPIP, "%s - BLOCKED\n", logbuf); > #ifdef notdef > if (direction == 0) >--- 590,598 ---- > } > > if (filter && FilterCheck(pip, filter)) { >! if (log_blocked) >! log_Printf(LogBLOCKED, "%s - BLOCKED\n", logbuf); >! else if (logit) > log_Printf(LogTCPIP, "%s - BLOCKED\n", logbuf); > #ifdef notdef > if (direction == 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18992
: 9240 |
9241
|
9242