(e *event.Event)
| 38 | func (n netProcessor) Close() {} |
| 39 | |
| 40 | func (n *netProcessor) ProcessEvent(e *event.Event) (*event.Event, bool, error) { |
| 41 | if e.Category == event.Net { |
| 42 | if e.IsNetworkTCP() && !e.IsDNS() { |
| 43 | e.AppendEnum(params.NetL4Proto, uint32(network.TCP), network.ProtoNames) |
| 44 | } |
| 45 | if e.IsNetworkUDP() && !e.IsDNS() { |
| 46 | e.AppendEnum(params.NetL4Proto, uint32(network.UDP), network.ProtoNames) |
| 47 | } |
| 48 | |
| 49 | if e.IsDNS() { |
| 50 | return e, false, nil |
| 51 | } |
| 52 | |
| 53 | n.resolvePortName(e) |
| 54 | |
| 55 | return e, false, nil |
| 56 | } |
| 57 | return e, true, nil |
| 58 | } |
| 59 | |
| 60 | // resolvePortName resolves the IANA service name for the particular port and transport protocol as |
| 61 | // per https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml. |
nothing calls this directly
no test coverage detected