Proto returns p's network protocol.
()
| 89 | |
| 90 | // Proto returns p's network protocol. |
| 91 | func (p Port) Proto() IPProtocol { |
| 92 | if p.proto == protoZero { |
| 93 | return "" |
| 94 | } |
| 95 | return p.proto.Value() |
| 96 | } |
| 97 | |
| 98 | // IsZero reports whether p is the zero value. |
| 99 | func (p Port) IsZero() bool { |