export tacp_transport_entity to tcap_user.h
This commit is contained in:
parent
ab5bc475af
commit
52cef61627
|
@ -10,15 +10,16 @@
|
|||
#include <osmocore/msgb.h>
|
||||
|
||||
#include "tcap_user.h"
|
||||
#include "tcap.h"
|
||||
|
||||
/* prototype of what we need to call in case of incoming UNITDATA */
|
||||
int tcap_tco_n_unitdata_ind(struct scxp_entity *se, struct msgb *msg);
|
||||
int tcap_tco_n_unitdata_ind(struct tcap_transport_entity *se, struct msgb *msg);
|
||||
|
||||
/* prototype of what we need to call in case of incoming NOTICE */
|
||||
int tcap_tco_n_notice_ind(struct scxp_entity *se);
|
||||
int tcap_tco_n_notice_ind(struct tcap_transport_entity *se);
|
||||
|
||||
/* Called by TCAP stack if it wants to request transmission of UNITDATA */
|
||||
int tcap_scXp_n_unitdata_req(struct scxp_entity *se, struct msgb *msg)
|
||||
int tcap_scXp_n_unitdata_req(struct tcap_transport_entity *se, struct msgb *msg)
|
||||
{
|
||||
printf("N-UNITDATA.req(%s)\n", hexdump(msg->data, msg->len));
|
||||
int i = open("ber.out", O_CREAT|O_WRONLY|O_TRUNC);
|
||||
|
|
27
src/tcap.h
27
src/tcap.h
|
@ -2,7 +2,6 @@
|
|||
#define _OSMO_TCAP_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <osmocore/linuxlist.h>
|
||||
#include <osmocore/timer.h>
|
||||
|
@ -218,32 +217,6 @@ void tcap_trans_set_state(struct tcap_transaction *tt, enum tcap_transaction_sta
|
|||
|
||||
|
||||
/* scXp.c */
|
||||
enum tcap_transport_entity_type {
|
||||
SCXP_T_UDP, /* TCAP over UDP */
|
||||
SCXP_T_SUA_SCTP, /* TCAP over SUA over SCTP */
|
||||
SCXP_T_SCCP_IPA, /* TCAP over SCCP over IPA */
|
||||
SCXP_T_SCCP_M3UA_SCTP, /* TCAP over SCCP over M3UA over SCTP */
|
||||
};
|
||||
/* One entity of the underlying network protocol */
|
||||
struct tcap_transport_entity {
|
||||
struct llist_head list;
|
||||
|
||||
/* common parts */
|
||||
struct sockaddr_storage local_addr;
|
||||
struct sockaddr_storage remote_addr;
|
||||
struct bsc_fd socket_fd;
|
||||
|
||||
/* type of underlying transport */
|
||||
enum tcap_transport_entity_type type;
|
||||
union {
|
||||
struct {
|
||||
} udp;
|
||||
struct {
|
||||
} sccp_ipa;
|
||||
struct {
|
||||
} sua_sctp;
|
||||
};
|
||||
};
|
||||
|
||||
/* Called by TCAP stack if it wants to request transmission of UNITDATA */
|
||||
int tcap_scXp_n_unitdata_req(struct tcap_transport_entity *se, struct msgb *msg);
|
||||
|
|
|
@ -2,18 +2,47 @@
|
|||
#define _TCAP_USER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <osmocore/select.h>
|
||||
|
||||
#include <asn1c/OBJECT_IDENTIFIER.h>
|
||||
#include <osmocom/tcap/Parameter.h>
|
||||
#include <osmocom/tcap/OPERATION.h>
|
||||
|
||||
enum tcap_transport_entity_type {
|
||||
SCXP_T_UDP, /* TCAP over UDP */
|
||||
SCXP_T_SUA_SCTP, /* TCAP over SUA over SCTP */
|
||||
SCXP_T_SCCP_IPA, /* TCAP over SCCP over IPA */
|
||||
SCXP_T_SCCP_M3UA_SCTP, /* TCAP over SCCP over M3UA over SCTP */
|
||||
};
|
||||
/* One entity of the underlying network protocol */
|
||||
struct tcap_transport_entity {
|
||||
struct llist_head list;
|
||||
|
||||
/* common parts */
|
||||
struct sockaddr_storage local_addr;
|
||||
struct sockaddr_storage remote_addr;
|
||||
struct bsc_fd socket_fd;
|
||||
|
||||
/* type of underlying transport */
|
||||
enum tcap_transport_entity_type type;
|
||||
union {
|
||||
struct {
|
||||
} udp;
|
||||
struct {
|
||||
} sccp_ipa;
|
||||
struct {
|
||||
} sua_sctp;
|
||||
};
|
||||
};
|
||||
|
||||
/* Call-back to user from other points in the stack */
|
||||
|
||||
/* metadata associated with a dialogue indication primitive */
|
||||
struct tcap_dialg_ind {
|
||||
uint32_t dialg_id;
|
||||
struct tcap_address *src_addr;
|
||||
struct tcap_address *dst_addr;
|
||||
struct tcap_transport_entity *transp_ent;
|
||||
struct OBJECT_IDENTIFIER *app_ctx_name;
|
||||
struct user_information *user_info;
|
||||
int components_present:1;
|
||||
|
|
Loading…
Reference in New Issue