awslabs / amazon-kinesis-video-streams-webrtc-sdk-c

Amazon Kinesis Video Streams Webrtc SDK is for developers to install and customize realtime communication between devices and enable secure streaming of video, audio to Kinesis Video Streams.
https://awslabs.github.io/amazon-kinesis-video-streams-webrtc-sdk-c/group__PublicMemberFunctions.html
Apache License 2.0
1.04k stars 316 forks source link

[Bug]: Network filter does not apply to socket routing #1969

Open apurohitrivian opened 7 months ago

apurohitrivian commented 7 months ago

Please confirm you have already done the following

Please answer the following prompt

Describe the bug

Did some more digging to find out that the socket creation is missing SO_BINDTODEVICE options. https://stackoverflow.com/questions/14478167/bind-socket-to-network-interface

Expected Behavior

Packets for an ice candidate are routed over the interface for which ICE candidate is created.

Current Behavior

Packets route over the default interface of the device.

Reproduction Steps

Create a webrtc session with network interface filter not being the default route interface for the device.

WebRTC C SDK version being used

1.7.3

If it was working in a previous version, which one?

No response

Compiler and Version used

gcc-9.4.0

Operating System and version

linux-ubuntu

Platform being used

amd64; arm64

disa6302 commented 7 months ago

@apurohitrivian ,

Thank you for the details. Will look into this and revert back.