diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-02-12 22:52:12 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-02-12 22:52:12 +0100 |
commit | 7184c2d7d2a97b837362a300727adbe45315ebfc (patch) | |
tree | ec9dd93f7e7df71d5606fb15aea3cd389e3b5f21 /openbsc/include | |
parent | 8a69cb2d99f0b261817c971f7c29edb62578d3b9 (diff) | |
parent | 3cb2890e56e715d63a89183f273c8a11ac5771ce (diff) |
Merge branch 'on-waves/sccp'
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/sccp/sccp.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/openbsc/include/sccp/sccp.h b/openbsc/include/sccp/sccp.h index d7b57c610..643479adc 100644 --- a/openbsc/include/sccp/sccp.h +++ b/openbsc/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 |