commit | 2aa1a124fc62bd4375fe3771e6ac5d370e446df3 | [log] [tgz] |
---|---|---|
author | Tomasz Wasilczyk <twasilczyk@google.com> | Mon Jul 20 14:03:05 2020 -0700 |
committer | Tomasz Wasilczyk <twasilczyk@google.com> | Mon Jul 20 14:42:45 2020 -0700 |
tree | 0b9eefbd64bb7c8b9a0692ef78c65f5b5f00a019 | |
parent | cef964c1c2466d2ada87d80036fc6e7fc05a624b [diff] [blame] |
Replace useCanSockets hack with flexible per-process domain selection Bug: 158011272 Test: manual Change-Id: I29d88a42e2309483a740cde9f9a463d83c7a560c
diff --git a/automotive/can/1.0/default/libnetdevice/libnetdevice.cpp b/automotive/can/1.0/default/libnetdevice/libnetdevice.cpp index 4bba5f6..4293cad 100644 --- a/automotive/can/1.0/default/libnetdevice/libnetdevice.cpp +++ b/automotive/can/1.0/default/libnetdevice/libnetdevice.cpp
@@ -28,8 +28,8 @@ namespace android::netdevice { -void useCanSockets(bool yes) { - socketparams::current = yes ? socketparams::can : socketparams::general; +void useSocketDomain(int domain) { + ifreqs::socketDomain = domain; } bool exists(std::string ifname) {