Decoder calls IPProtocolMetadata.DecodeWith's decoder.
(data []byte, p gopacket.PacketBuilder)
| 139 | |
| 140 | // Decoder calls IPProtocolMetadata.DecodeWith's decoder. |
| 141 | func (a IPProtocol) Decode(data []byte, p gopacket.PacketBuilder) error { |
| 142 | return IPProtocolMetadata[a].DecodeWith.Decode(data, p) |
| 143 | } |
| 144 | |
| 145 | // String returns IPProtocolMetadata.Name. |
| 146 | func (a IPProtocol) String() string { |