libosmo-sigtran  2.1.0.94-dfcc.202506122026
Osmocom SIGTRAN library
ss7_internal.h
Go to the documentation of this file.
1 #pragma once
2 
3 /* Internal header used by libosmo-sccp, not available publicly for lib users */
4 
5 #include <stdbool.h>
6 #include <stdint.h>
7 #include <osmocom/netif/stream.h>
9 
10 #include "ss7_instance.h"
11 
12 #define MAX_PC_STR_LEN 32
13 
14 extern bool ss7_initialized;
15 
16 bool ss7_ipv6_sctp_supported(const char *host, bool bind);
17 
18 struct osmo_ss7_as *ss7_as_alloc(struct osmo_ss7_instance *inst, const char *name,
20 
22 
25 int ss7_asp_ipa_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg);
26 int ss7_asp_xua_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg);
27 int ss7_asp_m3ua_tcp_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg);
28 int ss7_asp_xua_srv_conn_closed_cb(struct osmo_stream_srv *srv);
29 
30 int xua_tcp_segmentation_cb(struct msgb *msg);
osmo_ss7_asp_protocol
Definition: osmo_ss7.h:157
int ss7_asp_m3ua_tcp_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg)
Definition: ss7_asp.c:980
int ss7_asp_xua_srv_conn_closed_cb(struct osmo_stream_srv *srv)
Definition: ss7_asp.c:1179
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: ss7_asp.c:472
bool ss7_ipv6_sctp_supported(const char *host, bool bind)
Definition: ss7.c:138
int ss7_asp_xua_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg)
Definition: ss7_asp.c:907
int ss7_asp_ipa_srv_conn_rx_cb(struct osmo_stream_srv *conn, int res, struct msgb *msg)
Definition: ss7_asp.c:879
bool ss7_initialized
Definition: ss7.c:62
int xua_tcp_segmentation_cb(struct msgb *msg)
Definition: ss7_asp.c:965
bool ss7_asp_protocol_check_trans_proto(enum osmo_ss7_asp_protocol proto, int trans_proto)
Definition: ss7_asp.c:142
int ss7_default_trans_proto_for_asp_proto(enum osmo_ss7_asp_protocol proto)
Definition: ss7_asp.c:166
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: ss7_as.c:111
Definition: ss7_as.h:74
char * name
Definition: ss7_as.h:95
enum osmo_ss7_asp_protocol proto
Definition: ss7_as.h:97
struct osmo_ss7_instance * inst
Definition: ss7_as.h:77
Definition: ss7_asp.h:28
enum osmo_ss7_asp_protocol proto
Definition: ss7_asp.h:84
int trans_proto
The underlaying transport protocol (one of IPPROTO_*)
Definition: ss7_asp.h:117
Definition: ss7_instance.h:21