wgctrl: golang.zx2c4.com/wireguard/wgctrl/internal/wglinux/internal/wgh Index | Files

package wgh

import "golang.zx2c4.com/wireguard/wgctrl/internal/wglinux/internal/wgh"

Package wgh is an auto-generated package which contains constants and types used to access WireGuard information using generic netlink.

Index

Package Files

const.go doc.go

Constants

const (
    // GenlName as defined in wgh/wireguard.h:134
    GenlName = "wireguard"
    // GenlVersion as defined in wgh/wireguard.h:135
    GenlVersion = 1
    // KeyLen as defined in wgh/wireguard.h:137
    KeyLen = 32
    // CmdMax as defined in wgh/wireguard.h:144
    CmdMax = (__CmdMax - 1)
    // DeviceAMax as defined in wgh/wireguard.h:162
    DeviceAMax = (_DeviceALast - 1)
    // PeerAMax as defined in wgh/wireguard.h:185
    PeerAMax = (_PeerALast - 1)
    // AllowedipAMax as defined in wgh/wireguard.h:194
    AllowedipAMax = (_AllowedipALast - 1)
)
const (
    CmdGetDevice = iota
    CmdSetDevice = 1
)

wgCmd enumeration from wgh/wireguard.h:139

const (
    DeviceAUnspec     = iota
    DeviceAIfindex    = 1
    DeviceAIfname     = 2
    DeviceAPrivateKey = 3
    DeviceAPublicKey  = 4
    DeviceAFlags      = 5
    DeviceAListenPort = 6
    DeviceAFwmark     = 7
    DeviceAPeers      = 8
)

wgdeviceAttribute enumeration from wgh/wireguard.h:150

const (
    PeerFRemoveMe          = uint32(1) << 0
    PeerFReplaceAllowedips = uint32(1) << 1
    PeerFUpdateOnly        = uint32(1) << 2
)

wgpeerFlag enumeration from wgh/wireguard.h:164

const (
    PeerAUnspec                      = iota
    PeerAPublicKey                   = 1
    PeerAPresharedKey                = 2
    PeerAFlags                       = 3
    PeerAEndpoint                    = 4
    PeerAPersistentKeepaliveInterval = 5
    PeerALastHandshakeTime           = 6
    PeerARxBytes                     = 7
    PeerATxBytes                     = 8
    PeerAAllowedips                  = 9
    PeerAProtocolVersion             = 10
)

wgpeerAttribute enumeration from wgh/wireguard.h:171

const (
    AllowedipAUnspec   = iota
    AllowedipAFamily   = 1
    AllowedipAIpaddr   = 2
    AllowedipACidrMask = 3
)

wgallowedipAttribute enumeration from wgh/wireguard.h:187

const (
    DeviceFReplacePeers = uint32(1) << 0
)

wgdeviceFlag enumeration from wgh/wireguard.h:146

Package wgh is imported by 2 packages. Updated 2019-11-21. Refresh now. Tools for package owners.