Tethering: use the correct socket size for conntrack dump
Offload HAL conntrack sockets are used for conntrack state dumps, so should use the dump socket buffer size. Bug: 409212357 Test: TreeHugger Flag: EXEMPT mainline/trivial Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I73b4bb706efe55505b3646df63330de521a6df3f
This commit is contained in:
parent
871e7ea684
commit
7a82293238
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
package com.android.networkstack.tethering;
|
||||
|
||||
import static com.android.net.module.util.netlink.NetlinkUtils.SOCKET_RECV_BUFSIZE;
|
||||
import static com.android.net.module.util.netlink.NetlinkUtils.SOCKET_DUMP_RECV_BUFSIZE;
|
||||
import static com.android.net.module.util.netlink.StructNlMsgHdr.NLM_F_DUMP;
|
||||
import static com.android.net.module.util.netlink.StructNlMsgHdr.NLM_F_REQUEST;
|
||||
|
||||
|
|
@ -200,7 +200,7 @@ public class OffloadHardwareInterface {
|
|||
final FileDescriptor fd;
|
||||
try {
|
||||
fd = NetlinkUtils.netlinkSocketForProto(OsConstants.NETLINK_NETFILTER,
|
||||
SOCKET_RECV_BUFSIZE);
|
||||
SOCKET_DUMP_RECV_BUFSIZE);
|
||||
} catch (ErrnoException e) {
|
||||
mLog.e("Unable to create conntrack socket " + e);
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue