Documentation ¶
Overview ¶
Copyright 2017 Politecnico di Torino
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.
Copyright 2017 Politecnico di Torino ¶
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 ¶
- Variables
- type NatModule
- func (n *NatModule) AttachExternalInterface(ifaceName string) (err error)
- func (n *NatModule) AttachToIoModule(ifaceId int, ifaceName string) (err error)
- func (n *NatModule) Configure(conf interface{}) (err error)
- func (n *NatModule) Deploy() (err error)
- func (n *NatModule) Destroy() (err error)
- func (n *NatModule) DetachExternalInterface(ifaceName string) (err error)
- func (n *NatModule) DetachFromIoModule(ifaceName string) (err error)
- func (n *NatModule) GetModuleId() string
- func (n *NatModule) SetAddressAssociation(internal_ip net.IP, external_ip net.IP) (err error)
- type NatModuleInterface
Constants ¶
This section is empty.
Variables ¶
var NatCode = `` /* 11197-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type NatModule ¶
type NatModule struct { ModuleId string PortsCount int //number of allocated ports Interfaces map[string]*NatModuleInterface // contains filtered or unexported fields }
func (*NatModule) AttachExternalInterface ¶
func (*NatModule) AttachToIoModule ¶
func (*NatModule) DetachExternalInterface ¶
func (*NatModule) DetachFromIoModule ¶
func (*NatModule) GetModuleId ¶
type NatModuleInterface ¶
type NatModuleInterface struct { IfaceIdRedirectHover int //Iface id inside hover (relative to the m:1234 the interface is attached to ...) and provided my the extended hover /links/ API IfaceFd int //Interface Fd inside External_Ids (42, etc...) LinkIdHover string //iomodules Link Id IfaceName string }