Changes to the SLIP support files to show how to do proxy ARP.

This commit is contained in:
Nate Williams 1996-08-03 05:43:40 +00:00
parent 9a8104ec99
commit bba2eeca64
3 changed files with 27 additions and 4 deletions

View File

@ -1,10 +1,13 @@
# @(#)slip.hosts 8.1 (Berkeley) 6/6/93
#
# login local-addr remote-addr mask option(s)
#
# option(s) consist of the following: (see the sliplogin man page)
# (normal,compress,noicmp,autocomp)
# normal - no header compression
# compress - compress headers
# autocomp - compress heades if remote end allows it
# noicmp - disable ICMP packets (such as 'ping' or 'traceroute' packets)
#
#login local-address remote-address netmask option(s)
#------ ---------- ----------- ------- ---------
Schez vangogh chez 0xffffff00 compress
Sjun vangogh 128.32.130.36 0xffffff00 normal
Sleconte vangogh leconte 0xffffff00 compress

View File

@ -8,5 +8,11 @@
# 1 2 3 4 5 6 7-n
# slipunit ttyspeed loginname local-addr remote-addr mask opt-args
#
/sbin/ifconfig sl$1 inet $4 $5 netmask $6
# Delete any arp table entries for this site, just in case
/usr/sbin/arp -d $5
# Bringup the line
/sbin/ifconfig sl$1 inet $4 $5 netmask $6
# Answer ARP request for the SLIP client with our Ethernet addr
# XXX - Must be filled in with the ethernet address of the local machine
# /usr/sbin/arp -s $5 00:00:c0:50:b9:0a pub
exit

View File

@ -0,0 +1,14 @@
#!/bin/sh -
#
# slip.logout
#
# logout file for a slip line. sliplogin invokes this with
# the parameters:
# 1 2 3 4 5 6 7-n
# slipunit ttyspeed loginname local-addr remote-addr mask opt-args
#
/sbin/ifconfig sl$1 delete
# Remove the ARP table entry for the host
/usr/sbin/arp -d $5
exit