Loading...
Searching...
No Matches
ss7_internal.h
Go to the documentation of this file.
#pragma once
/* Internal header used by libosmo-sccp, not available publicly for lib users */
#include <stdbool.h>
#include <stdint.h>
#include <osmocom/netif/stream.h>
#include <osmocom/sigtran/osmo_ss7.h>
#include "ss7_instance.h"
#define MAX_PC_STR_LEN 32
extern bool ss7_initialized;
bool ss7_ipv6_sctp_supported(const char *host, bool bind);
struct osmo_ss7_as *ss7_as_alloc(struct osmo_ss7_instance *inst, const char *name,
enum osmo_ss7_asp_protocol proto);
struct osmo_ss7_asp *ss7_asp_find_by_socket_addr(int fd, int trans_proto);
bool ss7_asp_protocol_check_trans_proto(enum osmo_ss7_asp_protocol proto, int trans_proto);
int ss7_default_trans_proto_for_asp_proto(enum osmo_ss7_asp_protocol proto);
int ss7_asp_ipa_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg);
int ss7_asp_xua_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg);
int ss7_asp_m3ua_tcp_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg);
int ss7_asp_xua_srv_conn_closed_cb(struct osmo_stream_srv *srv);
int xua_tcp_segmentation_cb(struct msgb *msg);
osmo_ss7.h
osmo_ss7_asp_protocol
osmo_ss7_asp_protocol
Definition osmo_ss7.h:153
ss7_instance.h
ss7_asp_m3ua_tcp_srv_conn_rx_cb
int ss7_asp_m3ua_tcp_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg)
Definition osmo_ss7_asp.c:889
ss7_asp_xua_srv_conn_closed_cb
int ss7_asp_xua_srv_conn_closed_cb(struct osmo_stream_srv *srv)
Definition osmo_ss7_asp.c:1078
ss7_asp_find_by_socket_addr
struct osmo_ss7_asp * ss7_asp_find_by_socket_addr(int fd, int trans_proto)
Find an ASP definition matching the local+remote IP/PORT of given fd.
Definition osmo_ss7_asp.c:465
ss7_ipv6_sctp_supported
bool ss7_ipv6_sctp_supported(const char *host, bool bind)
Definition osmo_ss7.c:138
ss7_asp_xua_srv_conn_rx_cb
int ss7_asp_xua_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg)
Definition osmo_ss7_asp.c:824
ss7_asp_ipa_srv_conn_rx_cb
int ss7_asp_ipa_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg)
Definition osmo_ss7_asp.c:802
ss7_initialized
bool ss7_initialized
Definition osmo_ss7.c:62
xua_tcp_segmentation_cb
int xua_tcp_segmentation_cb(struct msgb *msg)
Definition osmo_ss7_asp.c:874
ss7_as_alloc
struct osmo_ss7_as * ss7_as_alloc(struct osmo_ss7_instance *inst, const char *name, enum osmo_ss7_asp_protocol proto)
Allocate an Application Server.
Definition osmo_ss7_as.c:75
ss7_asp_protocol_check_trans_proto
bool ss7_asp_protocol_check_trans_proto(enum osmo_ss7_asp_protocol proto, int trans_proto)
Definition osmo_ss7_asp.c:135
ss7_default_trans_proto_for_asp_proto
int ss7_default_trans_proto_for_asp_proto(enum osmo_ss7_asp_protocol proto)
Definition osmo_ss7_asp.c:159
osmo_ss7_as
Definition ss7_as.h:31
osmo_ss7_as::name
char * name
Definition ss7_as.h:49
osmo_ss7_as::proto
enum osmo_ss7_asp_protocol proto
Definition ss7_as.h:51
osmo_ss7_as::inst
struct osmo_ss7_instance * inst
Definition ss7_as.h:34
osmo_ss7_asp
Definition ss7_asp.h:28
osmo_ss7_asp::proto
enum osmo_ss7_asp_protocol proto
Definition ss7_asp.h:69
osmo_ss7_asp::trans_proto
int trans_proto
The underlaying transport protocol (one of IPPROTO_*)
Definition ss7_asp.h:96
osmo_ss7_instance
Definition ss7_instance.h:20