Revision 1bdc9427 dnshook

b/dnshook
13 13
MAC2EUI64="/usr/bin/mac2eui64"
14 14

  
15 15
source /etc/default/snf-network
16
source /usr/lib/snf-network/common.sh
16 17

  
17 18
if [ -z "$SERVER" -o -z "$FZONE" -o ! -e "$KEYFILE" ]; then
18 19
  exit 0
......
211 212
}
212 213

  
213 214

  
214
# Because we do not have IPv6 value in our environment
215
# we caclulate it based on the NIC's MAC and the IPv6 subnet (if any)
216
# first argument MAC second IPv6 subnet
217
# Changes global value EUI64
218
get_eui64 () {
219

  
220
  local mac=$1
221
  local prefix=$2
222

  
223
  if [ -z "$prefix" ]; then
224
    EUI64=
225
  else
226
    EUI64=$($MAC2EUI64 $MAC $SUBNET6)
227
  fi
228

  
229
}
230

  
231

  
232 215
# Main starts here
233 216

  
234 217

  

Also available in: Unified diff