Documentation
¶
Overview ¶
* Copyright (c) 2022 NetLOX 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 writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- Constants
- type CtInfo
- type DpStatusT
- type EpSelect
- type FdbMod
- type Ipv4AddrMod
- type LbEndPointArg
- type LbRuleMod
- type LbServiceArg
- type Neighv4Mod
- type NetHookInterface
- type PortDump
- type PortHwInfo
- type PortLayer2Info
- type PortLayer3Info
- type PortMod
- type PortProp
- type PortStatsInfo
- type PortSwInfo
- type Routev4Mod
- type SessTun
- type SessionMod
- type SessionUlClMod
- type UlClArg
- type VlanMod
- type VlanPortMod
Constants ¶
View Source
const ( AU_WORKQ_LEN = 1024 LU_WORKQ_LEN = 1024 NU_WORKQ_LEN = 1024 RU_WORKQ_LEN = 40827 )
View Source
const ( PORT_REAL = 0x1 PORT_BONDSIF = 0x2 PORT_BOND = 0x4 PORT_VLANSIF = 0x8 PORT_VLANBR = 0x10 PORT_VXLANSIF = 0x20 PORT_VXLANBR = 0x40 PORT_WG = 0x80 )
View Source
const ( FDB_PHY = 0 FDB_TUN = 1 FDB_VLAN = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CtInfo ¶
type CtInfo struct { Dip net.IP `json:"destinationIP"` Sip net.IP `json:"sourceIP"` Dport uint16 `json:"destinationPort"` Sport uint16 `json:"sourcePort"` Proto string `json:"protocol"` CState string `json:"conntrackState"` CAct string `json:"conntrackAct"` Pkts uint64 `json:"packets"` Bytes uint64 `json:"bytes"` }
type Ipv4AddrMod ¶
type LbEndPointArg ¶
type LbRuleMod ¶
type LbRuleMod struct { Serv LbServiceArg `json:"serviceArguments"` Eps []LbEndPointArg `json:"endpoints"` }
type LbServiceArg ¶
type Neighv4Mod ¶
type NetHookInterface ¶
type NetHookInterface interface { NetPortGet() ([]PortDump, error) NetPortAdd(*PortMod) (int, error) NetPortDel(*PortMod) (int, error) NetVlanAdd(*VlanMod) (int, error) NetVlanDel(*VlanMod) (int, error) NetVlanPortAdd(*VlanPortMod) (int, error) NetVlanPortDel(*VlanPortMod) (int, error) NetFdbAdd(*FdbMod) (int, error) NetFdbDel(*FdbMod) (int, error) NetIpv4AddrAdd(*Ipv4AddrMod) (int, error) NetIpv4AddrDel(*Ipv4AddrMod) (int, error) NetNeighv4Add(*Neighv4Mod) (int, error) NetNeighv4Del(*Neighv4Mod) (int, error) NetRoutev4Add(*Routev4Mod) (int, error) NetRoutev4Del(*Routev4Mod) (int, error) NetLbRuleAdd(*LbRuleMod) (int, error) NetLbRuleDel(*LbRuleMod) (int, error) NetLbRuleGet() ([]LbRuleMod, error) NetCtInfoGet() ([]CtInfo, error) NetSessionGet() ([]SessionMod, error) NetSessionUlClGet() ([]SessionUlClMod, error) NetSessionAdd(*SessionMod) (int, error) NetSessionDel(*SessionMod) (int, error) NetSessionUlClAdd(*SessionUlClMod) (int, error) NetSessionUlClDel(*SessionUlClMod) (int, error) }
type PortDump ¶
type PortDump struct { Name string `json:"portName"` PortNo int `json:"portNo"` Zone string `json:"zone"` SInfo PortSwInfo `json:"portSoftwareInformation"` HInfo PortHwInfo `json:"portHardwareInformation"` Stats PortStatsInfo `json:"portStatisticInformation"` L3 PortLayer3Info `json:"portL3Information"` L2 PortLayer2Info `json:"portL2Information"` Sync DpStatusT `json:"DataplaneSync"` }
type PortHwInfo ¶
type PortLayer2Info ¶
type PortLayer3Info ¶
type PortStatsInfo ¶
type PortSwInfo ¶
type Routev4Mod ¶
type SessionMod ¶
type SessionUlClMod ¶
type VlanPortMod ¶
Click to show internal directories.
Click to hide internal directories.