Harald Welte | 8fbf82b | 2018-06-24 11:27:40 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | #include "gsup_server.h" |
| 5 | |
Harald Welte | e687be5 | 2016-05-03 18:49:27 +0200 | [diff] [blame] | 6 | struct osmo_gsup_conn *gsup_route_find(struct osmo_gsup_server *gs, |
| 7 | const uint8_t *addr, size_t addrlen); |
| 8 | |
| 9 | /* add a new route for the given address to the given conn */ |
| 10 | int gsup_route_add(struct osmo_gsup_conn *conn, const uint8_t *addr, size_t addrlen); |
| 11 | |
| 12 | /* delete all routes for the given connection */ |
| 13 | int gsup_route_del_conn(struct osmo_gsup_conn *conn); |
Harald Welte | bd72f13 | 2018-06-24 11:26:43 +0200 | [diff] [blame] | 14 | |
| 15 | int osmo_gsup_addr_send(struct osmo_gsup_server *gs, |
| 16 | const uint8_t *addr, size_t addrlen, |
| 17 | struct msgb *msg); |