diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-31 21:19:22 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-31 21:19:52 +0200 |
commit | 77288207fa55e8e5d0b0f986c45b6a33ebaf891c (patch) | |
tree | 57b77d2c7ff7e7dcdde88cf2a0c520025b737c54 /src/osmo_client_core.c | |
parent | cd2d3db3b765fdaab245196ae34930180c4edb03 (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.c | 5 |
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); } |