summaryrefslogtreecommitdiffstats
path: root/share/examples/sliplogin
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-08-03 05:43:40 +0000
committernate <nate@FreeBSD.org>1996-08-03 05:43:40 +0000
commit355654deb00f1c9e92382ed46febd36459976d4a (patch)
tree208e234df022d8fd63effee72f704a02bd8eaad9 /share/examples/sliplogin
parentc13a841e4105701ddb5f3d53af10f6761bfd0818 (diff)
downloadFreeBSD-src-355654deb00f1c9e92382ed46febd36459976d4a.zip
FreeBSD-src-355654deb00f1c9e92382ed46febd36459976d4a.tar.gz
Changes to the SLIP support files to show how to do proxy ARP.
Diffstat (limited to 'share/examples/sliplogin')
-rw-r--r--share/examples/sliplogin/slip.hosts9
-rw-r--r--share/examples/sliplogin/slip.login8
-rw-r--r--share/examples/sliplogin/slip.logout14
3 files changed, 27 insertions, 4 deletions
diff --git a/share/examples/sliplogin/slip.hosts b/share/examples/sliplogin/slip.hosts
index da6707d..9c6d4c0 100644
--- a/share/examples/sliplogin/slip.hosts
+++ b/share/examples/sliplogin/slip.hosts
@@ -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
diff --git a/share/examples/sliplogin/slip.login b/share/examples/sliplogin/slip.login
index 3c70095..8110228 100644
--- a/share/examples/sliplogin/slip.login
+++ b/share/examples/sliplogin/slip.login
@@ -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
diff --git a/share/examples/sliplogin/slip.logout b/share/examples/sliplogin/slip.logout
new file mode 100644
index 0000000..b27fe09
--- /dev/null
+++ b/share/examples/sliplogin/slip.logout
@@ -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
OpenPOWER on IntegriCloud