summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-02-12 22:52:12 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-12 22:52:12 +0100
commit756aaadf5b1e634da2fb57a83146799adfdd2667 (patch)
treeb77b8386169dc1d4620e4ea3a20b4b2b02cf0f46 /include
parent63cd135faafd8abd94722a8b76cab3e8f634471c (diff)
parent0fe7385ba18b88bf745a881e3be051a57891c19e (diff)
Merge branch 'on-waves/sccp'
Diffstat (limited to 'include')
-rw-r--r--include/sccp/sccp.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/include/sccp/sccp.h b/include/sccp/sccp.h
index d7b57c6..643479a 100644
--- a/include/sccp/sccp.h
+++ b/include/sccp/sccp.h
@@ -1,7 +1,7 @@
/*
* SCCP management code
*
- * (C) 2009 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (C) 2009, 2010 by Holger Hans Peter Freyther <zecke@selfish.org>
*
* All Rights Reserved
*
@@ -143,4 +143,25 @@ extern const struct sockaddr_sccp sccp_ssn_bssap;
u_int32_t sccp_src_ref_to_int(struct sccp_source_reference *ref);
struct sccp_source_reference sccp_src_ref_from_int(u_int32_t);
+/**
+ * Below this are helper functions and structs for parsing SCCP messages
+ */
+struct sccp_parse_result {
+ struct sccp_address called;
+ struct sccp_address calling;
+
+ /* point to the msg packet */
+ struct sccp_source_reference *source_local_reference;
+ struct sccp_source_reference *destination_local_reference;
+
+ /* data pointer */
+ int data_len;
+};
+
+/*
+ * helper functions for the nat code
+ */
+int sccp_determine_msg_type(struct msgb *msg);
+int sccp_parse_header(struct msgb *msg, struct sccp_parse_result *result);
+
#endif