IPPrefixes the field key with pfx as a net.IPNet array of IPv4 or IPv6 Prefixes (address and mask) to the event
(key string, pfx []net.IPNet)
| 902 | |
| 903 | // IPPrefixes the field key with pfx as a net.IPNet array of IPv4 or IPv6 Prefixes (address and mask) to the event |
| 904 | func (e *Event) IPPrefixes(key string, pfx []net.IPNet) *Event { |
| 905 | if e == nil { |
| 906 | return e |
| 907 | } |
| 908 | e.buf = enc.AppendIPPrefixes(enc.AppendKey(e.buf, key), pfx) |
| 909 | return e |
| 910 | } |
| 911 | |
| 912 | // MACAddr the field key with ha as a net.HardwareAddr MAC address to the event |
| 913 | func (e *Event) MACAddr(key string, ha net.HardwareAddr) *Event { |