slattach
—
???ꥢ???饤?????ͥåȥ?????ե??????˳??????Ƥ?
slattach
[-a
]
[-c
] [-e
exit-command] [-f
]
[-h
] [-l
]
[-n
] [-z
]
[-L
] [-r
redial-command] [-s
baudrate] [-u
unit-command] [-K
keepalive] [-O
outfill] [-S
unit] ttyname
slattach
?桼?ƥ????ƥ??ϡ?
???ꥢ???ݡ??Ȥ??ͥåȥ?????ե??????˳??????Ƽ?ʬ????????
???ɥ쥹?????????뤿???˻??Ѥ????ޤ???
???Ѳ?ǽ?ʥ??ץ??????ϰʲ??ΤȤ????Ǥ?:
-a
- VJ ?إå????̤???ư???Ĥ??ޤ???
???????꤬ VJ
?إå????̲?ǽ?ʻ??????????Ѥ????????Ǥʤ?????
ɸ???إå??????Ѥ??ޤ???
-c
- VJ ?إå????̤????ꤷ?ޤ???
????ξü?? VJ
?إå????̤????ѤǤ??ʤ?????
?ʤ??ʤ????Ȥ????դ??Ƥ?????????
-e
exit-command
slattach
????λ???????˥???????
‘sh -c
exit-command
’
?Τ褦?˸ƤӽФ????륳?ޥ??ɤ????ꤷ?ޤ???
-f
slattach
???Хå????饦???ɤ?ư?????????? daemon()
?θƤӽФ????Ԥ??ޤ?????
-h
- cts/rts
?ˤ??륷?ꥢ???Υե?????????ͭ???ˤ??ޤ???
̵???????ˤϡ??ե????????ϥ??ݡ??Ȥ????ޤ?????
-l
- slip ?ݡ??ȤΥ??ǥ????? (CLOCAL)
??̵???ˤ??????ꥢ???Ф?̵?뤷?ޤ???
̵???????ˤϡ??????ꥢ????????????
redial-command
???ƤӽФ??ޤ?????
redial-command
?????ꤵ???Ƥ??ʤ?????
slattach
?Ͻ?λ???ޤ???
-n
- ICMP ?ѥ??åȤ??ΤƤޤ??? slip
???ե??????? ICMP
?쥹?ݥˤ??륷?ꥢ???饤?????ٱ????ɻߤ????褦
ICMP ?ѥ??åȤ?̵?뤷?ޤ???
-r
redial-command
- ???ꥢ???饤???Υ????ꥢ???????줿???˥???????
‘
sh -c
redial-command
’
?Τ褦?˸ƤӽФ????륳?ޥ??ɤ????ꤷ?ޤ???
redial-command ?Ȥ??ƶ?????????
(???ʤ??? -r
“”)
???뤳?Ȥǡ????????dz??????ޥ??ɤ??¹Ԥ????˺???³?????ߤޤ???
-s
baudrate
- ??³®?٤????ꤷ?ޤ??????Υ??ץ??????ꤵ???ʤ??????ˤϡ?
9600 bps ?ˤʤ??ޤ???
-u
unit-command
- ???ꥢ???饤???? slip ???ڤ??ؤ??ä?????
“
sh -c
unit-command old
new” ???¹Ԥ????ޤ???
old ?? new
?Ϥ??줾?? slip
?κǸ??˥????ץ줿???Υ??˥å??ֹ??ȸ??ߤΥ??ͥ?????????
???˥å??ֹ??Ǥ???
???Υ??˥å??ֹ??? 2 ?İʾ??? slip
?饤???????Ѥ????Х?????????????
?ѹ????뤳?Ȥ??????ޤ???
slattach
????³???????Ƴ?Ω???줿?Ȥ???
“sh -c
unit-command -1
new” ???¹Ԥ????ޤ???
slattach
????³???ڤ줿?Ȥ??? “sh
-c
unit-command old -1”
???¹Ԥ????ޤ??? slattach
?桼?ƥ????ƥ??ϡ????˥å??ֹ椬?ѹ?????
“-u
unit-command”
?????ꤵ???ʤ??Ȥ???λ???ޤ???
-z
- ???ϻ??˥????ꥢ?ˤ???????̵??
redial-command
?Υ????????????Ԥ??ޤ???
-L
- uucp?????ΥǥХ??????å????Ԥ??ޤ???
¾?? uucp ???å????Ԥ??ץ??????फ??
slattach
?Ϥ????????ʳ??ϡ????Υ??ץ???????ɬ?פǤ???
?ǥե????ȤǤϤ??Τ褦?ʥץ????????λ??Ѥ??ͤ?
uucp ???å??ޤ?????
-K
keepalive
- SLIP "keep alive"
?????ॢ???Ȼ??֤???ñ?̤????ꤷ?ޤ???
FRAME_END
?????λ??????˼????Ǥ??ʤ?????????³???Ԥ????ޤ???
??ά???ϥ????ॢ???Ȥ????ꤵ???ޤ?????
-O
outfill
- SLIP "out fill"
?????ॢ???Ȼ??֤???ñ?̤????ꤷ?ޤ???
?????ˤ??ꡢ????¦?? "keep alive"
?????ॢ???Ȥ?ɬ?פ? FRAME_END
?λ??????????????ޤ???
??ά???ϥ????ॢ???Ȥ????ꤵ???ޤ?????
-S
unit
- SLIP
???˥å??ֹ???ľ?ܻ??ꤷ?ޤ??? 2
?ĤΥ??ե???????Ʊ?????˥å??ֹ??ˤʤ??ʤ????????å??ʤ??Τǡ?
???դ?ɬ?פǤ???
??ά????ưŪ?˥??˥å??ֹ??????????Ƥޤ???
- ttyname
- tty?ǥХ?????̾???????ꤷ?ޤ???
ttyname ??
‘
ttyXX
’ ??
‘/dev/ttyXX
’
?η????ǵ??Ҥ??ޤ???
?ܥ??ޥ??ɤ??Ѥ??ƥ??ꥢ???ݡ??Ȥ??ͥåȥ?????ե???????
???????Ƥ뤳?Ȥ????????Τϥ????ѥ桼???˸¤????ޤ???
?ͥåȥ?????ե??????γ??????Ƥ??????????????ϡ?
slattach
?ץ???????
‘kill -INT
’ ???Ȥä? kill
???????? “ifconfig interface-name
down
” ???¹Ԥ??Ƥ?????????
Interface-name ??
netstat(1)
?Ǹ??뤳?Ȥ??????ޤ???
slattach
???ꥢ?ä????˥????????뤹???褦?????ꤹ???ˤϡ?
-r
redial-command
???ץ????????Ȥä? slip
?????Ф˺???³???륹?????ץȤ????ޥ??ɤ????ꤷ?ޤ???
???????ץȤϥ????Ф˥????????뤷?????????褦?ʤ??ΤǤ???
slip???˥å??ֹ椬?Ѥ??ä????˥ͥåȥ?????ե????????ƹ????????ˤϡ?
-u
unit-command
???ץ??????????Ѥ??? ‘sh -c
unit-command old new
’
?Τ褦?˸ƤӽФ??????????ץȤ????ޥ??ɤ????ꤷ?ޤ???
old ?? new
?Ϻ???³?????? slip ???˥å??ֹ??Ǥ???
Ʊ???? 2
?İʾ??Υ饤???????Ǥ????Ƥ????Ȥ????˥å??ֹ椬
?Ѥ?????ǽ?????????ޤ???
?ǽ??κ???³?????????? slip
?????־????????˥å??ֹ??????????ޤ???
slattach
?? kill ?????ˤϡ?tty
?????????Ƥ??齪λ?????褦??
‘kill -INT
’
(SIGINT)?????Ѥ??ޤ???
????Ū?˥????????뤹???ˤϡ?
‘kill -HUP
’ ?????Ѥ?
slattach
???????ꥢ?ä??褦?˻פ碌??
‘sh -c
redial-command
’
?ǥ????Ф˺???³?????ޤ???
slattach
?????ǥ???ͳ?Ǥʤ?ľ???ǻ??Ѥ??????硢slip
?饤???Υ????ꥢ??̵?뤹?뤿????
-l
???ץ??????դ??Ǽ¹Ԥ??ޤ???
slattach ttyd8
slattach -s 4800 /dev/ttyd1
slattach -c -s 38400 /dev/cuaa1
slattach -r 'kermit -y dial.script >kermit.log 2>&1'
???顼???å??????? /var/log/messages
?ˤ????ޤ? (slattach
?ϥǡ??????Ǥ?)??
???ꤷ???ͥåȥ?????ե?????????λ???ʤ???
?ᤵ?줿???ɥ쥹???ߤĤ????ʤ??????¤Τʤ??桼????
?ͥåȥ?????ե??????????????ѹ????褦?Ȥ??????Ȥ??????å???????
?????˵?Ͽ?????ޤ??? slattach
?桼?ƥ????ƥ???ü???????????????μ??Ԥ䡢
?????ʥ??ϥ??ɥ?????Ͽ?μ??ԤϿ???ޤ???
???ͥ??????ϻ??ȥ????????????? tty
̾?Ȳ???®?٤???Ͽ???졢 ??λ???? tty
̾????Ͽ?????ޤ???
- /var/run/slattach.<tty>.pid
- ???? tty ?? tty ̾
???֤??????????ޤ??? ???Υե??????ˤ?
slattach
?Υץ??????ֹ椬?ޤޤ졢
slattach
?˥????ʥ??????륹?????ץȤdzΤ????뤳?Ȥ??Ǥ??ޤ???
- /usr/share/examples/slattach/*
-
slattach
?桼?ƥ????ƥ???
4.3BSD
?ǤϤ??????о줷?ޤ?????