Merge "Correct buffer size limitation for DnsResolver API"
am: c586bdf976
Change-Id: Ia9febf5f707c182d465e79ed8f4d80a4853c868f
This commit is contained in:
@@ -49,8 +49,8 @@ int ifc_disable(const char *ifname);
|
|||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
constexpr int MAXPACKETSIZE = 8 * 1024;
|
constexpr int MAXPACKETSIZE = 8 * 1024;
|
||||||
// FrameworkListener limits the size of commands to 1024 bytes. TODO: fix this.
|
// FrameworkListener limits the size of commands to 4096 bytes.
|
||||||
constexpr int MAXCMDSIZE = 1024;
|
constexpr int MAXCMDSIZE = 4096;
|
||||||
|
|
||||||
static void throwErrnoException(JNIEnv* env, const char* functionName, int error) {
|
static void throwErrnoException(JNIEnv* env, const char* functionName, int error) {
|
||||||
ScopedLocalRef<jstring> detailMessage(env, env->NewStringUTF(functionName));
|
ScopedLocalRef<jstring> detailMessage(env, env->NewStringUTF(functionName));
|
||||||
|
|||||||
Reference in New Issue
Block a user