arp

package
v0.0.0-...-4a564ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArpResponderAddIPResult_Success_DEFAULT bool
View Source
var ArpResponderAddInterfaceResult_Success_DEFAULT bool
View Source
var ArpResponderDelIPResult_Success_DEFAULT bool
View Source
var ArpResponderDelInterfaceResult_Success_DEFAULT bool
View Source
var ArpResponderRequestMacResult_Success_DEFAULT []*RepTupleT
View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type ArpResponder

type ArpResponder interface {
	// Parameters:
	//  - IfaceName
	AddInterface(iface_name string) (r bool, err error)
	// Parameters:
	//  - IfaceName
	DelInterface(iface_name string) (r bool, err error)
	// Parameters:
	//  - IfaceName
	//  - Stag
	//  - Ctag
	//  - IP
	AddIP(iface_name string, stag VlanTagT, ctag VlanTagT, ip Ip4T) (r bool, err error)
	// Parameters:
	//  - IfaceName
	//  - Stag
	//  - Ctag
	DelIP(iface_name string, stag VlanTagT, ctag VlanTagT) (r bool, err error)
	// Parameters:
	//  - Requests
	RequestMac(requests []*ReqTuplesT) (r []*RepTupleT, err error)
}

type ArpResponderAddIPArgs

type ArpResponderAddIPArgs struct {
	IfaceName string   `thrift:"iface_name,1" db:"iface_name" json:"iface_name"`
	Stag      VlanTagT `thrift:"stag,2" db:"stag" json:"stag"`
	Ctag      VlanTagT `thrift:"ctag,3" db:"ctag" json:"ctag"`
	IP        Ip4T     `thrift:"ip,4" db:"ip" json:"ip"`
}

Attributes:

  • IfaceName
  • Stag
  • Ctag
  • IP

func NewArpResponderAddIPArgs

func NewArpResponderAddIPArgs() *ArpResponderAddIPArgs

func (*ArpResponderAddIPArgs) GetCtag

func (p *ArpResponderAddIPArgs) GetCtag() VlanTagT

func (*ArpResponderAddIPArgs) GetIP

func (p *ArpResponderAddIPArgs) GetIP() Ip4T

func (*ArpResponderAddIPArgs) GetIfaceName

func (p *ArpResponderAddIPArgs) GetIfaceName() string

func (*ArpResponderAddIPArgs) GetStag

func (p *ArpResponderAddIPArgs) GetStag() VlanTagT

func (*ArpResponderAddIPArgs) Read

func (*ArpResponderAddIPArgs) ReadField1

func (p *ArpResponderAddIPArgs) ReadField1(iprot thrift.TProtocol) error

func (*ArpResponderAddIPArgs) ReadField2

func (p *ArpResponderAddIPArgs) ReadField2(iprot thrift.TProtocol) error

func (*ArpResponderAddIPArgs) ReadField3

func (p *ArpResponderAddIPArgs) ReadField3(iprot thrift.TProtocol) error

func (*ArpResponderAddIPArgs) ReadField4

func (p *ArpResponderAddIPArgs) ReadField4(iprot thrift.TProtocol) error

func (*ArpResponderAddIPArgs) String

func (p *ArpResponderAddIPArgs) String() string

func (*ArpResponderAddIPArgs) Write

func (p *ArpResponderAddIPArgs) Write(oprot thrift.TProtocol) error

type ArpResponderAddIPResult

