コード例 #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)))
}