aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-01-16 11:51:18 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-01-16 11:51:18 +0100
commit60bc8e7dabb7af9ebab738d7135b73883aed9113 (patch)
tree7c21594e10fb0cee67087722a2794ce4e147cd60 /include
parent53559b39e574d9c4d183d1b3eb6f55e694d8e3b8 (diff)
mtp: Allow to send SCCP/ISUP to a specific endpoint
For a linkset define where SCCP/ISUP should be send. This config should probably move up to the application part when real work on the routing is done. Right now the sccp_opc/sccp_dpc need to stay inside the mtp_layer3.c to be able to send a TFA for the reachable OPC and it is easier to keep both (dpc/opc) in the same file.
Diffstat (limited to 'include')
-rw-r--r--include/mtp_data.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/mtp_data.h b/include/mtp_data.h
index bb6805b..69db8f7 100644
--- a/include/mtp_data.h
+++ b/include/mtp_data.h
@@ -52,8 +52,18 @@ struct mtp_link_set {
char *name;
- /* routing info.. */
- int dpc, opc, sccp_opc, isup_opc;
+ /**
+ * Routing is very limited. We can only forward to one
+ * other STP/Endpoint. For ISUP and SCCP we can statically
+ * send it to another destination. We need to follow Q.704
+ * more properly here.
+ * DPC/OPC are the ones for the linkset,
+ * sccp_dpc/isup_dpc are where we will send SCCP/ISUP messages
+ * sccp_opc/isup_opc are what we announce in the TFP
+ */
+ int dpc, opc;
+ int sccp_dpc, isup_dpc;
+ int sccp_opc, isup_opc;
int ni;
int spare;