Documentation ¶
Overview ¶
Package pppoe creates a PPPoE session with a remote server.
Index ¶
- type Addr
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(b []byte) (int, error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetDeadline(deadline time.Time) error
- func (c *Conn) SetReadDeadline(deadline time.Time) error
- func (c *Conn) SetWriteDeadline(deadline time.Time) error
- func (c *Conn) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addr ¶
type Addr struct { // Interface is the name of the network interface over which the // PPPoE session is running. Interface string // SessionID is the session identifier for the PPPoE session. SessionID uint16 // HardwareAddr is the Ethernet address of the PPPoE endpoint. HardwareAddr net.HardwareAddr }
Addr is a PPPoE peer address.
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is a PPPoE connection.
func New ¶
New runs PPPoE discovery on the given interface, and creates a Conn that can send PPP frames on the resulting PPPoE session.
func (*Conn) LocalAddr ¶
LocalAddr returns the local address of the PPPoE connection. PPPoE Conns don't have an interesting local address to share, so this returns nil for now.
func (*Conn) RemoteAddr ¶
RemoteAddr returns the address of the connected PPPoE concentrator, as an *Addr.
func (*Conn) SetDeadline ¶
SetDeadline sets both the read and write deadlines for future Read and Write operations.
func (*Conn) SetReadDeadline ¶
SetReadDeadline sets the deadline for future Read operations.
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline sets the deadline for future Write operations.