Add the TCP flags to the log message whenever log_in_vain is 1, not
just when set to 2. PR: kern/43348 MFC after: 5 days
This commit is contained in:
parent
0aa1a2dc66
commit
38d195389f
@ -605,17 +605,12 @@ findpcb:
|
||||
}
|
||||
switch (log_in_vain) {
|
||||
case 1:
|
||||
if (thflags & TH_SYN)
|
||||
log(LOG_INFO,
|
||||
"Connection attempt to TCP %s:%d "
|
||||
"from %s:%d\n",
|
||||
dbuf, ntohs(th->th_dport), sbuf,
|
||||
ntohs(th->th_sport));
|
||||
break;
|
||||
if ((thflags & TH_SYN) == 0)
|
||||
break;
|
||||
case 2:
|
||||
log(LOG_INFO,
|
||||
"Connection attempt to TCP %s:%d "
|
||||
"from %s:%d flags:0x%x\n",
|
||||
"from %s:%d flags:0x%02x\n",
|
||||
dbuf, ntohs(th->th_dport), sbuf,
|
||||
ntohs(th->th_sport), thflags);
|
||||
break;
|
||||
|
@ -605,17 +605,12 @@ findpcb:
|
||||
}
|
||||
switch (log_in_vain) {
|
||||
case 1:
|
||||
if (thflags & TH_SYN)
|
||||
log(LOG_INFO,
|
||||
"Connection attempt to TCP %s:%d "
|
||||
"from %s:%d\n",
|
||||
dbuf, ntohs(th->th_dport), sbuf,
|
||||
ntohs(th->th_sport));
|
||||
break;
|
||||
if ((thflags & TH_SYN) == 0)
|
||||
break;
|
||||
case 2:
|
||||
log(LOG_INFO,
|
||||
"Connection attempt to TCP %s:%d "
|
||||
"from %s:%d flags:0x%x\n",
|
||||
"from %s:%d flags:0x%02x\n",
|
||||
dbuf, ntohs(th->th_dport), sbuf,
|
||||
ntohs(th->th_sport), thflags);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user