From d58ba465f1859e60e85eb725bf6bf5fde482db24 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 27 Apr 2011 10:57:49 +0200 Subject: GSMTAP: add function to create a 'sink' for gsmtap packets This can be helpful where we send GSMTAP messages to the loopback device (localhost, 127.0.0.1) from where the kernel would then send ICMP reject packets as nobody is listening on that port. --- include/osmocom/core/gsmtap_util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/osmocom/core/gsmtap_util.h b/include/osmocom/core/gsmtap_util.h index 96449443..785f5e58 100644 --- a/include/osmocom/core/gsmtap_util.h +++ b/include/osmocom/core/gsmtap_util.h @@ -18,4 +18,8 @@ int gsmtap_sendmsg(uint16_t arfcn, uint8_t ts, uint8_t chan_type, uint8_t ss, int gsmtap_init(uint32_t dst_ip); +/* Create a local 'gsmtap sink' avoiding the UDP packets being rejected + * with ICMP reject messages */ +int gsmtap_sink_init(uint32_t bind_ip); + #endif /* _GSMTAP_UTIL_H */ -- cgit v1.2.3