diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-04-27 10:57:49 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-05-04 11:09:21 +0200 |
commit | d58ba465f1859e60e85eb725bf6bf5fde482db24 (patch) | |
tree | 5e14e53e51706c0d10d6c1bedbb8d3c5d8013a82 /include/osmocom/core | |
parent | 534ba8132818524bdf52d5dcf249dda51f766efb (diff) |
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.
Diffstat (limited to 'include/osmocom/core')
-rw-r--r-- | include/osmocom/core/gsmtap_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |