diff --git a/include/osmo-pcap/osmo_pcap_client.h b/include/osmo-pcap/osmo_pcap_client.h index ee81e50..4367e4c 100644 --- a/include/osmo-pcap/osmo_pcap_client.h +++ b/include/osmo-pcap/osmo_pcap_client.h @@ -79,3 +79,5 @@ void osmo_client_send_data(struct osmo_pcap_client *client, struct pcap_pkthdr *hdr, const uint8_t *data); void osmo_client_send_link(struct osmo_pcap_client *client); void osmo_client_connect(struct osmo_pcap_client *); + +void osmo_client_reconnect(struct osmo_pcap_client *); diff --git a/src/osmo_client_network.c b/src/osmo_client_network.c index 2400f3a..e7fe82c 100644 --- a/src/osmo_client_network.c +++ b/src/osmo_client_network.c @@ -201,3 +201,8 @@ void osmo_client_connect(struct osmo_pcap_client *client) rate_ctr_inc(&client->ctrg->ctr[CLIENT_CTR_CONNECT]); osmo_client_send_link(client); } + +void osmo_client_reconnect(struct osmo_pcap_client *client) +{ + lost_connection(client); +}