Documentation ¶
Index ¶
- Constants
- func GetSockOpt(ep tcpip.Endpoint, ns *Netstack, he *hardError, ...) (interface{}, tcpip.Error)
- func Main()
- func NewCobaltClient() *cobaltClient
- func SetSockOpt(ep tcpip.Endpoint, ns *Netstack, level, name int16, optVal []uint8) tcpip.Error
- type NICRemovedHandler
- type Netstack
- func (ns *Netstack) AddRoute(r tcpip.Route, metric routes.Metric, dynamic bool) error
- func (ns *Netstack) AddRoutes(rs []tcpip.Route, metric routes.Metric, dynamic bool) error
- func (ns *Netstack) Bridge(nics []tcpip.NICID) (*ifState, error)
- func (ns *Netstack) DelRoute(r tcpip.Route) error
- func (ns *Netstack) GetExtendedRouteTable() []routes.ExtendedRoute
- func (ns *Netstack) UpdateRoutesByInterface(nicid tcpip.NICID, action routes.Action)
- type TcpIpError
Constants ¶
const ( // DefaultTTL is linux's default TTL. All network protocols in all stacks used // with this package must have this value set as their default TTL. DefaultTTL = 64 )
Variables ¶
This section is empty.
Functions ¶
func GetSockOpt ¶
func GetSockOpt(ep tcpip.Endpoint, ns *Netstack, he *hardError, netProto tcpip.NetworkProtocolNumber, transProto tcpip.TransportProtocolNumber, level, name int16) (interface{}, tcpip.Error)
func NewCobaltClient ¶
func NewCobaltClient() *cobaltClient
Types ¶
type NICRemovedHandler ¶
type NICRemovedHandler interface { // RemovedNIC informs the receiver that the specified NIC has been removed. RemovedNIC(tcpip.NICID) }
NICRemovedHandler is an interface implemented by types that are interested in NICs that have been removed.
type Netstack ¶
type Netstack struct {
// contains filtered or unexported fields
}
A Netstack tracks all of the running state of the network stack.
func (*Netstack) AddRoutes ¶
AddRoutes adds one or more routes to the route table in a sorted fashion.
func (*Netstack) GetExtendedRouteTable ¶
func (ns *Netstack) GetExtendedRouteTable() []routes.ExtendedRoute
GetExtendedRouteTable returns a copy of the current extended route table.
type TcpIpError ¶
TcpIpError wraps a tcpip.Error.
TcpIpError provides an error implementation over tcpip.Error so that error wrapping and unwrapping can be used. It also provides utility methods to convert it to Netstack FIDL API returns.
func WrapTcpIpError ¶
func WrapTcpIpError(e tcpip.Error) *TcpIpError
WrapTcpIpError wraps a stack error into a type that implements the error interface.
func (*TcpIpError) Error ¶
func (e *TcpIpError) Error() string
func (TcpIpError) ToStackError ¶
func (e TcpIpError) ToStackError() stack.Error
ToStackError transforms the internal tcpip.Error into a FIDL fuchsia.net.stack/Error. Panics if the internal error is nil.
func (TcpIpError) ToZxStatus ¶
func (e TcpIpError) ToZxStatus() zx.Status
ToZxStatus transforms the internal tcpip.Error into a zx.Status.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package dhcp implements a DHCP client and server as described in RFC 2131.
|
Package dhcp implements a DHCP client and server as described in RFC 2131. |
fidlext
|
|
Package filter provides the implementation of packet filter.
|
Package filter provides the implementation of packet filter. |
bridge
link/bridge implements a bridging LinkEndpoint It can be writable.
|
link/bridge implements a bridging LinkEndpoint It can be writable. |