#!/bin/sh
#
# peerofif	Determines the IP address of the peer of the point-to-point
#		interface given on the commandline
#
# v1.0	15 July 1999
# v1.1	10 February 2001
#####

LC_ALL="C"
LANG="C"
LANGUAGE="C"
export LC_ALL LANG LANGUAGE

/sbin/ifconfig $1 | grep 'P-t-P:' | sed 's/.*P-t-P:\([0-9.]*\).*/\1/g' 
