From 77288207fa55e8e5d0b0f986c45b6a33ebaf891c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 31 May 2011 21:19:22 +0200 Subject: osmo-pcap-client: Connect to a server, send the data to it --- src/osmo_client_core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/osmo_client_core.c') diff --git a/src/osmo_client_core.c b/src/osmo_client_core.c index eb9ebcf..04d2d25 100644 --- a/src/osmo_client_core.c +++ b/src/osmo_client_core.c @@ -37,7 +37,8 @@ static int pcap_read_cb(struct osmo_fd *fd, unsigned int what) data = pcap_next(client->handle, &hdr); if (!data) return -1; - printf("GOT a packet: %d %d\n", hdr.caplen, hdr.len); + + osmo_client_send_data(client, &hdr, data); return 0; } @@ -130,6 +131,8 @@ int osmo_client_capture(struct osmo_pcap_client *client, const char *device) return 4; } + osmo_client_send_link(client); + if (client->filter_string) { osmo_install_filter(client); } -- cgit v1.2.3