diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-16 17:33:46 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-19 16:40:34 +0200 |
commit | 7e8da1379eb73e6a3b50837b049f0d34450cf89c (patch) | |
tree | 7fbc3b6ca32e9e24aeb08d78687d59eeea39bbf3 /openbsc/src/nat/bsc_nat_utils.c | |
parent | 3d38742d1ce756dcbebcdb197574f200f57f2a77 (diff) |
nat: Add a method to add a proper message to the queue.
This will be used by the USSD module to forward the data
without creating another copy of the data.
Diffstat (limited to 'openbsc/src/nat/bsc_nat_utils.c')
-rw-r--r-- | openbsc/src/nat/bsc_nat_utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c index a458afdaa..b295f3512 100644 --- a/openbsc/src/nat/bsc_nat_utils.c +++ b/openbsc/src/nat/bsc_nat_utils.c @@ -273,7 +273,11 @@ int bsc_do_write(struct write_queue *queue, struct msgb *msg, int proto) { /* prepend the header */ ipaccess_prepend_header(msg, proto); + return bsc_write_msg(queue, msg); +} +int bsc_write_msg(struct write_queue *queue, struct msgb *msg) +{ if (write_queue_enqueue(queue, msg) != 0) { LOGP(DINP, LOGL_ERROR, "Failed to enqueue the write.\n"); msgb_free(msg); |