OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:DEFAULT_GW
(Results
1 - 2
of
2
) sorted by null
/external/ipsec-tools/src/racoon/samples/roadwarrior/client/
phase1-down.sh
11
DEFAULT_GW
=`netstat -rn | awk '($1 == "default"){print $2}'`
14
DEFAULT_GW
=`netstat -rn | awk '($1 == "0.0.0.0"){print $2}'`
23
echo "
DEFAULT_GW
= ${
DEFAULT_GW
}"
28
echo ${
DEFAULT_GW
} | grep '[0-9]' > /dev/null || exit 0
38
route add default ${
DEFAULT_GW
} -ifa ${LOCAL_ADDR}
45
route add default gw ${
DEFAULT_GW
}
phase1-up.sh
10
DEFAULT_GW
=`netstat -rn | awk '($1 == "default"){print $2}'`
13
DEFAULT_GW
=`netstat -rn | awk '($1 == "0.0.0.0"){print $2}'`
22
echo "
DEFAULT_GW
= ${
DEFAULT_GW
}"
27
echo ${
DEFAULT_GW
} | grep '[0-9]' > /dev/null || exit 0
38
route add default ${
DEFAULT_GW
} -ifa ${INTERNAL_ADDR4}
39
route add ${REMOTE_ADDR} ${
DEFAULT_GW
}
45
route add ${REMOTE_ADDR} gw ${
DEFAULT_GW
} dev ${if}
46
route add default gw ${
DEFAULT_GW
} dev ${if}:1
Completed in 529 milliseconds