search for: prefix_to_mask

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

2000 Aug 21
0
Rewritten script /etc/init.d/tinc
...uot;**tinc: file with list of VPNs to start ($NETSFILE) not found!" >&2 exit fi # Load names of networks to be started NETS="$(sed -e 's/#.*//; s/[[:space:]]//g; /^$/ d' $NETSFILE)" ############################################################################## # prefix_to_mask Converts prefix length to netmask # eg. 17 -> 255.255.128.0 # $1 ... prefix function prefix_to_mask () { _MSK=""; _len="$1" for _dot in "." "." "." " "; do if [ ${_len} -ge 8 ]; then _fld=8 else...