Hello,
Here is the part of code where I attempt to listen for icmp packet in a
namespace. The same code is used for IPv4 and IPv6, only proto and scr are
differ depending on ipv4 or ipv6 mode.
For IPv4 address code work as expected but for IPv6 ListenPacket fails.
org, err := ne
Hi Jake,
Ioctl implementation in unix package seems a bit limited, how do you pass for
example a required struct if “func IoctlSetInt(fd int, req uint, value int)”
allows only to accept int?? If this package had a func accepting uintptr as a
parameter, then I guess that could work.
Thank you
S
I copied the whole thing to https://github.com/sbezverk/vfio
Running it without actual vfio/iommu might be problematic though.
Before this specific ioctl can be run 2 open calls must succeed. See func main.
Thank you for looking into this problem
Serguei
Sent from my iPhone
> On Aug 23, 2018,
Hello Jake,
Apologies about formatting, here is correctly formatted code:
// GetGroupFD gets File descriptor for a specified by PCI address device
func GetGroupFD(group int, pciDevice string) (int, error) {
buffer := make([]byte, len(pciDevice)+1)
for i, c := range
Hi Max,
Thanks for the suggestion, unfortunately it did not help, see below:
func GetGroupFD(group int, pciDevice *string) (int, error) {
fmt.Printf("VFIO_GROUP_GET_DEVICE_FD() returned: %04x\n",
VFIO_GROUP_GET_DEVICE_FD())
buffer := make([]byte, len(*pciDevice)+1)
for i, c := range
I changed code a little bit to be able to examine variables:
func GetGroupFD(group int, pciDevice *string) (int, error) {
ioctlId := 0x3b6a
var buffer uintptr
buffer = uintptr(unsafe.Pointer(pciDevice))
device, _, errno := syscall.Syscall(
syscall.SYS_IOCTL,
uintpt
Hello,
I am converting some C code to Go and hit an issue with one particular Syscall:
In C:
device = ioctl(group, 0x3b6a, path);
where path is char[N]
In Go:
ioctlId := 0x3b6a
device, _, errno := syscall.Syscall(
syscall.SYS_IOCTL,
uintptr(group),
Hello,
Appreciate if somebody could recommend reliable dns client library supporting
AXFR type of requests.
I was using miekg/dns and I see some strange results.
Thank you
Serguei
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe
Hello,
I was wondering if anybody managed to get golang compiled binary to run on
32-bit QNX?
I compiled it with GOARCH=386 GOOS=linux go build -o blah
But when I start it in QNX I get core dump. I double check and the time of
executable matches type of native qnx binaries. Appreciate any su
Hello,
I am having trouble getting GID for a folder. I checked os.Stat api but it
returns only permissions, there is no Uid or Gid.
stat /mnt/disks/vol2
File: ‘/mnt/disks/vol2’
Size: 6 Blocks: 0 IO Block: 4096 directory
Device: fc12h/64530dInode: 64 Lin
10 matches
Mail list logo