13fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey/*
23fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey * Copyright (C) 2014 The Android Open Source Project
33fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey *
43fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey * Licensed under the Apache License, Version 2.0 (the "License");
53fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey * you may not use this file except in compliance with the License.
63fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey * You may obtain a copy of the License at
73fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey *
83fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey *      http://www.apache.org/licenses/LICENSE-2.0
93fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey *
103fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey * Unless required by applicable law or agreed to in writing, software
113fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey * distributed under the License is distributed on an "AS IS" BASIS,
123fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
133fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey * See the License for the specific language governing permissions and
143fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey * limitations under the License.
153fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey */
163fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey
173fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey#include "pcap-netfilter-linux.c"
183fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey
193fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkeyint
203fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkeyandroid_nflog_send_config_cmd(int fd, u_int16_t group_id, u_int8_t cmd, u_int8_t family)
213fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey{
223fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey    pcap_t handle;
233fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey    handle.fd = fd;
243fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey    return nflog_send_config_cmd(&handle, group_id, cmd, family);
253fbb396ce68e28df8a33f06adf014f804b608576Jeff Sharkey}
26