[gprs] gb_proxy: use new msgb_bssgph() and msgb_bssgp_len() macros
The proxy code still operated on msg->l3h, which is no longer the
BSSGP header now.
diff --git a/openbsc/src/gb_proxy.c b/openbsc/src/gb_proxy.c
index a9aa754..4d8f27f 100644
--- a/openbsc/src/gb_proxy.c
+++ b/openbsc/src/gb_proxy.c
@@ -151,10 +151,10 @@
static int gbprox_rx_sig_from_bss(struct msgb *msg, struct gprs_nsvc *nsvc,
uint16_t ns_bvci)
{
- struct bssgp_normal_hdr *bgph = (struct bssgp_normal_hdr *) msg->l3h;
+ struct bssgp_normal_hdr *bgph = (struct bssgp_normal_hdr *) msgb_bssgph(msg);
struct tlv_parsed tp;
uint8_t pdu_type = bgph->pdu_type;
- int data_len = msgb_l3len(msg) - sizeof(*bgph);
+ int data_len = msgb_bssgp_len(msg) - sizeof(*bgph);
struct gbprox_peer *from_peer;
struct gprs_ra_id raid;
@@ -227,10 +227,10 @@
static int gbprox_rx_sig_from_sgsn(struct msgb *msg, struct gprs_nsvc *nsvc,
uint16_t ns_bvci)
{
- struct bssgp_normal_hdr *bgph = (struct bssgp_normal_hdr *) msg->l3h;
+ struct bssgp_normal_hdr *bgph = (struct bssgp_normal_hdr *) msgb_bssgph(msg);
struct tlv_parsed tp;
uint8_t pdu_type = bgph->pdu_type;
- int data_len = msgb_l3len(msg) - sizeof(*bgph);
+ int data_len = msgb_bssgp_len(msg) - sizeof(*bgph);
struct gbprox_peer *peer;
uint16_t bvci;
int rc = 0;