Remove deprecated/unused "packet" type

This commit is contained in:
Jon Siwek 2019-06-27 16:38:32 -07:00
parent 88ffe06004
commit b635cc240b
4 changed files with 1 additions and 17 deletions

1
NEWS
View file

@ -410,6 +410,7 @@ Removed Functionality
- ``peer_id``
- ``event_peer``
- ``packet``
- The following configuration options were deprecated in version 2.6 or below and are
removed from this release:

View file

@ -644,17 +644,6 @@ type ReporterStats: record {
weirds_by_type: table[string] of count;
};
## Deprecated.
##
## .. todo:: Remove. It's still declared internally but doesn't seem used anywhere
## else.
type packet: record {
conn: connection;
is_orig: bool;
seq: count; ##< seq=k => it is the kth *packet* of the connection
timestamp: time;
};
## Table type used to map variable names to their memory allocation.
##
## .. zeek:see:: global_sizes

View file

@ -145,8 +145,6 @@ double table_expire_interval;
double table_expire_delay;
int table_incremental_step;
RecordType* packet_type;
double connection_status_update_interval;
int orig_addr_anonymization, resp_addr_anonymization;
@ -413,8 +411,6 @@ void init_net_var()
software = internal_type("software")->AsRecordType();
software_version = internal_type("software_version")->AsRecordType();
packet_type = internal_type("packet")->AsRecordType();
orig_addr_anonymization = opt_internal_int("orig_addr_anonymization");
resp_addr_anonymization = opt_internal_int("resp_addr_anonymization");
other_addr_anonymization = opt_internal_int("other_addr_anonymization");

View file

@ -148,8 +148,6 @@ extern double table_expire_interval;
extern double table_expire_delay;
extern int table_incremental_step;
extern RecordType* packet_type;
extern int orig_addr_anonymization, resp_addr_anonymization;
extern int other_addr_anonymization;
extern TableVal* preserve_orig_addr;