PcapStatus, or PcapStatus.ERROR for unknown codes.PcapStatus safePcapStatus(int code, out int rawCode)Safely converts an integer status code from libpcap into a PcapStatus.
If the value matches a known PcapStatus member it is returned directly. Otherwise a safe default (PcapStatus.ERROR) is returned and the raw value is noted in the optional rawCode output parameter.
code | The raw integer status code. |
rawCode | Receives the original value if it does not match a known status. |
PcapStatus, or PcapStatus.ERROR for unknown codes.