blob: 282531d2a179afd28d936d37d9c5e0593f530966 [file] [log] [blame]
Harald Welte8fbf82b2018-06-24 11:27:40 +02001#pragma once
2
3#include <stdint.h>
4#include "gsup_server.h"
5
Harald Weltee687be52016-05-03 18:49:27 +02006struct 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 */
10int gsup_route_add(struct osmo_gsup_conn *conn, const uint8_t *addr, size_t addrlen);
11
12/* delete all routes for the given connection */
13int gsup_route_del_conn(struct osmo_gsup_conn *conn);
Harald Weltebd72f132018-06-24 11:26:43 +020014
15int osmo_gsup_addr_send(struct osmo_gsup_server *gs,
16 const uint8_t *addr, size_t addrlen,
17 struct msgb *msg);