Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (8) — Plan9 4th Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dial(2)

listen(8)

TRAMPOLINE(8)

NAME

trampoline − forward incoming calls to another address

SYNOPSIS

­aux/trampoline [ ­-m9 ] ­addr [netdir]

DESCRIPTION

­Trampoline can be used in a service file (see listen(8)) to link an incoming call to another address that provides the service, typically on another machine.

­Trampoline dials ­addr and copies data between that connection and its own standard input and output.  Use the ­-9 option if the connection carries only unencrypted 9P messages, to allow ­trampoline to size its buffer automatically. 

Forwarding can be restricted to a particular calling machine, using the ­-m option.  ­Netdir must be the incoming call directory.  ­Trampoline finds the caller’s MAC address ­m and checks that ndb(6) contains an entry with ether=m and the attribute trampok.  If no such entry is found, the call is rejected. 

FILES

­/sys/log/trampoline
logs rejected calls

SOURCE

­/sys/src/cmd/aux/trampoline.c

SEE ALSO

dial(2), listen(8)

Plan 9  —  September 02, 2004

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026