libosmo-sigtran 2.1.0.172-a2b0 Osmocom SIGTRAN library

Loading...
Searching...
No Matches
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>
8#include <osmocom/sigtran/osmo_ss7.h>
9#include <osmocom/sigtran/mtp_sap.h>
10
11#include "ss7_instance.h"
12
13#define MAX_PC_STR_LEN 32
14
15 extern bool ss7_initialized;
16
17 bool ss7_ipv6_sctp_supported(const char *host, bool bind);
18
19uint32_t ss7_pc_full_mask(const struct osmo_ss7_pc_fmt *pc_fmt);
20
21 struct osmo_ss7_asp *ss7_asp_find_by_socket_addr(int fd, int trans_proto);
22
23 bool ss7_asp_protocol_check_trans_proto(enum osmo_ss7_asp_protocol proto, int trans_proto);
24 int ss7_default_trans_proto_for_asp_proto(enum osmo_ss7_asp_protocol proto);
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);
31
32/* VTY */
33#define XUA_VAR_STR "(sua|m3ua|ipa)"
mtp_sap.h
osmo_ss7.h
osmo_ss7_asp_protocol
osmo_ss7_asp_protocol
Definition osmo_ss7.h:157
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 ss7_asp.c:1132
ss7_asp_xua_srv_conn_closed_cb
int ss7_asp_xua_srv_conn_closed_cb(struct osmo_stream_srv *srv)
Definition ss7_asp.c:1334
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 ss7_asp.c:630
ss7_pc_full_mask
uint32_t ss7_pc_full_mask(const struct osmo_ss7_pc_fmt *pc_fmt)
Definition ss7.c:94
ss7_ipv6_sctp_supported
bool ss7_ipv6_sctp_supported(const char *host, bool bind)
Definition ss7.c:144
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 ss7_asp.c:1059
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 ss7_asp.c:1031
ss7_initialized
bool ss7_initialized
Definition ss7.c:63
xua_tcp_segmentation_cb
int xua_tcp_segmentation_cb(struct msgb *msg)
Definition ss7_asp.c:1117
ss7_asp_protocol_check_trans_proto
bool ss7_asp_protocol_check_trans_proto(enum osmo_ss7_asp_protocol proto, int trans_proto)
Definition ss7_asp.c:166
ss7_default_trans_proto_for_asp_proto
int ss7_default_trans_proto_for_asp_proto(enum osmo_ss7_asp_protocol proto)
Definition ss7_asp.c:190
osmo_ss7_asp
Definition ss7_asp.h:42
osmo_ss7_asp::proto
enum osmo_ss7_asp_protocol proto
Definition ss7_asp.h:102
osmo_ss7_asp::trans_proto
int trans_proto
The underlaying transport protocol (one of IPPROTO_*)
Definition ss7_asp.h:153
osmo_ss7_pc_fmt
Definition ss7_instance.h:16