summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2020-05-06 14:09:45 -0700
committerMaciej Żenczykowski <maze@google.com>2020-05-11 15:57:53 -0700
commit74346aac9cecd70b8f1fde624b39afbbf4525628 (patch)
treefe138856774320ed9ea4f5b6fbc94966994f127e /libsparse/sparse.cpp
parentb9add4a315ee17f9994f049b94cc9af74d065451 (diff)
libnetutils/packet.c - fix a raw socket reception race
A socket created bound to a specific protocol can receive packets before it's bound to a specific interface/mac. It's best to rely on the bind(). This replicates the way packet sockets are created in external/android-clat. See: ring.c ring_create() and clatd.c configure_packet_socket() Test: builds, atest Bug: 155297277 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I569d2b81a396f352ab5d1b71bd5ad0d96217aab1 Merged-In: I569d2b81a396f352ab5d1b71bd5ad0d96217aab1
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions