11// +build !libargo
22
3+ // SPDX-License-Identifier: BSD-3-Clause
34//
4- // Copyright 2020 Apertus Soutions, LLC
5- //
6- // Use of this source code is governed by a BSD-style
7- // license that can be found in the LICENSE file
5+ // Copyright 2026 Apertus Soutions, LLC
86//
97
108package argo
@@ -17,6 +15,8 @@ import (
1715 "os"
1816 "syscall"
1917 "unsafe"
18+
19+ "github.com/openxt/openxt-go/ioctl"
2020)
2121
2222const (
@@ -33,18 +33,18 @@ const (
3333)
3434
3535var (
36- argoIocSetRingSize = iow (typArgo , 1 , u32Size )
37- argoIocBind = iow (typArgo , 2 , argoRingIdSize )
38- argoIocGetSockName = iow (typArgo , 3 , argoRingIdSize )
39- argoIocGetPeerName = iow (typArgo , 4 , xenArgoAddrSize )
40- argoIocConnect = iow (typArgo , 5 , xenArgoAddrSize )
41- argoIocGetConnectErr = iow (typArgo , 6 , intSize )
42- argoIocListen = iow (typArgo , 7 , u32Size )
43- argoIocAccept = iow (typArgo , 8 , xenArgoAddrSize )
44- argoIocGetSockType = iow (typArgo , 11 , intSize )
45- argoIocViptablesAdd = iow (typArgo , 12 , vIpTablesRulePos )
46- argoIocViptablesDel = iow (typArgo , 13 , vIpTablesRulePos )
47- argoIocViptablesList = iow (typArgo , 14 , u32Size )
36+ argoIocSetRingSize = ioctl . Iow (typArgo , 1 , u32Size )
37+ argoIocBind = ioctl . Iow (typArgo , 2 , argoRingIdSize )
38+ argoIocGetSockName = ioctl . Iow (typArgo , 3 , argoRingIdSize )
39+ argoIocGetPeerName = ioctl . Iow (typArgo , 4 , xenArgoAddrSize )
40+ argoIocConnect = ioctl . Iow (typArgo , 5 , xenArgoAddrSize )
41+ argoIocGetConnectErr = ioctl . Iow (typArgo , 6 , intSize )
42+ argoIocListen = ioctl . Iow (typArgo , 7 , u32Size )
43+ argoIocAccept = ioctl . Iow (typArgo , 8 , xenArgoAddrSize )
44+ argoIocGetSockType = ioctl . Iow (typArgo , 11 , intSize )
45+ argoIocViptablesAdd = ioctl . Iow (typArgo , 12 , vIpTablesRulePos )
46+ argoIocViptablesDel = ioctl . Iow (typArgo , 13 , vIpTablesRulePos )
47+ argoIocViptablesList = ioctl . Iow (typArgo , 14 , u32Size )
4848)
4949
5050func addrFromC (r io.Reader , a * Addr ) error {
0 commit comments