Skip to content

Commit b6e26cb

Browse files
committed
datachannel: add instructions for SCTP dumping and the SNAP OT
1 parent a39042b commit b6e26cb

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

src/content/datachannel/basic/css/main.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,25 @@ textarea {
4141
padding: 5px;
4242
width: calc(100% - 10px);
4343
}
44+
div.infobox {
45+
background: #f9f9f9;
46+
border: 1px solid #ddd;
47+
border-left: 4px solid #d84a38;
48+
border-radius: 3px;
49+
margin: 1.5em 0;
50+
padding: 0 1em 1em 1em;
51+
}
52+
div.infobox h2 {
53+
margin-top: 0.75em;
54+
}
55+
div.infobox pre {
56+
background: #fff;
57+
border: 1px solid #eee;
58+
border-radius: 3px;
59+
overflow-x: auto;
60+
padding: 8px 10px;
61+
}
62+
div.infobox pre code {
63+
color: #444;
64+
font-size: 0.9em;
65+
}

src/content/datachannel/basic/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,34 @@ <h2>Receive</h2>
6464
href="http://www.html5rocks.com/en/tutorials/webrtc/basics/#toc-rtcdatachannel"
6565
title="RTCDataChannel section of HTML5 Rocks article about WebRTC">Getting Started With WebRTC</a>.</p>
6666

67+
<div id="snap" class="infobox">
68+
<h2>SNAP origin trial</h2>
69+
<p>From Chrome 151 to Chrome 156 until November 17th there is a SNAP origin trial which you can register
70+
for at <a
71+
href="https://developer.chrome.com/origintrials/#/view_trial/3793719736106221569"
72+
title="SNAP origin trial registration">the Chrome origin trials page</a>.
73+
This sample uses an origin trial token added in
74+
<a href="https://github.com/webrtc/samples/pull/1735"
75+
title="SNAP origin trial usage">webrtc/samples#1735</a>
76+
to experimentally enable SNAP.
77+
</p>
78+
</div>
79+
80+
<div id="sctpLogging" class="infobox">
81+
<h2>Inspecting SCTP traffic</h2>
82+
<p>To inspect the SCTP traffic, start Chrome with logging enabled:</p>
83+
<pre><code>chrome --enable-logging --v=1</code></pre>
84+
85+
<p>The logs are written to a file whose location depends on your platform; see <a
86+
href="https://support.google.com/chrome/a/answer/6271282?hl=en"
87+
title="Where to find Chrome logs">where to find Chrome logs</a>.</p>
88+
89+
<p>Then grep the Chrome logs for <code>SCTP_PACKET</code> and turn the result into a pcap
90+
with <a href="https://www.wireshark.org/docs/man-pages/text2pcap.html"
91+
title="text2pcap manual page"><code>text2pcap</code></a>:</p>
92+
<pre><code>text2pcap -D -u 1001,2001 -t %H:%M:%S.%f log.txt sctp.pcap</code></pre>
93+
</div>
94+
6795
<a href="https://github.com/webrtc/samples/tree/gh-pages/src/content/datachannel/basic"
6896
title="View source for this page on GitHub" id="viewSource">View source on GitHub</a>
6997
</div>

0 commit comments

Comments
 (0)