Documentation ¶
Index ¶
- func SendWithOpts(driver *Driver, payload []byte, opts ...func(*layers.IPv4, *layers.TCP) error) error
- type Driver
- type RawConn
- func (c *RawConn) Close() error
- func (c *RawConn) Flush() error
- func (c *RawConn) GetSeq() uint32
- func (c *RawConn) LocalAddr() net.Addr
- func (c *RawConn) Read(b []byte) (n int, err error)
- func (c *RawConn) RemoteAddr() net.Addr
- func (c *RawConn) Send(opts gopacket.SerializeOptions, ls ...gopacket.SerializableLayer) error
- func (c *RawConn) SendWithOpts(payload []byte, opts ...func(*layers.IPv4, *layers.TCP) error) error
- func (c *RawConn) SetDeadline(t time.Time) error
- func (c *RawConn) SetReadDeadline(t time.Time) error
- func (c *RawConn) SetSeq(seq uint32)
- func (c *RawConn) SetWriteDeadline(t time.Time) error
- func (c *RawConn) Write(b []byte) (n int, err error)
- type TCP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct { DstMAC net.HardwareAddr // contains filtered or unexported fields }
func NewDriverManual ¶
type RawConn ¶
type RawConn struct {
// contains filtered or unexported fields
}
func (*RawConn) RemoteAddr ¶
RemoteAddr implements net.Conn.
func (*RawConn) Send ¶
func (c *RawConn) Send(opts gopacket.SerializeOptions, ls ...gopacket.SerializableLayer) error
func (*RawConn) SendWithOpts ¶
func (*RawConn) SetDeadline ¶
SetDeadline implements net.Conn.
func (*RawConn) SetReadDeadline ¶
SetReadDeadline implements net.Conn.
func (*RawConn) SetWriteDeadline ¶
SetWriteDeadline implements net.Conn.
Click to show internal directories.
Click to hide internal directories.