mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
Intercept and parse UDPLite connections
/proc/net/udplite[6]
This commit is contained in:
parent
a0eacfb8b8
commit
845e6a704f
1 changed files with 7 additions and 0 deletions
|
@ -129,6 +129,13 @@ func (c *Connection) parseDirection() bool {
|
|||
c.SrcPort = uint(udp.SrcPort)
|
||||
ret = true
|
||||
}
|
||||
} else if layer.LayerType() == layers.LayerTypeUDPLite {
|
||||
if udplite, ok := layer.(*layers.UDPLite); ok == true && udplite != nil {
|
||||
c.Protocol = "udplite"
|
||||
c.DstPort = uint(udplite.DstPort)
|
||||
c.SrcPort = uint(udplite.SrcPort)
|
||||
ret = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue