MCPcopy Create free account

hub / github.com/danderson/goppp / functions

Functions34 in github.com/danderson/goppp

↓ 11 callersMethodClose
Close closes the PPPoE session.
pppoe/pppoe.go:154
↓ 6 callersMethodWrite
Write writes a packet to the PPPoE session.
pppoe/pppoe.go:190
↓ 5 callersMethodSetReadDeadline
SetReadDeadline sets the deadline for future Read operations.
pppoe/pppoe.go:201
↓ 4 callersMethodString
()
pppoe/pppoe.go:25
↓ 4 callersFunctioncloseSessionFd
(fd int)
pppoe/session.go:18
↓ 4 callersFunctionencodeDiscoveryPacket
encodeDiscoveryPacket marshals a PPPoE Discovery packet into raw bytes.
pppoe/discovery.go:330
↓ 4 callersFunctionparseDiscoveryPacket
parseDiscoveryPacket parses a PPPoE Discovery packet into a discoveryPacket.
pppoe/discovery.go:286
↓ 2 callersFunctioncanUseDocker
()
internal/testutil/util.go:14
↓ 1 callersFunctionCheckPrivilegeForContainerTests
CheckPrivilegeForContainerTests returns nil if Docker and raw socket based tests can be run.
internal/testutil/util.go:33
↓ 1 callersFunctionNew
New runs PPPoE discovery on the given interface, and creates a Conn that can send PPP frames on the resulting PPPoE session.
pppoe/pppoe.go:58
↓ 1 callersMethodRead
Read reads a packet from the PPPoE session.
pppoe/pppoe.go:185
↓ 1 callersFunctionStartServer
StartServer runs a PPP+PPPoE server in a Docker container. It returns a closer function (which should be defer-ed), or an error if server startup fail
internal/testutil/util.go:46
↓ 1 callersFunctioncanUseRawSockets
()
internal/testutil/util.go:19
↓ 1 callersMethodcloseOnPADT
()
pppoe/pppoe.go:125
↓ 1 callersFunctionconnectSessionFd
(fd int, ifName string, remote net.HardwareAddr, sessionID uint16)
pppoe/session.go:22
↓ 1 callersFunctionnewChannel
(sessionFd int)
pppoe/session.go:31
↓ 1 callersFunctionnewDiscoveryConn
newDiscoveryConn creates a net.PacketConn that can receive PPPoE discovery packets.
pppoe/discovery.go:117
↓ 1 callersFunctionnewSessionFd
Stolen from /usr/include/linux/if_pppox.h
pppoe/session.go:14
↓ 1 callersFunctionparsePADO
parsePADO parses a raw PADO packet and extracts the PPPoE cookie.
pppoe/discovery.go:161
↓ 1 callersFunctionparsePADS
(buf []byte)
pppoe/discovery.go:220
↓ 1 callersFunctionpppoeDiscovery
pppoeDiscovery executes PPPoE discovery and returns a PPPoE session ID.
pppoe/discovery.go:62
↓ 1 callersFunctionreadPADO
readPADO waits to receive a valid PPPoE Active Discovery Offer (PADO) packet, and returns relevant information from it.
pppoe/discovery.go:138
↓ 1 callersFunctionreadPADS
(ctx context.Context, conn net.PacketConn, concentrator net.Addr)
pppoe/discovery.go:193
↓ 1 callersFunctionreadPADT
(conn net.PacketConn, concentrator net.HardwareAddr, sessionID uint16)
pppoe/discovery.go:231
↓ 1 callersFunctionsendPADI
sendPADI broadcasts a PADI packet. While trivial, it's separated out so tests can invoke it.
pppoe/discovery.go:131
↓ 1 callersFunctionsendPADR
(conn net.PacketConn, concentrator net.Addr, cookie []byte)
pppoe/discovery.go:179
↓ 1 callersFunctionsendPADT
(conn net.PacketConn, concentrator net.HardwareAddr, sessionID uint16)
pppoe/discovery.go:263
MethodLocalAddr
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
pppoe/pppoe.go:143
MethodNetwork
()
pppoe/pppoe.go:24
MethodRemoteAddr
RemoteAddr returns the address of the connected PPPoE concentrator, as an *Addr.
pppoe/pppoe.go:149
MethodSetDeadline
SetDeadline sets both the read and write deadlines for future Read and Write operations.
pppoe/pppoe.go:196
MethodSetWriteDeadline
SetWriteDeadline sets the deadline for future Write operations.
pppoe/pppoe.go:206
FunctionTestNew
(t *testing.T)
pppoe/pppoe_test.go:12
FunctionTestParseDiscovery
(t *testing.T)
pppoe/discovery_test.go:9