mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Use new_connection instead of connection_state_remove
This commit is contained in:
parent
623fea9014
commit
5a3d16e16f
1 changed files with 4 additions and 2 deletions
|
@ -160,8 +160,10 @@ global protocol_names: table[count] of string = {
|
|||
[145] = "nsh"
|
||||
};
|
||||
|
||||
event connection_state_remove(c: connection) {
|
||||
if ( c$conn$ip_proto in protocol_names ) {
|
||||
event new_connection(c: connection) &priority=5 {
|
||||
# In case we're the first access
|
||||
Conn::set_conn(c, F);
|
||||
if ( c$conn?$ip_proto && c$conn$ip_proto in protocol_names ) {
|
||||
c$conn$ip_proto_name = protocol_names[c$conn$ip_proto];
|
||||
} else {
|
||||
c$conn$ip_proto_name = "unknown";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue