Merge "apf: adjust JNI to accept_packet()'s new signature"

am: 786150bc09

Change-Id: I966776e6574cbf167a6148e20d40e2bdcc887327
This commit is contained in:
Bernie Innocenti
2018-03-30 13:05:05 +00:00
committed by android-build-merger

View File

@@ -34,6 +34,8 @@ static jint com_android_server_ApfTest_apfSimulate(
env->GetArrayLength(program),
(uint8_t*)env->GetByteArrayElements(packet, NULL),
env->GetArrayLength(packet),
nullptr,
0,
filter_age);
}
@@ -143,7 +145,8 @@ static jboolean com_android_server_ApfTest_compareBpfApf(JNIEnv* env, jclass, js
do {
apf_packet = pcap_next(apf_pcap.get(), &apf_header);
} while (apf_packet != NULL && !accept_packet(
apf_program, apf_program_len, apf_packet, apf_header.len, 0));
apf_program, apf_program_len, apf_packet, apf_header.len,
nullptr, 0, 0));
// Make sure both filters matched the same packet.
if (apf_packet == NULL && bpf_packet == NULL)