type ArpResponderAddIPResult struct {
	Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewArpResponderAddIPResult

func NewArpResponderAddIPResult() *ArpResponderAddIPResult

func (*ArpResponderAddIPResult) GetSuccess

func (p *ArpResponderAddIPResult) GetSuccess() bool

func (*ArpResponderAddIPResult) IsSetSuccess

func (p *ArpResponderAddIPResult) IsSetSuccess() bool

func (*ArpResponderAddIPResult) Read

func (*ArpResponderAddIPResult) ReadField0

func (p *ArpResponderAddIPResult) ReadField0(iprot thrift.TProtocol) error

func (*ArpResponderAddIPResult) String

func (p *ArpResponderAddIPResult) String() string

func (*ArpResponderAddIPResult) Write

type ArpResponderAddInterfaceArgs

type ArpResponderAddInterfaceArgs struct {
	IfaceName string `thrift:"iface_name,1" db:"iface_name" json:"iface_name"`
}

Attributes:

  • IfaceName

func NewArpResponderAddInterfaceArgs

func NewArpResponderAddInterfaceArgs() *ArpResponderAddInterfaceArgs

func (*ArpResponderAddInterfaceArgs) GetIfaceName

func (p *ArpResponderAddInterfaceArgs) GetIfaceName() string

func (*ArpResponderAddInterfaceArgs) Read

func (*ArpResponderAddInterfaceArgs) ReadField1

func (p *ArpResponderAddInterfaceArgs) ReadField1(iprot thrift.TProtocol) error

func (*ArpResponderAddInterfaceArgs) String

func (*ArpResponderAddInterfaceArgs) Write

type ArpResponderAddInterfaceResult

type ArpResponderAddInterfaceResult struct {
	Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewArpResponderAddInterfaceResult

func NewArpResponderAddInterfaceResult() *ArpResponderAddInterfaceResult

func (*ArpResponderAddInterfaceResult) GetSuccess

func (p *ArpResponderAddInterfaceResult) GetSuccess() bool

func (*ArpResponderAddInterfaceResult) IsSetSuccess

func (p *ArpResponderAddInterfaceResult) IsSetSuccess() bool

func (*ArpResponderAddInterfaceResult) Read

func (*ArpResponderAddInterfaceResult) ReadField0

func (*ArpResponderAddInterfaceResult) String

func (*ArpResponderAddInterfaceResult) Write

type ArpResponderClient

type ArpResponderClient struct {
	Transport       thrift.TTransport
	ProtocolFactory thrift.TProtocolFactory
	InputProtocol   thrift.TProtocol
	OutputProtocol  thrift.TProtocol
	SeqId           int32
}

func NewArpResponderClientProtocol

func NewArpResponderClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ArpResponderClient

func (*ArpResponderClient) AddIP

func (p *ArpResponderClient) AddIP(iface_name string, stag VlanTagT, ctag VlanTagT, ip Ip4T) (r bool, err error)

Parameters:

  • IfaceName
  • Stag
  • Ctag
  • IP

func (*ArpResponderClient) AddInterface

func (p *ArpResponderClient) AddInterface(iface_name string) (r bool, err error)

Parameters:

  • IfaceName

func (*ArpResponderClient) DelIP

func (p *ArpResponderClient) DelIP(iface_name string, stag VlanTagT, ctag VlanTagT) (r bool, err error)

Parameters:

  • IfaceName
  • Stag
  • Ctag

func (*ArpResponderClient) DelInterface

func (p *ArpResponderClient) DelInterface(iface_name string) (r bool, err error)

Parameters:

  • IfaceName

func (*ArpResponderClient) RequestMac

func (p *ArpResponderClient) RequestMac(requests []*ReqTuplesT) (r []*RepTupleT, err error)

Parameters:

  • Requests

type ArpResponderDelIPArgs

type ArpResponderDelIPArgs struct {
	IfaceName string   `thrift:"iface_name,1" db:"iface_name" json:"iface_name"`
	Stag      VlanTagT `thrift:"stag,2" db:"stag" json:"stag"`
	Ctag      VlanTagT `thrift:"ctag,3" db:"ctag" json:"ctag"`
}

Attributes:

  • IfaceName
  • Stag
  • Ctag

func NewArpResponderDelIPArgs

func NewArpResponderDelIPArgs() *ArpResponderDelIPArgs

func (*ArpResponderDelIPArgs) GetCtag

func (p *ArpResponderDelIPArgs) GetCtag() VlanTagT

func (*ArpResponderDelIPArgs) GetIfaceName

func (p *ArpResponderDelIPArgs) GetIfaceName() string

func (*ArpResponderDelIPArgs) GetStag

func (p *ArpResponderDelIPArgs) GetStag() VlanTagT

func (*ArpResponderDelIPArgs) Read

func (*ArpResponderDelIPArgs) ReadField1

func (p *ArpResponderDelIPArgs) ReadField1(iprot thrift.TProtocol) error

func (*ArpResponderDelIPArgs) ReadField2

func (p *ArpResponderDelIPArgs) ReadField2(iprot thrift.TProtocol) error

func (*ArpResponderDelIPArgs) ReadField3

func (p *ArpResponderDelIPArgs) ReadField3(iprot thrift.TProtocol) error

func (*ArpResponderDelIPArgs) String

func (p *ArpResponderDelIPArgs) String() string

func (*ArpResponderDelIPArgs) Write

func (p *ArpResponderDelIPArgs) Write(oprot thrift.TProtocol) error

type ArpResponderDelIPResult

type ArpResponderDelIPResult struct {
	Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewArpResponderDelIPResult

func NewArpResponderDelIPResult() *ArpResponderDelIPResult

func (*ArpResponderDelIPResult) GetSuccess

func (p *ArpResponderDelIPResult) GetSuccess() bool

func (*ArpResponderDelIPResult) IsSetSuccess

func (p *ArpResponderDelIPResult) IsSetSuccess() bool

func (*ArpResponderDelIPResult) Read

func (*ArpResponderDelIPResult) ReadField0

func (p *ArpResponderDelIPResult) ReadField0(iprot thrift.TProtocol) error

func (*ArpResponderDelIPResult) String

func (p *ArpResponderDelIPResult) String() string

func (*ArpResponderDelIPResult) Write

type ArpResponderDelInterfaceArgs

type ArpResponderDelInterfaceArgs struct {
	IfaceName string `thrift:"iface_name,1" db:"iface_name" json:"iface_name"`
}

Attributes:

  • IfaceName

func NewArpResponderDelInterfaceArgs

func NewArpResponderDelInterfaceArgs() *ArpResponderDelInterfaceArgs

func (*ArpResponderDelInterfaceArgs) GetIfaceName

func (p *ArpResponderDelInterfaceArgs) GetIfaceName() string

func (*ArpResponderDelInterfaceArgs) Read

func (*ArpResponderDelInterfaceArgs) ReadField1

func (p *ArpResponderDelInterfaceArgs) ReadField1(iprot thrift.TProtocol) error

func (*ArpResponderDelInterfaceArgs) String

func (*ArpResponderDelInterfaceArgs) Write

type ArpResponderDelInterfaceResult

type ArpResponderDelInterfaceResult struct {
	Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewArpResponderDelInterfaceResult

func NewArpResponderDelInterfaceResult() *ArpResponderDelInterfaceResult

func (*ArpResponderDelInterfaceResult) GetSuccess

func (p *ArpResponderDelInterfaceResult) GetSuccess() bool

func (*ArpResponderDelInterfaceResult) IsSetSuccess

func (p *ArpResponderDelInterfaceResult) IsSetSuccess() bool

func (*ArpResponderDelInterfaceResult) Read

func (*ArpResponderDelInterfaceResult) ReadField0

func (*ArpResponderDelInterfaceResult) String

func (*ArpResponderDelInterfaceResult) Write

type ArpResponderProcessor

type ArpResponderProcessor struct {
	// contains filtered or unexported fields
}

func NewArpResponderProcessor

func NewArpResponderProcessor(handler ArpResponder) *ArpResponderProcessor

func (*ArpResponderProcessor) AddToProcessorMap

func (p *ArpResponderProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*ArpResponderProcessor) GetProcessorFunction

func (p *ArpResponderProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*ArpResponderProcessor) Process

func (p *ArpResponderProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*ArpResponderProcessor) ProcessorMap

func (p *ArpResponderProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

type ArpResponderRequestMacArgs

type ArpResponderRequestMacArgs struct {
	Requests []*ReqTuplesT `thrift:"requests,1" db:"requests" json:"requests"`
}

Attributes:

  • Requests

func NewArpResponderRequestMacArgs

func NewArpResponderRequestMacArgs() *ArpResponderRequestMacArgs

func (*ArpResponderRequestMacArgs) GetRequests

func (p *ArpResponderRequestMacArgs) GetRequests() []*ReqTuplesT

func (*ArpResponderRequestMacArgs) Read

func (*ArpResponderRequestMacArgs) ReadField1

func (p *ArpResponderRequestMacArgs) ReadField1(iprot thrift.TProtocol) error

func (*ArpResponderRequestMacArgs) String

func (p *ArpResponderRequestMacArgs) String() string

func (*ArpResponderRequestMacArgs) Write

type ArpResponderRequestMacResult

type ArpResponderRequestMacResult struct {
	Success []*RepTupleT `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewArpResponderRequestMacResult

func NewArpResponderRequestMacResult() *ArpResponderRequestMacResult

func (*ArpResponderRequestMacResult) GetSuccess

func (p *ArpResponderRequestMacResult) GetSuccess() []*RepTupleT

func (*ArpResponderRequestMacResult) IsSetSuccess

func (p *ArpResponderRequestMacResult) IsSetSuccess() bool

func (*ArpResponderRequestMacResult) Read

func (*ArpResponderRequestMacResult) ReadField0

func (p *ArpResponderRequestMacResult) ReadField0(iprot thrift.TProtocol) error

func (*ArpResponderRequestMacResult) String

func (*ArpResponderRequestMacResult) Write

type Ip4T

type Ip4T int32

func Ip4TPtr

func Ip4TPtr(v Ip4T) *Ip4T

type MacT

type MacT []byte

func MacTPtr

func MacTPtr(v MacT) *MacT

type RepTupleT

type RepTupleT struct {
	Request *ReqTupleT `thrift:"request,1" db:"request" json:"request"`
	Index   int32      `thrift:"index,2" db:"index" json:"index"`
	Mac     MacT       `thrift:"mac,3" db:"mac" json:"mac"`
	IsFound bool       `thrift:"is_found,4" db:"is_found" json:"is_found"`
}

Attributes:

  • Request
  • Index
  • Mac
  • IsFound

func NewRepTupleT

func NewRepTupleT() *RepTupleT

func (*RepTupleT) GetIndex

func (p *RepTupleT) GetIndex() int32

func (*RepTupleT) GetIsFound

func (p *RepTupleT) GetIsFound() bool

func (*RepTupleT) GetMac

func (p *RepTupleT) GetMac() MacT

func (*RepTupleT) GetRequest

func (p *RepTupleT) GetRequest() *ReqTupleT

func (*RepTupleT) IsSetRequest

func (p *RepTupleT) IsSetRequest() bool

func (*RepTupleT) Read

func (p *RepTupleT) Read(iprot thrift.TProtocol) error

func (*RepTupleT) ReadField1

func (p *RepTupleT) ReadField1(iprot thrift.TProtocol) error

func (*RepTupleT) ReadField2

func (p *RepTupleT) ReadField2(iprot thrift.TProtocol) error

func (*RepTupleT) ReadField3

func (p *RepTupleT) ReadField3(iprot thrift.TProtocol) error

func (*RepTupleT) ReadField4

func (p *RepTupleT) ReadField4(iprot thrift.TProtocol) error

func (*RepTupleT) String

func (p *RepTupleT) String() string

func (*RepTupleT) Write

func (p *RepTupleT) Write(oprot thrift.TProtocol) error

type ReqTupleT

type ReqTupleT struct {
	IfaceName string   `thrift:"iface_name,1" db:"iface_name" json:"iface_name"`
	Stag      VlanTagT `thrift:"stag,2" db:"stag" json:"stag"`
	Ctag      VlanTagT `thrift:"ctag,3" db:"ctag" json:"ctag"`
}

Attributes:

  • IfaceName
  • Stag
  • Ctag
var RepTupleT_Request_DEFAULT *ReqTupleT

func NewReqTupleT

func NewReqTupleT() *ReqTupleT

func (*ReqTupleT) GetCtag

func (p *ReqTupleT) GetCtag() VlanTagT

func (*ReqTupleT) GetIfaceName

func (p *ReqTupleT) GetIfaceName() string

func (*ReqTupleT) GetStag

func (p *ReqTupleT) GetStag() VlanTagT

func (*ReqTupleT) Read

func (p *ReqTupleT) Read(iprot thrift.TProtocol) error

func (*ReqTupleT) ReadField1

func (p *ReqTupleT) ReadField1(iprot thrift.TProtocol) error

func (*ReqTupleT) ReadField2

func (p *ReqTupleT) ReadField2(iprot thrift.TProtocol) error

func (*ReqTupleT) ReadField3

func (p *ReqTupleT) ReadField3(iprot thrift.TProtocol) error

func (*ReqTupleT) String

func (p *ReqTupleT) String() string

func (*ReqTupleT) Write

func (p *ReqTupleT) Write(oprot thrift.TProtocol) error

type ReqTuplesT

type ReqTuplesT struct {
	Tuples []*ReqTupleT `thrift:"tuples,1" db:"tuples" json:"tuples"`
	Index  int32        `thrift:"index,2" db:"index" json:"index"`
	IP     Ip4T         `thrift:"ip,3" db:"ip" json:"ip"`
}

Attributes:

  • Tuples
  • Index
  • IP

func NewReqTuplesT

func NewReqTuplesT() *ReqTuplesT

func (*ReqTuplesT) GetIP

func (p *ReqTuplesT) GetIP() Ip4T

func (*ReqTuplesT) GetIndex

func (p *ReqTuplesT) GetIndex() int32

func (*ReqTuplesT) GetTuples

func (p *ReqTuplesT) GetTuples() []*ReqTupleT

func (*ReqTuplesT) Read

func (p *ReqTuplesT) Read(iprot thrift.TProtocol) error

func (*ReqTuplesT) ReadField1

func (p *ReqTuplesT) ReadField1(iprot thrift.TProtocol) error

func (*ReqTuplesT) ReadField2

func (p *ReqTuplesT) ReadField2(iprot thrift.TProtocol) error

func (*ReqTuplesT) ReadField3

func (p *ReqTuplesT) ReadField3(iprot thrift.TProtocol) error

func (*ReqTuplesT) String

func (p *ReqTuplesT) String() string

func (*ReqTuplesT) Write

func (p *ReqTuplesT) Write(oprot thrift.TProtocol) error

type VlanTagT

type VlanTagT int16

func VlanTagTPtr

func VlanTagTPtr(v VlanTagT) *VlanTagT

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL