aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-04-10 10:11:27 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-04-10 16:17:14 +0200
commitb01178898f32f3ee4844cbc7cb7eefea2a9751ac (patch)
tree0507aaf559a9da282c61ab410ba35d923d534238 /include
parent736c66066bd5c03a50551f9c3c2d8e846faebf50 (diff)
sccp: Create sccp_create_cr and use it in the connection creation
The data is optional in the in the CR msg so we have to check if the msgb is NULL or not.
Diffstat (limited to 'include')
-rw-r--r--include/sccp/sccp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sccp/sccp.h b/include/sccp/sccp.h
index 3c30a73..9a616c7 100644
--- a/include/sccp/sccp.h
+++ b/include/sccp/sccp.h
@@ -1,7 +1,8 @@
/*
* SCCP management code
*
- * (C) 2009, 2010 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (C) 2009, 2010, 2013 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (C) 2009, 2010, 2013 by On-Waves
*
* All Rights Reserved
*
@@ -163,6 +164,7 @@ extern const struct sockaddr_sccp sccp_ssn_bssap;
uint32_t sccp_src_ref_to_int(struct sccp_source_reference *ref);
struct sccp_source_reference sccp_src_ref_from_int(uint32_t);
+struct msgb *sccp_create_cr(const struct sccp_source_reference *src_ref, const struct sockaddr_sccp *called, const uint8_t *data, size_t length);
struct msgb *sccp_create_refuse(struct sccp_source_reference *src_ref, int cause, uint8_t *data, int length);
struct msgb *sccp_create_cc(struct sccp_source_reference *src_ref, struct sccp_source_reference *dst_ref);
struct msgb *sccp_create_rlsd(struct sccp_source_reference *src_ref, struct sccp_source_reference *dst_ref, int cause);