Home
last modified time | relevance | path

Searched +full:- +full:ntp (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/external/scapy/test/scapy/layers/
Dntp.uts1 % NTP regression tests for Scapy
9 = specific haslayer and getlayer implementations for NTP
10 ~ haslayer getlayer NTP
12 assert NTP in pkt
13 assert pkt.haslayer(NTP)
14 assert isinstance(pkt[NTP], NTPHeader)
15 assert isinstance(pkt.getlayer(NTP), NTPHeader)
19 + NTP module tests
21 = NTP - Layers (1)
26 assert NTP in p
[all …]
/external/webrtc/docs/native-code/rtp-hdrext/abs-capture-time/
DREADME.md3 The Absolute Capture Time extension is used to stamp RTP packets with a NTP
6 audio-to-video synchronization when RTCP-terminating intermediate systems (e.g.
13 <http://www.webrtc.org/experiments/rtp-hdrext/abs-capture-time>
25 Data layout of the shortened version of `abs-capture-time` with a 1-byte header
30 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
31 | ID | len=7 | absolute capture timestamp (bit 0-23) |
32 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
33 | absolute capture timestamp (bit 24-55) |
34 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
35 | ... (56-63) |
[all …]
/external/webrtc/api/
Drtp_headers.h4 * Use of this source code is governed by a BSD-style license
31 // https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01
34 // Include feedback of received packets in the range [sequence_number -
40 // The Absolute Capture Time extension is used to stamp RTP packets with a NTP
43 // accomplish audio-to-video synchronization when RTCP-terminating intermediate
45 // http://www.webrtc.org/experiments/rtp-hdrext/abs-capture-time
47 // Absolute capture timestamp is the NTP timestamp of when the first frame in
49 // clock as the clock used to generate NTP timestamps for RTCP sender reports
52 // It’s not always possible to do an NTP clock readout at the exact moment of
58 // This field is encoded as a 64-bit unsigned fixed-point number with the high
[all …]
/external/google-cloud-java/owl-bot-postprocessor/synthtool/gcp/templates/java_library/.kokoro/
Dbuild.sh8 # http://www.apache.org/licenses/LICENSE-2.0
16 set -eo pipefail
27 mvn -version
32 mvn install -B -V -ntp \
33 -DskipTests=true \
34 -Dclirr.skip=true \
35 -Denforcer.skip=true \
36 -Dmaven.javadoc.skip=true \
37 -Dgcloud.download.skip=true \
38 -T 1C
[all …]
/external/webrtc/modules/rtp_rtcp/include/
Dremote_ntp_time_estimator.h4 * Use of this source code is governed by a BSD-style license
26 // RemoteNtpTimeEstimator can be used to estimate a given RTP timestamp's NTP
38 // new NTP time <-> RTP timestamp mapping from an RTCP sender report.
43 // Estimates the NTP timestamp in local timebase from `rtp_timestamp`.
44 // Returns the NTP timestamp in ms when success. -1 if failed.
48 return -1; in Estimate()
53 // Estimates the NTP timestamp in local timebase from `rtp_timestamp`.
58 // local one. This is equal to local NTP clock - remote NTP clock.
59 // The offset is returned in ntp time resolution, i.e. 1/2^32 sec ~= 0.2 ns.
/external/google-auth-library-java/.kokoro/
Dbuild.sh8 # http://www.apache.org/licenses/LICENSE-2.0
16 set -eo pipefail
27 mvn -version
32 mvn install -B -V -ntp \
33 -DskipTests=true \
34 -Dclirr.skip=true \
35 -Denforcer.skip=true \
36 -Dmaven.javadoc.skip=true \
37 -Dgcloud.download.skip=true \
38 -T 1C
[all …]
/external/webrtc/modules/rtp_rtcp/source/
Dtime_util.h4 * Use of this source code is governed by a BSD-style license
22 // Helper function for compact ntp representation:
25 // the Network Time Protocol (NTP).
30 inline uint32_t CompactNtp(NtpTime ntp) { in CompactNtp() argument
31 return (ntp.seconds() << 16) | (ntp.fractions() >> 16); in CompactNtp()
34 // Converts interval to compact ntp (1/2^16 seconds) resolution.
38 // Convert interval to the NTP time resolution (1/2^32 seconds ~= 0.2 ns).
49 // Converts interval from compact ntp (1/2^16 seconds) resolution to TimeDelta.
Dtime_util_unittest.cc4 * Use of this source code is governed by a BSD-style license
31 int64_t ms_diff = ntp2.ToMs() - ntp1.ToMs(); in TEST()
32 uint32_t ntp_diff = CompactNtp(ntp2) - CompactNtp(ntp1); in TEST()
40 int64_t ms_diff = ntp2.ToMs() - ntp1.ToMs(); in TEST()
42 // While ntp2 > ntp1, there compact ntp presentation happen to be opposite. in TEST()
47 uint32_t ntp_diff = CompactNtp(ntp2) - CompactNtp(ntp1); in TEST()
54 int64_t ms_diff = ntp2.ToMs() - ntp1.ToMs(); in TEST()
55 // Ntp difference close to 2^15 seconds should convert correctly too. in TEST()
56 ASSERT_NEAR(ms_diff, ((1 << 15) - 1) * 1000, 1); in TEST()
57 uint32_t ntp_diff = CompactNtp(ntp2) - CompactNtp(ntp1); in TEST()
[all …]
Dremote_ntp_time_estimator_unittest.cc4 * Use of this source code is governed by a BSD-style license
28 ToNtpUnits(kLocalClockInitialTime - kRemoteClockInitialTime);
44 NtpTime ntp = remote_clock_.CurrentNtpTime(); in SendRtcpSr() local
47 RTC_DCHECK(estimator_.UpdateRtcpTimestamp(kTestRtt, ntp, rtcp_timestamp)); in SendRtcpSr()
53 NtpTime ntp(static_cast<uint64_t>(remote_clock_.CurrentNtpTime()) + in SendRtcpSrInaccurately() local
56 RTC_DCHECK(estimator_.UpdateRtcpTimestamp(kTestRtt, ntp, rtcp_timestamp)); in SendRtcpSrInaccurately()
79 const int64_t kNotEnoughRtcpSr = -1; in TEST_F()
111 /*networking_delay=*/TimeDelta::Millis(-1)); in TEST_F()
113 SendRtcpSrInaccurately(/*ntp_error=*/TimeDelta::Millis(-2), in TEST_F()
/external/rust/android-crates-io/crates/grpcio-sys/grpc/tools/internal_ci/macos/
Dgrpc_run_bazel_isolated_tests.sh8 # http://www.apache.org/licenses/LICENSE-2.0
16 set -ex
28 # Re-enable the test (change "bazel build" to "bazel test") once it's passing reliably.
31 tools/bazel build $RUN_TESTS_FLAGS --genrule_strategy=local --test_output=all --copt="-DGRPC_CFSTRE…
33 # Missing the /var/db/ntp-kod file may breaks the ntp synchronization.
34 # Create the file and change the ownership to root before NTP sync.
35 # TODO(yulin-liang): investigate how to run time_jump_test without needing to mess with the system …
37 sudo touch /var/db/ntp-kod
38 sudo chown root:wheel /var/db/ntp-kod
40 # NTP sync before exiting. Bazel gets confused if test end time < start time.
[all …]
/external/grpc-grpc/tools/internal_ci/macos/
Dgrpc_run_bazel_isolated_tests.sh8 # http://www.apache.org/licenses/LICENSE-2.0
16 set -ex
28 # Re-enable the test (change "bazel build" to "bazel test") once it's passing reliably.
31 tools/bazel build $RUN_TESTS_FLAGS --genrule_strategy=local --test_output=all --copt="-DGRPC_CFSTRE…
33 # Missing the /var/db/ntp-kod file may breaks the ntp synchronization.
34 # Create the file and change the ownership to root before NTP sync.
35 # TODO(yulin-liang): investigate how to run time_jump_test without needing to mess with the system …
37 sudo touch /var/db/ntp-kod
38 sudo chown root:wheel /var/db/ntp-kod
40 # NTP sync before exiting. Bazel gets confused if test end time < start time.
[all …]
/external/openscreen/cast/streaming/
Dntp_time.h2 // Use of this source code is governed by a BSD-style license that can be
15 // NTP timestamps are 64-bit timestamps that consist of two 32-bit parts: 1) The
17 // where 0 maps to 0x00000000 and each unit increment represents another 2^-32
20 // Note that it is part of the design of NTP for the seconds part to roll around
24 // NTP fixed-point time math: Declare two std::chrono::duration types with the
25 // bit-width necessary to reliably perform all conversions to/from NTP format.
47 // conversions. Thus, to avoid introducing unintended timing-related behaviors,
48 // only one NtpTimeConverter instance should be used for converting all the NTP
62 // approximately the same time point on the NTP timeline. Note that it is
63 // acceptable for the granularity of the NTP seconds value to be whole seconds
/external/webrtc/system_wrappers/source/
Dntp_time_unittest.cc4 * Use of this source code is governed by a BSD-style license
28 NtpTime ntp; in TEST() local
29 EXPECT_FALSE(ntp.Valid()); in TEST()
33 NtpTime ntp(kNtpSec, kNtpFrac); in TEST() local
34 EXPECT_TRUE(ntp.Valid()); in TEST()
35 ntp.Reset(); in TEST()
36 EXPECT_FALSE(ntp.Valid()); in TEST()
40 NtpTime ntp; in TEST() local
41 ntp.Set(kNtpSec, kNtpFrac); in TEST()
42 EXPECT_EQ(kNtpSec, ntp.seconds()); in TEST()
[all …]
Drtp_to_ntp_estimator_unittest.cc4 * Use of this source code is governed by a BSD-style license
33 -kTimestampTicksPerMs), in TEST()
66 0xFFFFFFFF - 2 * kTimestampTicksPerMs), in TEST()
69 0xFFFFFFFF - kTimestampTicksPerMs), in TEST()
74 EXPECT_EQ(estimator.Estimate(0xFFFFFFFF - 2 * kTimestampTicksPerMs), in TEST()
91 EXPECT_FALSE(estimator.Estimate(0xFFFFFFFF - kTimestampTicksPerMs).Valid()); in TEST()
119 uint32_t timestamp = 0xFFFFFFFF - 0xFFFFF; in TEST()
121 for (int i = 0; i < RtpToNtpEstimator::kMaxInvalidSamples - 1; ++i) { in TEST()
146 NtpTime ntp(0, 699925050); in TEST() local
149 EXPECT_EQ(estimator.UpdateMeasurements(ntp, timestamp), in TEST()
[all …]
Drtp_to_ntp_estimator.cc4 * Use of this source code is governed by a BSD-style license
25 // Maximum number of RTCP SR reports to use to map between RTP and NTP.
27 // Don't allow NTP timestamps to jump more than 1 hour. Chosen arbitrary as big
28 // enough to not affect normal use-cases. Yet it is smaller than RTP wrap-around
29 // half-period (90khz RTP clock wrap-arounds every 13.25 hours). After half of
30 // wrap-around period it is impossible to unwrap RTP timestamps correctly.
61 double normalized_x = x(m) - avg_x; in UpdateParameters()
62 double normalized_y = y(m) - avg_y; in UpdateParameters()
67 if (std::fabs(variance_x) < 1e-8) in UpdateParameters()
71 double b = avg_y - k * avg_x; in UpdateParameters()
[all …]
/external/webrtc/system_wrappers/include/
Drtp_to_ntp_estimator.h4 * Use of this source code is governed by a BSD-style license
25 // Converts an RTP timestamp to the NTP domain.
26 // The class needs to be trained with (at least 2) RTP/NTP timestamp pairs from
38 // Updates measurements with RTP/NTP timestamp pair from a RTCP sender report.
39 UpdateResult UpdateMeasurements(NtpTime ntp, uint32_t rtp_timestamp);
41 // Converts an RTP timestamp to the NTP domain.
49 // Estimated parameters from RTP and NTP timestamp pairs in `measurements_`.
57 // RTP and NTP timestamp pair from a RTCP SR report.
Dclock.h4 * Use of this source code is governed by a BSD-style license
25 // January 1970, in NTP seconds.
28 // Magic NTP fractional unit.
41 // Retrieve an NTP absolute timestamp (with an epoch of Jan 1, 1900).
45 // Converts between a relative timestamp returned by this clock, to NTP time.
51 // Returns an instance of the real-time system clock implementation.
/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Drrtr.h4 * Use of this source code is governed by a BSD-style license
41 void SetNtp(NtpTime ntp) { ntp_ = ntp; } in SetNtp() argument
43 NtpTime ntp() const { return ntp_; } in ntp() function
50 return rrtr1.ntp() == rrtr2.ntp();
/external/tcpdump/tests/
Dahcp-vv.out1 …1 2013-11-10 07:59:42.537363 IP6 (class 0xc0, hlim 1, next-header UDP (17) payload length: 60) fe…
4 Origin Time: 2013-11-10 07:59:42 UTC
9 NTP Server
10 …2 2013-11-10 07:59:42.589548 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload length: 193) …
13 Origin Time: 2013-11-10 07:59:44 UTC
18NTP Server: ::ffff:195.234.155.124, ::ffff:78.156.97.78, ::ffff:80.71.132.103, ::ffff:83.151.158.44
19 My-IPv4-Address: 10.0.0.80
20 …3 2013-11-10 07:59:42.589691 IP6 (class 0xc0, hlim 1, next-header UDP (17) payload length: 56) fe…
23 Origin Time: 2013-11-10 07:59:42 UTC
28 NTP Server
[all …]
DQinQpacketv.out1-10-07 15:55:17.641254 00:08:5d:23:0c:3f > ff:ff:ff:ff:ff:ff, ethertype 802.1Q-QinQ (0x88a8), leng…
2 …2 2010-10-07 15:55:25.441414 00:08:5d:23:0c:3f > ff:ff:ff:ff:ff:ff, ethertype 802.1Q-QinQ (0x88a8…
4 Client-Ethernet-Address 00:08:5d:23:0c:3f
5 Vendor-rfc1048 Extensions
7 DHCP-Message (53), length 1: Discover
9 Parameter-Request (55), length 9:
10 Subnet-Mask (1), Default-Gateway (3), Domain-Name-Server (6), NTP (42)
11 Vendor-Option (43), Time-Zone (2), TFTP (66), Unknown (159)
14 Vendor-Class (60), length 18: "AastraIPPhone6731i"
15 …3 2010-10-07 15:55:29.441370 00:08:5d:23:0c:3f > ff:ff:ff:ff:ff:ff, ethertype 802.1Q-QinQ (0x88a8…
[all …]
DTESTLIST1 # The options -# and -n are useless in TESTLIST. They are already set
6 # We cannot rely on, for example, "print-x.out" and
7 # "print-X.out" being different files - we might be running
8 # this on a case-insensitive file system, e.g. a Windows
9 # file system or a case-insensitive HFS+ file system on
12 # Therefore, for "X" and "XX", we have "print-capX.out"
13 # and "print-capXX.out".
15 print-x print-flags.pcap print-x.out -x
16 print-xx print-flags.pcap print-xx.out -xx
17 print-X print-flags.pcap print-capX.out -X
[all …]
Ddcb_qcn.out1 …1 2013-08-05 06:05:15.631413 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17),…
3 Client-Ethernet-Address 08:00:27:46:e8:84
4 Vendor-rfc1048 Extensions
6 DHCP-Message (53), length 1: Discover
7 Parameter-Request (55), length 17:
8 Subnet-Mask (1), BR (28), Time-Zone (2), Classless-Static-Route (121)
9 Domain-Name (15), Domain-Name-Server (6), Hostname (12), YD (40)
10 YS (41), NTP (42), MTU (26), Unknown (119)
11 …Default-Gateway (3), Classless-Static-Route (121), Classless-Static-Route-Microsoft (249), Unknown…
12 NTP (42)
[all …]
/external/sdk-platform-java/.github/workflows/
Dci.yaml4 - main
11 runs-on: ubuntu-22.04
16 - uses: actions/checkout@v3
17 - uses: actions/setup-java@v3
19 java-version: ${{ matrix.java }}
22 - run: java -version
23 - name: Unit Tests
25 mvn test --batch-mode --no-transfer-progress -Dcheckstyle.skip \
26 -Dfmt.skip -DenableTestCoverage
27 - run: bazelisk version
[all …]
/external/scapy/scapy/layers/
Dntp.py1 # SPDX-License-Identifier: GPL-2.0-only
7 NTP (Network Time Protocol).
65 # seconds between 01-01-1900 and 01-01-1970
68 # include/ntp.h
88 This field handles the timestamp fields in the NTP header.
96 return "--"
102 time.gmtime(int(val - _NTP_BASETIME))
119 # NTP
139 6: "NTP control message",
149 "PPS ": "Generic pulse-per-second",
[all …]
/external/tcpdump/
Dprint-ntp.c22 * loosely based on print-bootp.c
25 /* \summary: Network Time Protocol (NTP) printer */
30 * RFC 1119 - NTPv2
31 * RFC 1305 - NTPv3
32 * RFC 5905 - NTPv4
37 #include "netdissect-stdinc.h"
43 #include "ntp.h"
46 * Based on ntp.h from the U of MD implementation
47 * This file is based on Version 2 of the NTP spec (RFC1119).
53 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
[all …]

12345678910>>...18