diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-31 15:47:44 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-31 15:47:44 +0200 |
commit | 530ecc0879572a7281655693a53cc17b6920b118 (patch) | |
tree | 5999ca256591da285326239a2ce010eaf0725d84 /include/osmo-pcap/osmo_pcap_client.h | |
parent | 430366a2c5ffbb0af5d7e5213f7f54c5833d7c97 (diff) |
osmo_pcap_client: Start with the framework for the pcap client
This is just the normal skeleton for the osmocom code.
Diffstat (limited to 'include/osmo-pcap/osmo_pcap_client.h')
-rw-r--r-- | include/osmo-pcap/osmo_pcap_client.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/osmo-pcap/osmo_pcap_client.h b/include/osmo-pcap/osmo_pcap_client.h new file mode 100644 index 0000000..8dc2ee8 --- /dev/null +++ b/include/osmo-pcap/osmo_pcap_client.h @@ -0,0 +1,34 @@ +/* + * osmo-pcap-client code + * + * (C) 2011 by Holger Hans Peter Freyther <zecke@selfish.org> + * (C) 2011 by On-Waves + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#include <pcap.h> + + +struct osmo_pcap_client { + char *device; + pcap_t *handle; + + struct bpf_program *bpf; + char *filter_string; +}; + +int vty_client_init(); |