Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/digitalocean/go-openvswitch
/ functions
Functions
571 in github.com/digitalocean/go-openvswitch
⨍
Functions
571
◇
Types & classes
151
↓ 68 callers
Function
bprintf
bprintf is fmt.Sprintf, but it returns a byte slice instead of a string.
ovs/codegen.go:60
↓ 55 callers
Method
MarshalText
MarshalText marshals a Flow into its textual form.
ovs/flow.go:139
↓ 49 callers
Function
testClient
testClient creates a new Client with the specified OptionFuncs applied and using the specified ExecFunc.
ovs/client_test.go:164
↓ 39 callers
Function
TransportDestinationPort
TransportDestinationPort matches packets with a TCP destination port matching port.
ovs/match.go:894
↓ 37 callers
Function
Drop
Drop immediately discards the packet. It must be the only Action specified when used.
ovs/action.go:141
↓ 29 callers
Method
Error
Error returns the string representation of an Error.
ovs/ovs.go:75
↓ 29 callers
Function
Resubmit
Resubmit resubmits a packet for further processing by matching flows with the specified port and table. If port or table are zero, they are set to em
ovs/action.go:528
↓ 28 callers
Function
Timeout
Timeout returns an OptionFunc which sets a timeout in seconds for all Open vSwitch interactions.
ovs/client.go:259
↓ 27 callers
Function
NetworkDestination
NetworkDestination matches packets with a destination IPv4 address or IPv4 CIDR block matching ip.
ovs/match.go:268
↓ 25 callers
Function
SetState
SetState sets the specified CTState flag. This helper should be used with ConnectionTrackingState.
ovs/match.go:1344
↓ 23 callers
Function
DataLinkSource
DataLinkSource matches packets with a source hardware address and optional wildcard mask matching addr.
ovs/match.go:96
↓ 22 callers
Function
Output
Output outputs the packet to the specified switch port. Use InPortLocal to output the packet to the LOCAL port. port must either be a non-negative i
ovs/action.go:400
↓ 21 callers
Method
String
String returns the string representation of a DatapathFeatures.
ovsnl/datapath.go:52
↓ 18 callers
Function
ConnectionTracking
ConnectionTracking sends a packet through the host's connection tracker.
ovs/action.go:211
↓ 18 callers
Function
ConnectionTrackingState
ConnectionTrackingState matches packets using their connection state, when connection tracking is enabled on the host. Use the SetState and UnsetStat
ovs/match.go:1295
↓ 18 callers
Function
DataLinkDestination
DataLinkDestination matches packets with a destination hardware address and optional wildcard mask matching addr.
ovs/match.go:105
↓ 18 callers
Function
IPv6Source
IPv6Source matches packets with a source IPv6 address or IPv6 CIDR block matching ip.
ovs/match.go:541
↓ 18 callers
Function
ModVLANVID
ModVLANVID modifies the VLAN ID (VID) on a packet. It adds a VLAN tag if one is not already present. vid must be a valid VLAN VID, within the range
ovs/action.go:372
↓ 18 callers
Function
SetTCPFlag
SetTCPFlag sets the specified TCPFlag. This helper should be used with TCPFlags.
ovs/match.go:1447
↓ 17 callers
Function
NetworkSource
NetworkSource matches packets with a source IPv4 address or IPv4 CIDR block matching ip.
ovs/match.go:259
↓ 15 callers
Function
Load
Load loads the specified value into the specified field. If either string is empty, an error is returned.
ovs/action.go:607
↓ 14 callers
Function
IPv6Destination
IPv6Destination matches packets with a destination IPv6 address or IPv6 CIDR block matching ip.
ovs/match.go:550
↓ 14 callers
Method
exec
exec executes an ExecFunc using 'ovs-vsctl'.
ovs/vswitch.go:151
↓ 14 callers
Function
mustParseMAC
mustParseMAC is a helper to parse a hardware address from a string using net.ParseMAC, that panic on failure.
ovs/match_test.go:1615
↓ 13 callers
Function
ARPTargetProtocolAddress
ARPTargetProtocolAddress matches packets with an ARP target protocol address (TPA) IPv4 address or IPv4 CIDR block matching addr.
ovs/match.go:851
↓ 13 callers
Function
TCPFlags
TCPFlags matches packets using their enabled TCP flags, when matching TCP flags on a TCP segment. Use the SetTCPFlag and UnsetTCPFlag functions to p
ovs/match.go:1399
↓ 12 callers
Function
parseIntMatch
parseIntMatch parses an integer Match value from the input key and value, with a maximum possible value of upper.
ovs/matchparser.go:134
↓ 12 callers
Function
strPtr
(s string)
ovsdb/client_test.go:326
↓ 12 callers
Function
testClient
(t *testing.T, fn jsonrpc.TestFunc, options ...ovsdb.OptionFunc)
ovsdb/client_test.go:285
↓ 11 callers
Method
Err
Err returns an error, if one occurred in a Response.
ovsdb/internal/jsonrpc/conn.go:48
↓ 11 callers
Function
mustMarshalJSON
(t *testing.T, v interface{})
ovsdb/client_test.go:315
↓ 10 callers
Function
ARPTargetHardwareAddress
ARPTargetHardwareAddress matches packets with an ARP target hardware address (THA) matching addr.
ovs/match.go:805
↓ 10 callers
Method
Add
Add pushes zero or more Flows on to the transaction, to be added by Open vSwitch. If any of the flows are invalid, Add becomes a no-op and the error
ovs/openflow.go:81
↓ 10 callers
Function
DataLinkType
DataLinkType matches packets with the specified EtherType.
ovs/match.go:166
↓ 10 callers
Function
ICMP6Type
ICMP6Type matches packets with the specified ICMP type matching typ.
ovs/match.go:628
↓ 10 callers
Function
IPv6Label
IPv6Label matches packets based on their IPv6 label information, using the specified label and optional mask value.
ovs/match.go:1191
↓ 10 callers
Method
ListDatabases
ListDatabases returns the name of all databases known to the OVSDB server.
ovsdb/rpc.go:23
↓ 10 callers
Function
NeighborDiscoverySourceLinkLayer
NeighborDiscoverySourceLinkLayer matches packets with an IPv6 neighbor solicitation source link-layer address matching addr.
ovs/match.go:726
↓ 10 callers
Function
TransportDestinationMaskedPort
TransportDestinationMaskedPort matches packets with a TCP destination port matching a masked port range.
ovs/match.go:912
↓ 10 callers
Function
VLANTCI
VLANTCI matches packets based on their VLAN tag control information, using the specified TCI and optional mask value.
ovs/match.go:1133
↓ 10 callers
Function
VLANTCI1
VLANTCI1 matches packets based on their VLAN tag control information, using the specified TCI and optional mask value.
ovs/match.go:1162
↓ 9 callers
Function
DecTTL
DecTTL decrements the TTL of an IPv4 packet or hop limit of an IPv6 packet.
ovs/action.go:185
↓ 9 callers
Function
ICMPType
ICMPType matches packets with the specified ICMP type matching typ.
ovs/match.go:580
↓ 9 callers
Function
NewDataPathService
NewDataPathService is a builder for the DataPathService. sudo is defined as a default option.
ovs/datapath.go:105
↓ 9 callers
Function
TransportSourceMaskedPort
TransportSourceMaskedPort matches packets with TCP source port matching a masked port range.
ovs/match.go:903
↓ 9 callers
Function
newClient
newClient is the internal Client constructor, used in tests.
ovsnl/client.go:48
↓ 8 callers
Function
ARPSourceProtocolAddress
ARPSourceProtocolAddress matches packets with an ARP source protocol address (SPA) IPv4 address or IPv4 CIDR block matching addr.
ovs/match.go:842
↓ 8 callers
Function
Conjunction
Conjunction associates a flow with a certain conjunction ID to match on more than one dimension across multiple set matches.
ovs/action.go:495
↓ 8 callers
Function
ConnectionTrackingMark
ConnectionTrackingMark matches a metadata associated with a connection tracking entry
ovs/match.go:1249
↓ 8 callers
Function
ModNetworkSource
ModNetworkSource modifies the source IPv4 address of a packet.
ovs/action.go:292
↓ 8 callers
Function
NeighborDiscoveryTarget
NeighborDiscoveryTarget matches packets with an IPv6 neighbor discovery target IPv6 address or IPv6 CIDR block matching ip.
ovs/match.go:701
↓ 8 callers
Function
OutputField
OutputField outputs the packet to the switch port described by the specified field. For example, when the `field` value is "in_port", the packet is ou
ovs/action.go:428
↓ 8 callers
Function
TunnelID
TunnelID returns a Match that matches the given ID exactly.
ovs/match.go:1458
↓ 8 callers
Method
UnmarshalText
UnmarshalText unmarshals flow text into a Flow.
ovs/flow.go:295
↓ 8 callers
Method
exec
exec executes an ExecFunc using 'ovs-ofctl'.
ovs/openflow.go:501
↓ 7 callers
Function
ArpOp
ArpOp matches packets based on their IPv6 label information, using the specified op.
ovs/match.go:1222
↓ 7 callers
Method
Close
Close closes the Client's generic netlink connection.
ovsnl/client.go:68
↓ 7 callers
Function
DataLinkVLAN
DataLinkVLAN matches packets with the specified VLAN ID matching vid.
ovs/match.go:194
↓ 7 callers
Method
Exec
(args ...string)
ovs/datapath.go:92
↓ 7 callers
Function
ICMP6Code
ICMP6Code matches packets with the specified ICMP type matching typ.
ovs/match.go:652
↓ 7 callers
Function
ICMPCode
ICMPCode matches packets with the specified ICMP code.
ovs/match.go:604
↓ 7 callers
Function
Learn
Learn dynamically installs a LearnedFlow.
ovs/action.go:702
↓ 7 callers
Function
Move
Move sets the value of the destination field to the value of the source field.
ovs/action.go:674
↓ 7 callers
Function
NewDataPathActions
NewDataPathActions returns an implementation of DataPathActions
ovs/proto_trace.go:59
↓ 7 callers
Function
Normal
Normal subjects the packet to the device's normal L2/L3 processing.
ovs/action.go:171
↓ 7 callers
Function
SetField
SetField overwrites the specified field with the specified value. If either string is empty, an error is returned.
ovs/action.go:597
↓ 7 callers
Function
StripVLAN
StripVLAN strips the VLAN tag from a packet, if one is present.
ovs/action.go:178
↓ 7 callers
Function
checkMatch
(re *regexp.Regexp, s string)
ovs/proto_trace.go:222
↓ 7 callers
Function
panicf
(format string, a ...interface{})
ovsdb/client.go:431
↓ 6 callers
Method
DumpPorts
DumpPorts retrieves statistics about all ports attached to the specified bridge.
ovs/openflow.go:235
↓ 6 callers
Function
ModDataLinkDestination
ModDataLinkDestination modifies the data link destination of a packet.
ovs/action.go:238
↓ 6 callers
Function
ModDataLinkSource
ModDataLinkSource modifies the data link source of a packet.
ovs/action.go:246
↓ 6 callers
Function
ModNetworkDestination
ModNetworkDestination modifies the destination IPv4 address of a packet.
ovs/action.go:284
↓ 6 callers
Function
NetworkProtocol
NetworkProtocol matches packets with the specified IP or IPv6 protocol number matching num. For example, specifying 1 when a Flow's Protocol is IPv4
ovs/match.go:516
↓ 6 callers
Function
TunnelIDWithMask
TunnelIDWithMask returns a Match with specified ID and mask.
ovs/match.go:1466
↓ 6 callers
Function
UDPDestinationMaskedPort
UDPDestinationMaskedPort matches packets with a UDP destination port matching a masked port range.
ovs/match.go:948
↓ 6 callers
Function
UDPSourceMaskedPort
UDPSourceMaskedPort matches packets with UDP source port matching a masked port range.
ovs/match.go:939
↓ 6 callers
Function
UnsetTCPFlag
UnsetTCPFlag unsets the specified TCPFlag. This helper should be used with TCPFlags.
ovs/match.go:1453
↓ 6 callers
Method
debugf
debugf prints a logging debug message when debugging is enabled.
ovs/client.go:202
↓ 6 callers
Function
errStr
errStr is a helper to return the string form of an error, even if the error is nil.
ovs/ovs_test.go:68
↓ 6 callers
Function
parseHexUint16
parseHexUint16 parses a uint16 value from a hexadecimal string.
ovs/matchparser.go:558
↓ 5 callers
Function
ARPSourceHardwareAddress
ARPSourceHardwareAddress matches packets with an ARP source hardware address (SHA) matching addr.
ovs/match.go:796
↓ 5 callers
Method
Close
Close closes a Client's connection and cleans up its resources.
ovsdb/client.go:165
↓ 5 callers
Method
Close
Close closes the connection.
ovsdb/internal/jsonrpc/conn.go:86
↓ 5 callers
Function
DataLinkVLANPCP
DataLinkVLANPCP matches packets with the specified VLAN PCP matching pcp.
ovs/match.go:230
↓ 5 callers
Function
FieldMatch
FieldMatch returns an fieldMatch.
ovs/match.go:1658
↓ 5 callers
Function
IPFrag
IPFrag returns an ipFragMatch.
ovs/match.go:1635
↓ 5 callers
Method
List
List lists all Datapaths in the kernel.
ovsnl/datapath.go:99
↓ 5 callers
Function
Local
Local outputs the packet on the local port, which corresponds to the network device that has the same name as the bridge.
ovs/action.go:164
↓ 5 callers
Function
ModTransportSourcePort
ModTransportSourcePort modifies the source port of a packet.
ovs/action.go:337
↓ 5 callers
Function
NeighborDiscoveryTargetLinkLayer
NeighborDiscoveryTargetLinkLayer matches packets with an IPv6 neighbor solicitation target link-layer address matching addr.
ovs/match.go:735
↓ 5 callers
Method
Receive
Receive receives a single JSON-RPC response.
ovsdb/internal/jsonrpc/conn.go:114
↓ 5 callers
Method
Send
Send sends a single JSON-RPC request.
ovsdb/internal/jsonrpc/conn.go:93
↓ 5 callers
Method
Stats
Stats returns a ClientStats with current statistics for the Client.
ovsdb/client.go:173
↓ 5 callers
Function
UnsetState
UnsetState unsets the specified CTState flag. This helper should be used with ConnectionTrackingState.
ovs/match.go:1350
↓ 5 callers
Function
flowsEqual
flowsEqual determines if two possible Flows are equal.
ovs/flow_test.go:1265
↓ 5 callers
Function
marshalActions
marshalActions marshals all provided Actions to their text form.
ovs/flow.go:477
↓ 4 callers
Method
AddFlowBundle
AddFlowBundle creates an Open vSwitch flow bundle and enables adding and removing flows to and from the specified bridge using a FlowTransaction. This
ovs/openflow.go:152
↓ 4 callers
Function
ConjunctionID
ConjunctionID matches flows that have matched all dimension of a conjunction inside of the openflow table.
ovs/match.go:467
↓ 4 callers
Method
Echo
Echo verifies that the OVSDB connection is alive, and can be used to keep the connection alive.
ovsdb/rpc.go:34
next →
1–100 of 571, ranked by callers