From 355654deb00f1c9e92382ed46febd36459976d4a Mon Sep 17 00:00:00 2001 From: nate Date: Sat, 3 Aug 1996 05:43:40 +0000 Subject: Changes to the SLIP support files to show how to do proxy ARP. --- share/examples/sliplogin/slip.hosts | 9 ++++++--- share/examples/sliplogin/slip.login | 8 +++++++- share/examples/sliplogin/slip.logout | 14 ++++++++++++++ 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 share/examples/sliplogin/slip.logout (limited to 'share/examples/sliplogin') 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 -- cgit v1.1