File: bcofif

package info (click to toggle)
ipmasq 3.4.4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 300 kB
  • ctags: 3
  • sloc: sh: 281; makefile: 48
file content (11 lines) | stat: -rwxr-xr-x 222 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# bcofif	Determines the IP broadcast address of the interface
#		given on the commandline
#
# v1.0	15 July 1999
#####

export LC_ALL="C"

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