Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) UpdateApplicationFlowMark(ipSrc, ipDst net.IP, protonum uint8, srcport, dstport uint16, newmark uint32) error
- func (c *Client) UpdateMark(ipSrc, ipDst net.IP, protonum uint8, srcport, dstport uint16, newmark uint32, ...) error
- func (c *Client) UpdateNetworkFlowMark(ipSrc, ipDst net.IP, protonum uint8, srcport, dstport uint16, newmark uint32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a flow update client
func (*Client) UpdateApplicationFlowMark ¶
func (c *Client) UpdateApplicationFlowMark(ipSrc, ipDst net.IP, protonum uint8, srcport, dstport uint16, newmark uint32) error
UpdateApplicationFlowMark will update the mark for a flow based on the packet information received from an application. It will use the forward entries of conntrack for that.
func (*Client) UpdateMark ¶
func (c *Client) UpdateMark(ipSrc, ipDst net.IP, protonum uint8, srcport, dstport uint16, newmark uint32, network bool) error
UpdateMark updates the mark of the flow. Caller must indicate if this is an application flow or a network flow.
func (*Client) UpdateNetworkFlowMark ¶
func (c *Client) UpdateNetworkFlowMark(ipSrc, ipDst net.IP, protonum uint8, srcport, dstport uint16, newmark uint32) error
UpdateNetworkFlowMark will update the mark for a flow based on packet information received from the network. It will use the reverse tables in conntrack for that.
Click to show internal directories.
Click to hide internal directories.