thanks @vk...@google.com for guidance. i've reduce the scope here to net/socket layer and moved the rest to CL7186747
Add Source-Specific Multicast (SSM) support to Direct Sockets APIOmar RamadanAttach link to chrome entry for other reviewers.
Done
TEST_F(UDPSocketTest, JoinSourceGroupIPv4) {Omar RamadanI would split the CL into multiple. The /net/socket/ directory should be in a separate CL from other layers to simplify job of the reviewers.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Result codes for Direct Sockets operations.Omar Ramadanunused?
Done
public:Omar RamadanIf blink layer is modified, then it must be tested.
First of all unit tests: third_party/blink/renderer/modules/direct_sockets/multicast_controller_unittest.ccSecond, e2e tests on chrome or content layer:
content/browser/direct_sockets/direct_sockets_udp_browsertest.cc,
chrome/browser/direct_sockets/direct_sockets_apitest.ccThere should be complete cases, checking that source filtering works, and many other corner cases.
addressed in CL7186747
struct ip_mreq_source mreqs = {};Can you define helper functions to populate a `struct ip_mreq_source` or `struct group_source_req` from an `IPAddress` that we can use in both the join and leave methods?
std::memcpy(&group->sin6_addr, group_address.bytes().data(),Why `memcpy` here instead of using `ToIn6Addr`?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Can you define helper functions to populate a `struct ip_mreq_source` or `struct group_source_req` from an `IPAddress` that we can use in both the join and leave methods?
added `CreateIPv4SourceGroupRequest` / `CreateIPv6SourceGroupRequest` helpers
std::memcpy(&group->sin6_addr, group_address.bytes().data(),Why `memcpy` here instead of using `ToIn6Addr`?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
struct ip_mreq_source mreqs;Add struct building helpers here as well?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Add struct building helpers here as well?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |