SCTP: Parse destination port
See original GitHub issueIt seems the destination port is not parsed from the SDP. This is how my offer looks like:
{
"type":"offer",
"sdp":"v=0\r\no=sdpartanic-rawrtc-0.2.1 1371244329 1 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=ice-options:trickle\r\na=group:BUNDLE rawrtc-sctp-dc\r\nm=application 9 DTLS\/SCTP 6000\r\nc=IN IP4 0.0.0.0\r\na=mid:rawrtc-sctp-dc\r\na=sendrecv\r\na=ice-ufrag:KH0HgbiF8NhcfZj8\r\na=ice-pwd:baklGzPiRBxlhfUq3Dm1fvNiqM1r28fM\r\na=setup:actpass\r\na=fingerprint:sha-256 36:13:5E:68:CB:C9:D0:43:9C:C5:32:41:F4:47:04:3F:E2:84:3A:AB:0E:78:02:FD:37:51:9F:32:10:D1:14:A2\r\na=tls-id:zLqLLaRkwjyxQKlfO9Tv0dva2McaHRID\r\na=sctpmap:6000 webrtc-datachannel 65535\r\na=max-message-size:0\r\n[...]\r\na=end-of-candidates\r\n"
}
Be aware, the SCTP port may also come in the form of
a=sctp-port:6000
in the associated media line.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
SCTP - Wireshark Wiki
IP: Typically, SCTP uses IP as its underlying protocol. ... 10.28.6.44 (10.28.6.44) Stream Control Transmission Protocol Source port: 2905 Destination port: ...
Read more >SCTP packet structure - Wikipedia
The Stream Control Transmission Protocol (SCTP) has a simpler basic packet structure than TCP. ... +0, Source port, Destination port. 32, Verification tag....
Read more >Issues with Network Address Translation for SCTP
In the theoretical worst case all local hosts attempt to initiate associations to the same destination port from the same source port numbers....
Read more >SCTP Overview | Junos OS - Juniper Networks
Destination port number. Identifies the receiving port. The hosts use the destination port number to route the packet to the appropriate destination or...
Read more >Parse netstat command to get ports - Stack Overflow
0.0:* LISTEN 450/weechat netstat: no support for `AF INET (sctp)' on this system. I want to have the list of the ports using...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
An
RTCSctpTransport
is an SCTP association.Don’t worry, no one is able to multiplex multiple SCTP
transportsvirtual sockets (if you meant that because associations are of course multiplexed by port numbers). I also don’t see a single use case for this.In ORTC: You create an
RTCSctpTransport
by theRTCDtlsTransport
and an optional port number. If that is not set, the local port will default to whatever you want it to default. You set the remote port number when invoking thestart
method.