示例#1
0
文件: pcap.go 项目: donckers/gopacket
func statusError(status C.int) error {
	return errors.New(C.GoString(C.pcap_statustostr(status)))
}
示例#2
0
文件: pcap.go 项目: pote/golibpcap
// 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)))
}