Issue: #62 - Treat unlisted traffic as 'unknown UDP/TCP'
This commit is contained in:
@@ -374,8 +374,15 @@ Process *getProcess(Connection *connection, const char *devicename,
|
|||||||
}
|
}
|
||||||
|
|
||||||
Process *proc = NULL;
|
Process *proc = NULL;
|
||||||
if (inode != 0)
|
if (inode != 0) {
|
||||||
proc = getProcess(inode, devicename);
|
proc = getProcess(inode, devicename);
|
||||||
|
} else {
|
||||||
|
if (packettype == IPPROTO_TCP) {
|
||||||
|
proc = unknowntcp;
|
||||||
|
} else {
|
||||||
|
proc = unknownudp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (proc == NULL) {
|
if (proc == NULL) {
|
||||||
proc = new Process(inode, "", connection->refpacket->gethashstring());
|
proc = new Process(inode, "", connection->refpacket->gethashstring());
|
||||||
|
|||||||
Reference in New Issue
Block a user