aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_client_core.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-05-31 21:19:22 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-05-31 21:19:52 +0200
commit77288207fa55e8e5d0b0f986c45b6a33ebaf891c (patch)
tree57b77d2c7ff7e7dcdde88cf2a0c520025b737c54 /src/osmo_client_core.c
parentcd2d3db3b765fdaab245196ae34930180c4edb03 (diff)
osmo-pcap-client: Connect to a server, send the data to it
Diffstat (limited to 'src/osmo_client_core.c')
-rw-r--r--src/osmo_client_core.c5
1 files changed, 4 insertions, 1 deletions
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);
}