summaryrefslogtreecommitdiffstats
path: root/src/gb/gb_internal.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-02-23 14:07:00 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-26 12:18:30 +0100
commit35042a29197bd086a545976e5fa38d01c434f8ac (patch)
tree738cde0f4e50a006ffec9b3200c7372725ababf3 /src/gb/gb_internal.h
parent17a642d8ff309119532bf85f4ad95d1b049047f0 (diff)
NS: Factor out gprs_nsvc_start_test() and use it
This function performs sending a NS-ALIVE PDU and starting Tns-Test, let's use it in all places where we used to do that. As part of this, also fix a bug where the sendto() return value (number of bytes sent) would actually propagate up all the way to gprs_ns_rx_reset() return value, which in turn affects the test results on stdout. Change-Id: I4d303117f77fabb74bbb91887b9914a81c2a084a
Diffstat (limited to 'src/gb/gb_internal.h')
-rw-r--r--src/gb/gb_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gb/gb_internal.h b/src/gb/gb_internal.h
index c1fa8e19..72d940f5 100644
--- a/src/gb/gb_internal.h
+++ b/src/gb/gb_internal.h
@@ -4,6 +4,7 @@
#include <osmocom/gsm/tlv.h>
#include <osmocom/gprs/gprs_ns.h>
+void gprs_nsvc_start_test(struct gprs_nsvc *nsvc);
int gprs_ns_tx_sns_ack(struct gprs_nsvc *nsvc, uint8_t trans_id, uint8_t *cause,
const struct gprs_ns_ie_ip4_elem *ip4_elems,unsigned int num_ip4_elems);