repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/xfrm_monitor_linux.go | vendor/github.com/vishvananda/netlink/xfrm_monitor_linux.go | package netlink
import (
"fmt"
"github.com/vishvananda/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
type XfrmMsg interface {
Type() nl.XfrmMsgType
}
type XfrmMsgExpire struct {
XfrmState *XfrmState
Hard bool
}
func (ue *XfrmMsgExpire) Type() nl.XfrmMsgType {
return nl.XFRM_MSG_... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/xfrm_policy.go | vendor/github.com/vishvananda/netlink/xfrm_policy.go | package netlink
import (
"fmt"
"net"
)
// Dir is an enum representing an ipsec template direction.
type Dir uint8
const (
XFRM_DIR_IN Dir = iota
XFRM_DIR_OUT
XFRM_DIR_FWD
XFRM_SOCKET_IN
XFRM_SOCKET_OUT
XFRM_SOCKET_FWD
)
func (d Dir) String() string {
switch d {
case XFRM_DIR_IN:
return "dir in"
case XF... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/neigh.go | vendor/github.com/vishvananda/netlink/neigh.go | package netlink
import (
"fmt"
"net"
)
// Neigh represents a link layer neighbor from netlink.
type Neigh struct {
LinkIndex int
Family int
State int
Type int
Flags int
IP net.IP
HardwareAddr net.HardwareAddr
LLIPAddr net.IP //Used in the case of NHRP
Vlan ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/bridge_linux.go | vendor/github.com/vishvananda/netlink/bridge_linux.go | package netlink
import (
"fmt"
"github.com/vishvananda/netlink/nl"
"golang.org/x/sys/unix"
)
// BridgeVlanList gets a map of device id to bridge vlan infos.
// Equivalent to: `bridge vlan show`
func BridgeVlanList() (map[int32][]*nl.BridgeVlanInfo, error) {
return pkgHandle.BridgeVlanList()
}
// BridgeVlanList ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/rdma_link_linux.go | vendor/github.com/vishvananda/netlink/rdma_link_linux.go | package netlink
import (
"bytes"
"encoding/binary"
"fmt"
"net"
"github.com/vishvananda/netlink/nl"
"golang.org/x/sys/unix"
)
// LinkAttrs represents data shared by most link types
type RdmaLinkAttrs struct {
Index uint32
Name string
FirmwareVersion string
NodeGuid string
SysIma... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/netns_unspecified.go | vendor/github.com/vishvananda/netlink/netns_unspecified.go | // +build !linux
package netlink
func GetNetNsIdByPid(pid int) (int, error) {
return 0, ErrNotImplemented
}
func SetNetNsIdByPid(pid, nsid int) error {
return ErrNotImplemented
}
func GetNetNsIdByFd(fd int) (int, error) {
return 0, ErrNotImplemented
}
func SetNetNsIdByFd(fd, nsid int) error {
return ErrNotImpl... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/bpf_linux.go | vendor/github.com/vishvananda/netlink/bpf_linux.go | package netlink
import (
"unsafe"
"golang.org/x/sys/unix"
)
type BpfProgType uint32
const (
BPF_PROG_TYPE_UNSPEC BpfProgType = iota
BPF_PROG_TYPE_SOCKET_FILTER
BPF_PROG_TYPE_KPROBE
BPF_PROG_TYPE_SCHED_CLS
BPF_PROG_TYPE_SCHED_ACT
BPF_PROG_TYPE_TRACEPOINT
BPF_PROG_TYPE_XDP
)
type BPFAttr struct {
ProgType ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/netns_linux.go | vendor/github.com/vishvananda/netlink/netns_linux.go | package netlink
// Network namespace ID functions
//
// The kernel has a weird concept called the network namespace ID.
// This is different from the file reference in proc (and any bind-mounted
// namespaces, etc.)
//
// Instead, namespaces can be assigned a numeric ID at any time. Once set,
// the ID is fixed. The I... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/netlink_linux.go | vendor/github.com/vishvananda/netlink/netlink_linux.go | package netlink
import "github.com/vishvananda/netlink/nl"
// Family type definitions
const (
FAMILY_ALL = nl.FAMILY_ALL
FAMILY_V4 = nl.FAMILY_V4
FAMILY_V6 = nl.FAMILY_V6
FAMILY_MPLS = nl.FAMILY_MPLS
)
| go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/rule.go | vendor/github.com/vishvananda/netlink/rule.go | package netlink
import (
"fmt"
"net"
)
// Rule represents a netlink rule.
type Rule struct {
Priority int
Family int
Table int
Mark int
Mask int
TunID uint
Goto int
Src *net.IPNet
Dst *net.IPNet
... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/socket.go | vendor/github.com/vishvananda/netlink/socket.go | package netlink
import "net"
// SocketID identifies a single socket.
type SocketID struct {
SourcePort uint16
DestinationPort uint16
Source net.IP
Destination net.IP
Interface uint32
Cookie [2]uint32
}
// Socket represents a netlink socket.
type Socket struct {
Family uint8
... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/ioctl_linux.go | vendor/github.com/vishvananda/netlink/ioctl_linux.go | package netlink
import (
"syscall"
"unsafe"
"golang.org/x/sys/unix"
)
// ioctl for statistics.
const (
// ETHTOOL_GSSET_INFO gets string set info
ETHTOOL_GSSET_INFO = 0x00000037
// SIOCETHTOOL is Ethtool interface
SIOCETHTOOL = 0x8946
// ETHTOOL_GSTRINGS gets specified string set
ETHTOOL_GSTRINGS = 0x000000... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/route.go | vendor/github.com/vishvananda/netlink/route.go | package netlink
import (
"fmt"
"net"
"strings"
)
// Scope is an enum representing a route scope.
type Scope uint8
type NextHopFlag int
type Destination interface {
Family() int
Decode([]byte) error
Encode() ([]byte, error)
String() string
Equal(Destination) bool
}
type Encap interface {
Type() int
Decode... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/xfrm_policy_linux.go | vendor/github.com/vishvananda/netlink/xfrm_policy_linux.go | package netlink
import (
"github.com/vishvananda/netlink/nl"
"golang.org/x/sys/unix"
)
func selFromPolicy(sel *nl.XfrmSelector, policy *XfrmPolicy) {
sel.Family = uint16(nl.FAMILY_V4)
if policy.Dst != nil {
sel.Family = uint16(nl.GetIPFamily(policy.Dst.IP))
sel.Daddr.FromIP(policy.Dst.IP)
prefixlenD, _ := p... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/xfrm.go | vendor/github.com/vishvananda/netlink/xfrm.go | package netlink
import (
"fmt"
"golang.org/x/sys/unix"
)
// Proto is an enum representing an ipsec protocol.
type Proto uint8
const (
XFRM_PROTO_ROUTE2 Proto = unix.IPPROTO_ROUTING
XFRM_PROTO_ESP Proto = unix.IPPROTO_ESP
XFRM_PROTO_AH Proto = unix.IPPROTO_AH
XFRM_PROTO_HAO Proto = unix.I... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/netlink.go | vendor/github.com/vishvananda/netlink/netlink.go | // Package netlink provides a simple library for netlink. Netlink is
// the interface a user-space program in linux uses to communicate with
// the kernel. It can be used to add and remove interfaces, set up ip
// addresses and routes, and confiugre ipsec. Netlink communication
// requires elevated privileges, so in mo... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/devlink_linux.go | vendor/github.com/vishvananda/netlink/nl/devlink_linux.go | package nl
// All the following constants are coming from:
// https://github.com/torvalds/linux/blob/master/include/uapi/linux/devlink.h
const (
GENL_DEVLINK_VERSION = 1
GENL_DEVLINK_NAME = "devlink"
)
const (
DEVLINK_CMD_GET = 1
DEVLINK_CMD_ESWITCH_GET = 29
DEVLINK_CMD_ESWITCH_SET = 30
)
const (
D... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/addr_linux.go | vendor/github.com/vishvananda/netlink/nl/addr_linux.go | package nl
import (
"unsafe"
"golang.org/x/sys/unix"
)
type IfAddrmsg struct {
unix.IfAddrmsg
}
func NewIfAddrmsg(family int) *IfAddrmsg {
return &IfAddrmsg{
IfAddrmsg: unix.IfAddrmsg{
Family: uint8(family),
},
}
}
// struct ifaddrmsg {
// __u8 ifa_family;
// __u8 ifa_prefixlen; /* The prefi... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/conntrack_linux.go | vendor/github.com/vishvananda/netlink/nl/conntrack_linux.go | package nl
import "unsafe"
// Track the message sizes for the correct serialization/deserialization
const (
SizeofNfgenmsg = 4
SizeofNfattr = 4
SizeofNfConntrack = 376
SizeofNfctTupleHead = 52
)
var L4ProtoMap = map[uint8]string{
6: "tcp",
17: "udp",
}
// All the following constants are coming ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/mpls_linux.go | vendor/github.com/vishvananda/netlink/nl/mpls_linux.go | package nl
import "encoding/binary"
const (
MPLS_LS_LABEL_SHIFT = 12
MPLS_LS_S_SHIFT = 8
)
func EncodeMPLSStack(labels ...int) []byte {
b := make([]byte, 4*len(labels))
for idx, label := range labels {
l := label << MPLS_LS_LABEL_SHIFT
if idx == len(labels)-1 {
l |= 1 << MPLS_LS_S_SHIFT
}
binary.B... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/link_linux.go | vendor/github.com/vishvananda/netlink/nl/link_linux.go | package nl
import (
"unsafe"
)
const (
DEFAULT_CHANGE = 0xFFFFFFFF
)
const (
IFLA_INFO_UNSPEC = iota
IFLA_INFO_KIND
IFLA_INFO_DATA
IFLA_INFO_XSTATS
IFLA_INFO_SLAVE_KIND
IFLA_INFO_SLAVE_DATA
IFLA_INFO_MAX = IFLA_INFO_SLAVE_DATA
)
const (
IFLA_VLAN_UNSPEC = iota
IFLA_VLAN_ID
IFLA_VLAN_FLAGS
IFLA_VLAN_EGR... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/seg6_linux.go | vendor/github.com/vishvananda/netlink/nl/seg6_linux.go | package nl
import (
"errors"
"fmt"
"net"
)
type IPv6SrHdr struct {
nextHdr uint8
hdrLen uint8
routingType uint8
segmentsLeft uint8
firstSegment uint8
flags uint8
reserved uint16
Segments []net.IP
}
func (s1 *IPv6SrHdr) Equal(s2 IPv6SrHdr) bool {
if len(s1.Segments) != len(s2.Segme... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/genetlink_linux.go | vendor/github.com/vishvananda/netlink/nl/genetlink_linux.go | package nl
import (
"unsafe"
)
const SizeofGenlmsg = 4
const (
GENL_ID_CTRL = 0x10
GENL_CTRL_VERSION = 2
GENL_CTRL_NAME = "nlctrl"
)
const (
GENL_CTRL_CMD_GETFAMILY = 3
)
const (
GENL_CTRL_ATTR_UNSPEC = iota
GENL_CTRL_ATTR_FAMILY_ID
GENL_CTRL_ATTR_FAMILY_NAME
GENL_CTRL_ATTR_VERSION
GENL_CTRL_ATTR... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/nl_linux.go | vendor/github.com/vishvananda/netlink/nl/nl_linux.go | // Package nl has low level primitives for making Netlink calls.
package nl
import (
"bytes"
"encoding/binary"
"fmt"
"net"
"runtime"
"sync"
"sync/atomic"
"syscall"
"unsafe"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
const (
// Family type definitions
FAMILY_ALL = unix.AF_UNSPEC
FAMILY_V4... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/route_linux.go | vendor/github.com/vishvananda/netlink/nl/route_linux.go | package nl
import (
"unsafe"
"golang.org/x/sys/unix"
)
type RtMsg struct {
unix.RtMsg
}
func NewRtMsg() *RtMsg {
return &RtMsg{
RtMsg: unix.RtMsg{
Table: unix.RT_TABLE_MAIN,
Scope: unix.RT_SCOPE_UNIVERSE,
Protocol: unix.RTPROT_BOOT,
Type: unix.RTN_UNICAST,
},
}
}
func NewRtDelMsg() *... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/xfrm_state_linux.go | vendor/github.com/vishvananda/netlink/nl/xfrm_state_linux.go | package nl
import (
"unsafe"
)
const (
SizeofXfrmUsersaId = 0x18
SizeofXfrmStats = 0x0c
SizeofXfrmUsersaInfo = 0xe0
SizeofXfrmUserSpiInfo = 0xe8
SizeofXfrmAlgo = 0x44
SizeofXfrmAlgoAuth = 0x48
SizeofXfrmAlgoAEAD = 0x48
SizeofXfrmEncapTmpl = 0x18
SizeofXfrmUse... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/xfrm_monitor_linux.go | vendor/github.com/vishvananda/netlink/nl/xfrm_monitor_linux.go | package nl
import (
"unsafe"
)
const (
SizeofXfrmUserExpire = 0xe8
)
// struct xfrm_user_expire {
// struct xfrm_usersa_info state;
// __u8 hard;
// };
type XfrmUserExpire struct {
XfrmUsersaInfo XfrmUsersaInfo
Hard uint8
Pad [7]byte
}
func (msg *XfrmUserExpire) Len() int {
return ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/xfrm_linux.go | vendor/github.com/vishvananda/netlink/nl/xfrm_linux.go | package nl
import (
"bytes"
"net"
"unsafe"
)
// Infinity for packet and byte counts
const (
XFRM_INF = ^uint64(0)
)
type XfrmMsgType uint8
type XfrmMsg interface {
Type() XfrmMsgType
}
// Message Types
const (
XFRM_MSG_BASE XfrmMsgType = 0x10
XFRM_MSG_NEWSA = 0x10
XFRM_MSG_DELSA ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/syscall.go | vendor/github.com/vishvananda/netlink/nl/syscall.go | package nl
// syscall package lack of rule atributes type.
// Thus there are defined below
const (
FRA_UNSPEC = iota
FRA_DST /* destination address */
FRA_SRC /* source address */
FRA_IIFNAME /* interface name */
FRA_GOTO /* target to jump to (FR_ACT_GOTO) */
FRA_UNUSED2
FRA_PRIORITY /* priority/pre... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/nl_unspecified.go | vendor/github.com/vishvananda/netlink/nl/nl_unspecified.go | // +build !linux
package nl
import "encoding/binary"
var SupportedNlFamilies = []int{}
func NativeEndian() binary.ByteOrder {
return nil
}
| go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/bridge_linux.go | vendor/github.com/vishvananda/netlink/nl/bridge_linux.go | package nl
import (
"fmt"
"unsafe"
)
const (
SizeofBridgeVlanInfo = 0x04
)
/* Bridge Flags */
const (
BRIDGE_FLAGS_MASTER = iota + 1 /* Bridge command to/from master */
BRIDGE_FLAGS_SELF /* Bridge command to/from lowerdev */
)
/* Bridge management nested attributes
* [IFLA_AF_SPEC] = {
* [IF... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/tc_linux.go | vendor/github.com/vishvananda/netlink/nl/tc_linux.go | package nl
import (
"encoding/binary"
"unsafe"
)
// LinkLayer
const (
LINKLAYER_UNSPEC = iota
LINKLAYER_ETHERNET
LINKLAYER_ATM
)
// ATM
const (
ATM_CELL_PAYLOAD = 48
ATM_CELL_SIZE = 53
)
const TC_LINKLAYER_MASK = 0x0F
// Police
const (
TCA_POLICE_UNSPEC = iota
TCA_POLICE_TBF
TCA_POLICE_RATE
TCA_POLIC... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/rdma_link_linux.go | vendor/github.com/vishvananda/netlink/nl/rdma_link_linux.go | package nl
const (
RDMA_NL_GET_CLIENT_SHIFT = 10
)
const (
RDMA_NL_NLDEV = 5
)
const (
RDMA_NLDEV_CMD_GET = 1
RDMA_NLDEV_CMD_SET = 2
RDMA_NLDEV_CMD_SYS_GET = 6
RDMA_NLDEV_CMD_SYS_SET = 7
)
const (
RDMA_NLDEV_ATTR_DEV_INDEX = 1
RDMA_NLDEV_ATTR_DEV_NAME = 2
RDMA_NLDEV_ATTR_PORT_INDEX ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/seg6local_linux.go | vendor/github.com/vishvananda/netlink/nl/seg6local_linux.go | package nl
import ()
// seg6local parameters
const (
SEG6_LOCAL_UNSPEC = iota
SEG6_LOCAL_ACTION
SEG6_LOCAL_SRH
SEG6_LOCAL_TABLE
SEG6_LOCAL_NH4
SEG6_LOCAL_NH6
SEG6_LOCAL_IIF
SEG6_LOCAL_OIF
__SEG6_LOCAL_MAX
)
const (
SEG6_LOCAL_MAX = __SEG6_LOCAL_MAX
)
// seg6local actions
const (
SEG6_LOCAL_ACTION_END ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netlink/nl/xfrm_policy_linux.go | vendor/github.com/vishvananda/netlink/nl/xfrm_policy_linux.go | package nl
import (
"unsafe"
)
const (
SizeofXfrmUserpolicyId = 0x40
SizeofXfrmUserpolicyInfo = 0xa8
SizeofXfrmUserTmpl = 0x40
)
// struct xfrm_userpolicy_id {
// struct xfrm_selector sel;
// __u32 index;
// __u8 dir;
// };
//
type XfrmUserpolicyId struct {
Sel XfrmSelector
Ind... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netns/netns.go | vendor/github.com/vishvananda/netns/netns.go | // Package netns allows ultra-simple network namespace handling. NsHandles
// can be retrieved and set. Note that the current namespace is thread
// local so actions that set and reset namespaces should use LockOSThread
// to make sure the namespace doesn't change due to a goroutine switch.
// It is best to close NsHan... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netns/netns_unspecified.go | vendor/github.com/vishvananda/netns/netns_unspecified.go | // +build !linux
package netns
import (
"errors"
)
var (
ErrNotImplemented = errors.New("not implemented")
)
func Set(ns NsHandle) (err error) {
return ErrNotImplemented
}
func New() (ns NsHandle, err error) {
return -1, ErrNotImplemented
}
func Get() (NsHandle, error) {
return -1, ErrNotImplemented
}
func ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/vishvananda/netns/netns_linux.go | vendor/github.com/vishvananda/netns/netns_linux.go | // +build linux,go1.10
package netns
import (
"fmt"
"io/ioutil"
"os"
"path"
"path/filepath"
"strconv"
"strings"
"syscall"
"golang.org/x/sys/unix"
)
// Deprecated: use syscall pkg instead (go >= 1.5 needed).
const (
CLONE_NEWUTS = 0x04000000 /* New utsname group? */
CLONE_NEWIPC = 0x08000000 /* New ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/google/btree/btree.go | vendor/github.com/google/btree/btree.go | // Copyright 2014 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/types_string.go | vendor/github.com/cilium/ebpf/types_string.go | // Code generated by "stringer -output types_string.go -type=MapType,ProgramType,AttachType,PinType"; DO NOT EDIT.
package ebpf
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]st... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/elf_reader_fuzz.go | vendor/github.com/cilium/ebpf/elf_reader_fuzz.go | // +build gofuzz
// Use with https://github.com/dvyukov/go-fuzz
package ebpf
import "bytes"
func FuzzLoadCollectionSpec(data []byte) int {
spec, err := LoadCollectionSpecFromReader(bytes.NewReader(data))
if err != nil {
if spec != nil {
panic("spec is not nil")
}
return 0
}
if spec == nil {
panic("sp... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/types.go | vendor/github.com/cilium/ebpf/types.go | package ebpf
import (
"github.com/cilium/ebpf/internal/unix"
)
//go:generate stringer -output types_string.go -type=MapType,ProgramType,AttachType,PinType
// MapType indicates the type map structure
// that will be initialized in the kernel.
type MapType uint32
// All the various map types that can be created
cons... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/elf_reader.go | vendor/github.com/cilium/ebpf/elf_reader.go | package ebpf
import (
"bufio"
"bytes"
"debug/elf"
"encoding/binary"
"errors"
"fmt"
"io"
"math"
"os"
"strings"
"github.com/cilium/ebpf/asm"
"github.com/cilium/ebpf/internal"
"github.com/cilium/ebpf/internal/btf"
"github.com/cilium/ebpf/internal/unix"
)
// elfCode is a convenience to reduce the amount of... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/map.go | vendor/github.com/cilium/ebpf/map.go | package ebpf
import (
"errors"
"fmt"
"io"
"path/filepath"
"reflect"
"strings"
"github.com/cilium/ebpf/internal"
"github.com/cilium/ebpf/internal/btf"
"github.com/cilium/ebpf/internal/unix"
)
// Errors returned by Map and MapIterator methods.
var (
ErrKeyNotExist = errors.New("key does not exist")
Err... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/collection.go | vendor/github.com/cilium/ebpf/collection.go | package ebpf
import (
"errors"
"fmt"
"io"
"math"
"reflect"
"strings"
"github.com/cilium/ebpf/asm"
"github.com/cilium/ebpf/internal"
"github.com/cilium/ebpf/internal/btf"
)
// CollectionOptions control loading a collection into the kernel.
//
// Maps and Programs are passed to NewMapWithOptions and NewProgra... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/syscalls.go | vendor/github.com/cilium/ebpf/syscalls.go | package ebpf
import (
"errors"
"fmt"
"unsafe"
"github.com/cilium/ebpf/internal"
"github.com/cilium/ebpf/internal/btf"
"github.com/cilium/ebpf/internal/unix"
)
// Generic errors returned by BPF syscalls.
var ErrNotExist = errors.New("requested object does not exist")
// bpfObjName is a null-terminated string m... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/marshalers.go | vendor/github.com/cilium/ebpf/marshalers.go | package ebpf
import (
"bytes"
"encoding"
"encoding/binary"
"errors"
"fmt"
"reflect"
"runtime"
"unsafe"
"github.com/cilium/ebpf/internal"
)
// marshalPtr converts an arbitrary value into a pointer suitable
// to be passed to the kernel.
//
// As an optimization, it returns the original value if it is an
// u... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/prog.go | vendor/github.com/cilium/ebpf/prog.go | package ebpf
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"io"
"math"
"path/filepath"
"strings"
"time"
"github.com/cilium/ebpf/asm"
"github.com/cilium/ebpf/internal"
"github.com/cilium/ebpf/internal/btf"
"github.com/cilium/ebpf/internal/unix"
)
// ErrNotSupported is returned whenever the kernel doe... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/doc.go | vendor/github.com/cilium/ebpf/doc.go | // Package ebpf is a toolkit for working with eBPF programs.
//
// eBPF programs are small snippets of code which are executed directly
// in a VM in the Linux kernel, which makes them very fast and flexible.
// Many Linux subsystems now accept eBPF programs. This makes it possible
// to implement highly application sp... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/info.go | vendor/github.com/cilium/ebpf/info.go | package ebpf
import (
"bufio"
"encoding/hex"
"errors"
"fmt"
"io"
"os"
"strings"
"syscall"
"time"
"github.com/cilium/ebpf/internal"
)
// MapInfo describes a map.
type MapInfo struct {
Type MapType
id MapID
KeySize uint32
ValueSize uint32
MaxEntries uint32
Flags uint32
// Name a... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/linker.go | vendor/github.com/cilium/ebpf/linker.go | package ebpf
import (
"fmt"
"github.com/cilium/ebpf/asm"
"github.com/cilium/ebpf/internal/btf"
)
// link resolves bpf-to-bpf calls.
//
// Each library may contain multiple functions / labels, and is only linked
// if prog references one of these functions.
//
// Libraries also linked.
func link(prog *ProgramSpec,... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/alu_string.go | vendor/github.com/cilium/ebpf/asm/alu_string.go | // Code generated by "stringer -output alu_string.go -type=Source,Endianness,ALUOp"; DO NOT EDIT.
package asm
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Inva... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/opcode_string.go | vendor/github.com/cilium/ebpf/asm/opcode_string.go | // Code generated by "stringer -output opcode_string.go -type=Class"; DO NOT EDIT.
package asm
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[LdClass-0]
_ = x[L... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/func_string.go | vendor/github.com/cilium/ebpf/asm/func_string.go | // Code generated by "stringer -output func_string.go -type=BuiltinFunc"; DO NOT EDIT.
package asm
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[FnUnspec-0]
_ ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/register.go | vendor/github.com/cilium/ebpf/asm/register.go | package asm
import (
"fmt"
)
// Register is the source or destination of most operations.
type Register uint8
// R0 contains return values.
const R0 Register = 0
// Registers for function arguments.
const (
R1 Register = R0 + 1 + iota
R2
R3
R4
R5
)
// Callee saved registers preserved by function calls.
const... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/instruction.go | vendor/github.com/cilium/ebpf/asm/instruction.go | package asm
import (
"crypto/sha1"
"encoding/binary"
"encoding/hex"
"errors"
"fmt"
"io"
"math"
"strings"
"github.com/cilium/ebpf/internal/unix"
)
// InstructionSize is the size of a BPF instruction in bytes
const InstructionSize = 8
// RawInstructionOffset is an offset in units of raw BPF instructions.
typ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/alu.go | vendor/github.com/cilium/ebpf/asm/alu.go | package asm
//go:generate stringer -output alu_string.go -type=Source,Endianness,ALUOp
// Source of ALU / ALU64 / Branch operations
//
// msb lsb
// +----+-+---+
// |op |S|cls|
// +----+-+---+
type Source uint8
const sourceMask OpCode = 0x08
// Source bitmask
const (
// InvalidSource is returned ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/jump.go | vendor/github.com/cilium/ebpf/asm/jump.go | package asm
//go:generate stringer -output jump_string.go -type=JumpOp
// JumpOp affect control flow.
//
// msb lsb
// +----+-+---+
// |OP |s|cls|
// +----+-+---+
type JumpOp uint8
const jumpMask OpCode = aluMask
const (
// InvalidJumpOp is returned by getters when invoked
// on non branch OpCod... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/opcode.go | vendor/github.com/cilium/ebpf/asm/opcode.go | package asm
import (
"fmt"
"strings"
)
//go:generate stringer -output opcode_string.go -type=Class
type encoding int
const (
unknownEncoding encoding = iota
loadOrStore
jumpOrALU
)
// Class of operations
//
// msb lsb
// +---+--+---+
// | ?? |CLS|
// +---+--+---+
type Class uint8
const cla... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/load_store.go | vendor/github.com/cilium/ebpf/asm/load_store.go | package asm
//go:generate stringer -output load_store_string.go -type=Mode,Size
// Mode for load and store operations
//
// msb lsb
// +---+--+---+
// |MDE|sz|cls|
// +---+--+---+
type Mode uint8
const modeMask OpCode = 0xe0
const (
// InvalidMode is returned by getters when invoked
// on non loa... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/jump_string.go | vendor/github.com/cilium/ebpf/asm/jump_string.go | // Code generated by "stringer -output jump_string.go -type=JumpOp"; DO NOT EDIT.
package asm
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[InvalidJumpOp-255]
... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/func.go | vendor/github.com/cilium/ebpf/asm/func.go | package asm
//go:generate stringer -output func_string.go -type=BuiltinFunc
// BuiltinFunc is a built-in eBPF function.
type BuiltinFunc int32
// eBPF built-in functions
//
// You can regenerate this list using the following gawk script:
//
// /FN\(.+\),/ {
// match($1, /\((.+)\)/, r)
// split(r[1], p, ... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/doc.go | vendor/github.com/cilium/ebpf/asm/doc.go | // Package asm is an assembler for eBPF bytecode.
package asm
| go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/asm/load_store_string.go | vendor/github.com/cilium/ebpf/asm/load_store_string.go | // Code generated by "stringer -output load_store_string.go -type=Mode,Size"; DO NOT EDIT.
package asm
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[InvalidMode... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/endian.go | vendor/github.com/cilium/ebpf/internal/endian.go | package internal
import (
"encoding/binary"
"unsafe"
)
// NativeEndian is set to either binary.BigEndian or binary.LittleEndian,
// depending on the host's endianness.
var NativeEndian binary.ByteOrder
// Clang is set to either "el" or "eb" depending on the host's endianness.
var ClangEndian string
func init() {
... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/ptr.go | vendor/github.com/cilium/ebpf/internal/ptr.go | package internal
import (
"unsafe"
"github.com/cilium/ebpf/internal/unix"
)
// NewPointer creates a 64-bit pointer from an unsafe Pointer.
func NewPointer(ptr unsafe.Pointer) Pointer {
return Pointer{ptr: ptr}
}
// NewSlicePointer creates a 64-bit pointer from a byte slice.
func NewSlicePointer(buf []byte) Point... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/fd.go | vendor/github.com/cilium/ebpf/internal/fd.go | package internal
import (
"errors"
"fmt"
"os"
"runtime"
"strconv"
"github.com/cilium/ebpf/internal/unix"
)
var ErrClosedFd = errors.New("use of closed file descriptor")
type FD struct {
raw int64
}
func NewFD(value uint32) *FD {
fd := &FD{int64(value)}
runtime.SetFinalizer(fd, (*FD).Close)
return fd
}
f... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/ptr_32_le.go | vendor/github.com/cilium/ebpf/internal/ptr_32_le.go | // +build 386 amd64p32 arm mipsle mips64p32le
package internal
import (
"unsafe"
)
// Pointer wraps an unsafe.Pointer to be 64bit to
// conform to the syscall specification.
type Pointer struct {
ptr unsafe.Pointer
pad uint32
}
| go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/errors.go | vendor/github.com/cilium/ebpf/internal/errors.go | package internal
import (
"bytes"
"errors"
"fmt"
"strings"
"github.com/cilium/ebpf/internal/unix"
)
// ErrorWithLog returns an error that includes logs from the
// kernel verifier.
//
// logErr should be the error returned by the syscall that generated
// the log. It is used to check for truncation of the outpu... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/io.go | vendor/github.com/cilium/ebpf/internal/io.go | package internal
import "errors"
// DiscardZeroes makes sure that all written bytes are zero
// before discarding them.
type DiscardZeroes struct{}
func (DiscardZeroes) Write(p []byte) (int, error) {
for _, b := range p {
if b != 0 {
return 0, errors.New("encountered non-zero byte")
}
}
return len(p), nil
... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/ptr_64.go | vendor/github.com/cilium/ebpf/internal/ptr_64.go | // +build !386,!amd64p32,!arm,!mipsle,!mips64p32le
// +build !armbe,!mips,!mips64p32
package internal
import (
"unsafe"
)
// Pointer wraps an unsafe.Pointer to be 64bit to
// conform to the syscall specification.
type Pointer struct {
ptr unsafe.Pointer
}
| go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/feature.go | vendor/github.com/cilium/ebpf/internal/feature.go | package internal
import (
"errors"
"fmt"
"sync"
)
// ErrNotSupported indicates that a feature is not supported by the current kernel.
var ErrNotSupported = errors.New("not supported")
// UnsupportedFeatureError is returned by FeatureTest() functions.
type UnsupportedFeatureError struct {
// The minimum Linux mai... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/syscall.go | vendor/github.com/cilium/ebpf/internal/syscall.go | package internal
import (
"fmt"
"path/filepath"
"runtime"
"unsafe"
"github.com/cilium/ebpf/internal/unix"
)
//go:generate stringer -output syscall_string.go -type=BPFCmd
// BPFCmd identifies a subcommand of the bpf syscall.
type BPFCmd int
// Well known BPF commands.
const (
BPF_MAP_CREATE BPFCmd = iota
BPF... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/cpu.go | vendor/github.com/cilium/ebpf/internal/cpu.go | package internal
import (
"fmt"
"io/ioutil"
"strings"
"sync"
)
var sysCPU struct {
once sync.Once
err error
num int
}
// PossibleCPUs returns the max number of CPUs a system may possibly have
// Logical CPU numbers must be of the form 0-n
func PossibleCPUs() (int, error) {
sysCPU.once.Do(func() {
sysCPU.... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/syscall_string.go | vendor/github.com/cilium/ebpf/internal/syscall_string.go | // Code generated by "stringer -output syscall_string.go -type=BPFCmd"; DO NOT EDIT.
package internal
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[BPF_MAP_CREA... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/version.go | vendor/github.com/cilium/ebpf/internal/version.go | package internal
import (
"fmt"
"io/ioutil"
"regexp"
"sync"
"github.com/cilium/ebpf/internal/unix"
)
const (
// Version constant used in ELF binaries indicating that the loader needs to
// substitute the eBPF program's version with the value of the kernel's
// KERNEL_VERSION compile-time macro. Used for comp... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/elf.go | vendor/github.com/cilium/ebpf/internal/elf.go | package internal
import (
"debug/elf"
"fmt"
"io"
)
type SafeELFFile struct {
*elf.File
}
// NewSafeELFFile reads an ELF safely.
//
// Any panic during parsing is turned into an error. This is necessary since
// there are a bunch of unfixed bugs in debug/elf.
//
// https://github.com/golang/go/issues?q=is%3Aissue... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/ptr_32_be.go | vendor/github.com/cilium/ebpf/internal/ptr_32_be.go | // +build armbe mips mips64p32
package internal
import (
"unsafe"
)
// Pointer wraps an unsafe.Pointer to be 64bit to
// conform to the syscall specification.
type Pointer struct {
pad uint32
ptr unsafe.Pointer
}
| go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/pinning.go | vendor/github.com/cilium/ebpf/internal/pinning.go | package internal
import (
"errors"
"fmt"
"os"
"github.com/cilium/ebpf/internal/unix"
)
func Pin(currentPath, newPath string, fd *FD) error {
if newPath == "" {
return errors.New("given pinning path cannot be empty")
}
if currentPath == newPath {
return nil
}
if currentPath == "" {
return BPFObjPin(new... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/unix/types_other.go | vendor/github.com/cilium/ebpf/internal/unix/types_other.go | // +build !linux
package unix
import (
"fmt"
"runtime"
"syscall"
)
var errNonLinux = fmt.Errorf("unsupported platform %s/%s", runtime.GOOS, runtime.GOARCH)
const (
ENOENT = syscall.ENOENT
EEXIST = syscall.EEXIST
EAGAIN = syscall.EAGAIN
ENOSPC = syscall.ENOSPC
EINVAL = syscall.EINVAL
EINTR = syscall.EINTR
... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/unix/types_linux.go | vendor/github.com/cilium/ebpf/internal/unix/types_linux.go | // +build linux
package unix
import (
"bytes"
"syscall"
linux "golang.org/x/sys/unix"
)
const (
ENOENT = linux.ENOENT
EEXIST = linux.EEXIST
EAGAIN = linux.EAGAIN
ENOSPC = linux.ENOSPC
EINVAL = linux.EINVAL
EPOLLIN = linux.EPOLLIN
EINTR = linux.EINTR
EPERM = linux.EPERM
ESRCH = linux.ESRCH
EN... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/btf/fuzz.go | vendor/github.com/cilium/ebpf/internal/btf/fuzz.go | // +build gofuzz
// Use with https://github.com/dvyukov/go-fuzz
package btf
import (
"bytes"
"encoding/binary"
"github.com/cilium/ebpf/internal"
)
func FuzzSpec(data []byte) int {
if len(data) < binary.Size(btfHeader{}) {
return -1
}
spec, err := loadNakedSpec(bytes.NewReader(data), internal.NativeEndian,... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/btf/btf_types.go | vendor/github.com/cilium/ebpf/internal/btf/btf_types.go | package btf
import (
"encoding/binary"
"fmt"
"io"
)
// btfKind describes a Type.
type btfKind uint8
// Equivalents of the BTF_KIND_* constants.
const (
kindUnknown btfKind = iota
kindInt
kindPointer
kindArray
kindStruct
kindUnion
kindEnum
kindForward
kindTypedef
kindVolatile
kindConst
kindRestrict
//... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/btf/types.go | vendor/github.com/cilium/ebpf/internal/btf/types.go | package btf
import (
"fmt"
"math"
"strings"
)
const maxTypeDepth = 32
// TypeID identifies a type in a BTF section.
type TypeID uint32
// ID implements part of the Type interface.
func (tid TypeID) ID() TypeID {
return tid
}
// Type represents a type described by BTF.
type Type interface {
ID() TypeID
Strin... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/btf/ext_info.go | vendor/github.com/cilium/ebpf/internal/btf/ext_info.go | package btf
import (
"bufio"
"bytes"
"encoding/binary"
"errors"
"fmt"
"io"
"io/ioutil"
"github.com/cilium/ebpf/asm"
"github.com/cilium/ebpf/internal"
)
type btfExtHeader struct {
Magic uint16
Version uint8
Flags uint8
HdrLen uint32
FuncInfoOff uint32
FuncInfoLen uint32
LineInfoOff uint32
LineI... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/btf/btf.go | vendor/github.com/cilium/ebpf/internal/btf/btf.go | package btf
import (
"bytes"
"debug/elf"
"encoding/binary"
"errors"
"fmt"
"io"
"io/ioutil"
"math"
"os"
"reflect"
"sync"
"unsafe"
"github.com/cilium/ebpf/internal"
"github.com/cilium/ebpf/internal/unix"
)
const btfMagic = 0xeB9F
// Errors returned by BTF functions.
var (
ErrNotSupported = internal.E... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/btf/strings.go | vendor/github.com/cilium/ebpf/internal/btf/strings.go | package btf
import (
"bytes"
"errors"
"fmt"
"io"
"io/ioutil"
)
type stringTable []byte
func readStringTable(r io.Reader) (stringTable, error) {
contents, err := ioutil.ReadAll(r)
if err != nil {
return nil, fmt.Errorf("can't read string table: %v", err)
}
if len(contents) < 1 {
return nil, errors.New("... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/btf/core.go | vendor/github.com/cilium/ebpf/internal/btf/core.go | package btf
import (
"errors"
"fmt"
"math"
"reflect"
"sort"
"strconv"
"strings"
"github.com/cilium/ebpf/asm"
)
// Code in this file is derived from libbpf, which is available under a BSD
// 2-Clause license.
// COREFixup is the result of computing a CO-RE relocation for a target.
type COREFixup struct {
Ki... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/github.com/cilium/ebpf/internal/btf/doc.go | vendor/github.com/cilium/ebpf/internal/btf/doc.go | // Package btf handles data encoded according to the BPF Type Format.
//
// The canonical documentation lives in the Linux kernel repository and is
// available at https://www.kernel.org/doc/html/latest/bpf/btf.html
//
// The API is very much unstable. You should only use this via the main
// ebpf library.
package btf
| go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/kernel.org/pub/linux/libs/security/libcap/cap/oslocks.go | vendor/kernel.org/pub/linux/libs/security/libcap/cap/oslocks.go | // +build go1.10
package cap
import "syscall"
// LaunchSupported indicates that is safe to return from a locked
// OS Thread and have that OS Thread be terminated by the runtime. The
// Launch functionality really needs to rely on the fact that an
// excess of runtime.LockOSThread() vs. runtime.UnlockOSThread() call... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/kernel.org/pub/linux/libs/security/libcap/cap/flags.go | vendor/kernel.org/pub/linux/libs/security/libcap/cap/flags.go | package cap
import "errors"
// GetFlag determines if the requested bit is enabled in the Flag
// vector of the capability Set.
func (c *Set) GetFlag(vec Flag, val Value) (bool, error) {
if c == nil || len(c.flat) == 0 {
// Checked this first, because otherwise we are sure
// cInit has been called.
return false... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/kernel.org/pub/linux/libs/security/libcap/cap/text.go | vendor/kernel.org/pub/linux/libs/security/libcap/cap/text.go | package cap
import (
"bufio"
"errors"
"strconv"
"strings"
)
// String converts a capability Value into its canonical text
// representation.
func (v Value) String() string {
name, ok := names[v]
if ok {
return name
}
// Un-named capabilities are referred to numerically (in decimal).
return strconv.Itoa(int... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/kernel.org/pub/linux/libs/security/libcap/cap/oslockluster.go | vendor/kernel.org/pub/linux/libs/security/libcap/cap/oslockluster.go | // +build !go1.10
package cap
import "syscall"
// LaunchSupported indicates that is safe to return from a locked OS
// Thread and have that OS Thread be terminated by the runtime. The
// Launch functionality really needs to rely on the fact that an
// excess of runtime.LockOSThread() vs. runtime.UnlockOSThread() cal... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/kernel.org/pub/linux/libs/security/libcap/cap/file.go | vendor/kernel.org/pub/linux/libs/security/libcap/cap/file.go | package cap
import (
"bytes"
"encoding/binary"
"errors"
"io"
"os"
"syscall"
"unsafe"
)
// uapi/linux/xattr.h defined.
var (
xattrNameCaps, _ = syscall.BytePtrFromString("security.capability")
)
// uapi/linux/capability.h defined.
const (
vfsCapRevisionMask = uint32(0xff000000)
vfsCapFlagsMask = ^vfs... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/kernel.org/pub/linux/libs/security/libcap/cap/convenience.go | vendor/kernel.org/pub/linux/libs/security/libcap/cap/convenience.go | package cap
import (
"errors"
"fmt"
"syscall"
"unsafe"
)
// This file contains convenience functions for libcap, to help
// users do the right thing with respect to capabilities for
// common actions.
// Secbits capture the prctl settable secure-bits of a process.
type Secbits uint
// SecbitNoRoot etc are the b... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/kernel.org/pub/linux/libs/security/libcap/cap/names.go | vendor/kernel.org/pub/linux/libs/security/libcap/cap/names.go | package cap
/* ** DO NOT EDIT THIS FILE. IT WAS AUTO-GENERATED BY LIBCAP'S GO BUILDER (mknames.go) ** */
// NamedCount holds the number of capability values with official
// names known at the time this libcap/cap version, was released. The
// "../libcap/cap" package is fully able to manipulate higher numbered
// cap... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/kernel.org/pub/linux/libs/security/libcap/cap/launch.go | vendor/kernel.org/pub/linux/libs/security/libcap/cap/launch.go | package cap
import (
"errors"
"os"
"runtime"
"syscall"
"unsafe"
)
// Launcher holds a configuration for executing an optional callback
// function and/or launching a child process with capability state
// different from the parent.
//
// Note, go1.10 is the earliest version of the Go toolchain that can
// suppor... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/kernel.org/pub/linux/libs/security/libcap/cap/modern.go | vendor/kernel.org/pub/linux/libs/security/libcap/cap/modern.go | // +build linux,!arm
// +build linux,!386
package cap
import "syscall"
var sysSetGroupsVariant = uintptr(syscall.SYS_SETGROUPS)
| go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/kernel.org/pub/linux/libs/security/libcap/cap/syscalls.go | vendor/kernel.org/pub/linux/libs/security/libcap/cap/syscalls.go | package cap
import (
"runtime"
"sync"
"syscall"
"kernel.org/pub/linux/libs/security/libcap/psx"
)
// multisc provides syscalls overridable for testing purposes that
// support a single kernel security state for all OS threads.
// We use this version when we are cgo compiling because
// we need to manage the nati... | go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
aojea/netkat | https://github.com/aojea/netkat/blob/0aff52e544e0df9b96fea261a4a9b96a36ad44f3/vendor/kernel.org/pub/linux/libs/security/libcap/cap/legacy.go | vendor/kernel.org/pub/linux/libs/security/libcap/cap/legacy.go | // +build linux,arm linux,386
package cap
import "syscall"
var sysSetGroupsVariant = uintptr(syscall.SYS_SETGROUPS32)
| go | Apache-2.0 | 0aff52e544e0df9b96fea261a4a9b96a36ad44f3 | 2026-01-07T09:45:51.064658Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.