Skip to content

Commit

Permalink
Merge pull request #65 from untangle/MFW-2299-DeviceDiscovery
Browse files Browse the repository at this point in the history
MFW-2300: Keep timestamps for conntrack entries in DeviceEntry
  • Loading branch information
iramasamy authored Sep 29, 2022
2 parents b877c85 + 6f47704 commit 4b535d0
Show file tree
Hide file tree
Showing 3 changed files with 288 additions and 174 deletions.
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ module github.com/untangle/golang-shared
go 1.12

require (

github.com/golang/protobuf v1.5.2
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/mitchellh/mapstructure v1.5.0
github.com/oschwald/geoip2-golang v1.8.0
github.com/pebbe/zmq4 v1.2.9
github.com/r3labs/diff/v2 v2.15.1
Expand Down
15 changes: 12 additions & 3 deletions protobuffersrc/Discovery.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ message DiscoveryEntry {
LLDP lldp = 10;
ARP arp = 11;
NMAP nmap = 12;
repeated Connection connections = 13;
Connections connections = 13;
}

message LLDP {
Expand All @@ -49,6 +49,7 @@ message LLDP {
string inventoryAssetTag = 9;
string inventoryModel = 10;
string inventoryVendor = 11;
int64 LastUpdate = 12;
}

message LLDPCapabilities {
Expand All @@ -59,6 +60,7 @@ message LLDPCapabilities {
message ARP {
string ip = 1;
string mac = 2;
int64 LastUpdate = 3;
}

message NMAP {
Expand All @@ -68,6 +70,7 @@ message NMAP {
string lastBoot = 4;
string os = 5;
repeated NMAPPorts openPorts = 6;
int64 LastUpdate = 7;
}

message NMAPPorts {
Expand All @@ -76,12 +79,18 @@ message NMAPPorts {
string state = 3;
}

message Connections {
repeated Connection connections = 1;
int64 LastUpdate = 2;
}

message Connection {
Independent independent = 1;
Reply reply = 2;
Original original = 3;
Original original = 3;
}


message Independent {
int32 timeout = 1;
int64 mark = 2;
Expand Down Expand Up @@ -111,4 +120,4 @@ message LayerFour {
string protoname = 2;
int32 sPort = 3;
int32 dPort = 4;
}
}
Loading

0 comments on commit 4b535d0

Please sign in to comment.