[Git][NTPsec/ntpsec][master] Feature: ntpdate option to bind to source IP
Gary E. Miller (@garyedmundsmiller)
gitlab at mg.gitlab.com
Tue Apr 2 21:18:26 UTC 2024
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
b5252d17 by Chris Walker at 2024-04-02T21:13:53+00:00
Feature: ntpdate option to bind to source IP
- - - - -
1 changed file:
- attic/ntpdate
Changes:
=====================================
attic/ntpdate
=====================================
@@ -23,6 +23,7 @@
# -B -s -q slew time adjustments
# -d -d -d debugging mode (implies -q)
# -e N.N -q authdelay
+# -I IP -I IP Bind to specific Source IP for requests
# -k file -k file -k file key file
# -o N -q NTP Protocol version
# -p N -q How many samples to take
@@ -51,6 +52,7 @@ print_help() {
echo " -a N Specify key number for authentication"
echo " -b Force time step"
echo " -B Force time slew"
+ echo " -I IP Bind to specific Source IP for requests"
echo " -k FILE Specify key file"
echo " -q Query only"
echo " -s Log to syslog"
@@ -64,7 +66,7 @@ TIMEOUT="-t 1"
setclock=yes
echo=no
log=no
-while getopts 46a:bBde:hk:no:p:qst:uv opt
+while getopts 46a:bBde:hI:k:no:p:qst:uv opt
do
case $opt in
4) PASSTHROUGH="$PASSTHROUGH -4";;
@@ -75,6 +77,7 @@ do
d) PASSTHROUGH="$PASSTHROUGH -d";;
e) echo "ntpdate: -e is no longer supported." >&2;;
h) print_help; exit;;
+ I) PASSTHROUGH="$PASSTHROUGH -I $OPTARG";;
k) PASSTHROUGH="$PASSTHROUGH -k $OPTARG";;
n) echo=yes;; # Echo generated command, don't execute
o) echo "ntpdate: -o is no longer supported." >&2;;
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/b5252d1720e15da19bd25a1eeb4c950c0fe411ba
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/b5252d1720e15da19bd25a1eeb4c950c0fe411ba
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20240402/a0605776/attachment-0001.htm>
More information about the vc
mailing list