search for: mac_to_ip

Displaying 1 result from an estimated 1 matches for "mac_to_ip".

2002 Nov 15
1
MAC Server support
...rewall-1.3.10/firewall /usr/lib/shorewall/firewall 584a585,595 > # Translate a arp address to IP using ARP table # > # Makes a Warning if the ARP is not in ARP table > # Example: ~01-02-03-04-05-06 # > mac_to_ip() # $1 = MAC address formated as in mac_match > { > macaddr=`echo $1 | sed ''s/~//;s/-/:/g''` > echo `arp -a | grep $macaddr |sed ''s/.*(\([0-9]*.[0-9]*.[0-9]*.[0-9]*\)).*/\1/''` > } > > > 1843a1855,1863 > ~*) >...