osmo-msc/openbsc/src/gprs
Harald Welte 39d0bb5f7c Gb Proxy: Proper msgb memory management
The old idea was to take a msgb from gbprox_rcvmsg() and then
modify it and finally send it all the way down to nsip_sendmsg()
to the remote peer.

However, this introduces memory management difficulties, as we then
have to distinguish three cases:
 * msgb was sent to a remote peer
 * we sent some error message and need to free the msgb
 * we need to make n-1 copies in case of a BSSVC-RESET from the SGSN

So instead we now simply always copy the message if we pass it on.

All messages received by gbprox_rcvmsg() are msgb_free()d in the very
same routine

All messages allocated by tx2peer() or tx2sgsn() are freed after
nsip_sendmsg()
2010-05-12 20:22:55 +02:00
..
Makefile.am [gprs] gb_proxy: Send proper BSSGP STATUS msg in error case 2010-05-11 10:03:34 +02:00
crc24.c [gprs] Move all GPRS related code to src/gprs subdirectory 2010-05-04 07:41:59 +02:00
gb_proxy.c Gb Proxy: Proper msgb memory management 2010-05-12 20:22:55 +02:00
gb_proxy_main.c NS: Add support for persistent NS-VC configuration 2010-05-12 18:28:00 +02:00
gb_proxy_vty.c use new install_element_ve() 2010-05-12 20:22:55 +02:00
gprs_bssgp.c [gprs] BSSGP: cosmetic cleanup 2010-05-11 10:12:44 +02:00
gprs_bssgp_util.c [gprs] gb_proxy: Send proper BSSGP STATUS msg in error case 2010-05-11 10:03:34 +02:00
gprs_llc.c [gprs] Move all GPRS related code to src/gprs subdirectory 2010-05-04 07:41:59 +02:00
gprs_ns.c NS: Make all timers configurable from VTY 2010-05-12 20:22:55 +02:00
gprs_sgsn.c [gprs] Move all GPRS related code to src/gprs subdirectory 2010-05-04 07:41:59 +02:00
gprs_sndcp.c [gprs] Move all GPRS related code to src/gprs subdirectory 2010-05-04 07:41:59 +02:00
gsm_04_08_gprs.c [gprs] Move all GPRS related code to src/gprs subdirectory 2010-05-04 07:41:59 +02:00
osmo_gbproxy.cfg NS: Add support for persistent NS-VC configuration 2010-05-12 18:28:00 +02:00
osmo_sgsn.cfg [gprs] Move all GPRS related code to src/gprs subdirectory 2010-05-04 07:41:59 +02:00
sgsn_main.c [gprs] Move all GPRS related code to src/gprs subdirectory 2010-05-04 07:41:59 +02:00
sgsn_vty.c [gprs] Move all GPRS related code to src/gprs subdirectory 2010-05-04 07:41:59 +02:00