trireme-lib: go.aporeto.io/trireme-lib/controller/internal/enforcer/nfqdatapath/afinetrawsocket Index | Files

package afinetrawsocket

import "go.aporeto.io/trireme-lib/controller/internal/enforcer/nfqdatapath/afinetrawsocket"

Index

Package Files

afinetrawsocket.go

Constants

const (
    // RawSocketMark is the mark asserted on all packet sent out of this socket
    RawSocketMark = 0x63
    // NetworkRawSocketMark is the mark on packet egressing
    //the raw socket coming in from network
    NetworkRawSocketMark = 0x40000063
    //ApplicationRawSocketMark is the mark on packet egressing
    //the raw socket coming from application
    ApplicationRawSocketMark = 0x40000062
)

type SocketWriter Uses

type SocketWriter interface {
    WriteSocket(buf []byte) error
    CloseSocket() error
}

SocketWriter interface exposes an interface to write and close sockets

func CreateSocket Uses

func CreateSocket(mark int, deviceName string) (SocketWriter, error)

CreateSocket returns a handle to SocketWriter interface

Package afinetrawsocket imports 2 packages (graph) and is imported by 4 packages. Updated 2018-11-15. Refresh now. Tools for package owners.