Intercept and parse UDPLite connections

/proc/net/udplite[6]
This commit is contained in:
Gustavo Iñiguez Goia 2019-10-29 20:01:45 +01:00
parent a0eacfb8b8
commit 845e6a704f

View file

@ -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
}
}
}