Beispiel #1
0
func statusError(status C.int) error {
	return errors.New(C.GoString(C.pcap_statustostr(status)))
}
Beispiel #2
0
// Statustostr returns error strings for PCAP_ERROR_ and PCAP_WARNING_ values.
func Statustostr(errnum int32) string {
	return C.GoString(C.pcap_statustostr(C.int(errnum)))
}