gprs/test: Added GMM Info and fixed TLLI

Add a DTAP GMM Information message with an IMSI in the BSSGP header
to enable the association between IMSI and TLLI.

The TLLI of the Routing Area Update messages is set to foreign.

Sponsored-by: On-Waves ehf
diff --git a/openbsc/tests/gbproxy/gbproxy_test.c b/openbsc/tests/gbproxy/gbproxy_test.c
index 33b0ac5..75dc173 100644
--- a/openbsc/tests/gbproxy/gbproxy_test.c
+++ b/openbsc/tests/gbproxy/gbproxy_test.c
@@ -66,9 +66,22 @@
 	0xf4, 0xfb, 0xc5, 0x47, 0x22, 0x42, 0x67, 0x9a
 };
 
+/* Base Station Subsystem GPRS Protocol: GSM A-I/F DTAP - GMM Information */
+static const unsigned char bssgp_gmm_information[66] = {
+	0x00, 0xef, 0xe2, 0xb7, 0x00, 0x00, 0x50, 0x20,
+	0x16, 0x82, 0x02, 0x58, 0x13, 0x99, 0x18, 0xb3,
+	0x43, 0x2b, 0x25, 0x96, 0x62, 0x00, 0x60, 0x80,
+	0x9a, 0xc2, 0xc6, 0x62, 0x00, 0x60, 0x80, 0xba,
+	0xc8, 0xc6, 0x62, 0x00, 0x60, 0x80, 0x00, 0x0a,
+	0x82, 0x08, 0x02, 0x0d, 0x88, 0x11, 0x12, 0x13,
+	0x14, 0x15, 0x16, 0x17, 0x18, 0x00, 0x81, 0x00,
+	0x0e, 0x88, 0x41, 0xc0, 0x09, 0x08, 0x21, 0x04,
+	0xba, 0x3d
+};
+
 /* Base Station Subsystem GPRS Protocol: GSM A-I/F DTAP - Routing Area Update Request */
 static const unsigned char bssgp_ra_upd_req[85] = {
-	0x01, 0xaf, 0xe2, 0x80, 0x6e, 0x00, 0x00, 0x04,
+	0x01, 0xbb, 0xc5, 0x46, 0x79, 0x00, 0x00, 0x04,
 	0x08, 0x88, 0x11, 0x22, 0x33, 0x40, 0x50, 0x60,
 	0x70, 0x80, 0x00, 0x80, 0x0e, 0x00, 0x3e, 0x01,
 	0xc0, 0x15, 0x08, 0x08, 0x10, 0x11, 0x22, 0x33,
@@ -83,7 +96,7 @@
 
 /* Base Station Subsystem GPRS Protocol: GSM A-I/F DTAP - Routing Area Update Accept */
 static const unsigned char bssgp_ra_upd_acc[91] = {
-	0x00, 0xaf, 0xe2, 0x80, 0x6e, 0x00, 0x50, 0x20,
+	0x00, 0xbb, 0xc5, 0x46, 0x79, 0x00, 0x50, 0x20,
 	0x16, 0x82, 0x02, 0x58, 0x13, 0x9d, 0x19, 0x13,
 	0x42, 0x33, 0x57, 0x2b, 0xf7, 0xc8, 0x48, 0x02,
 	0x13, 0x48, 0x50, 0xc8, 0x48, 0x02, 0x14, 0x48,
@@ -853,6 +866,9 @@
 	send_ns_unitdata(nsi, "RA UPD ACC", &sgsn_peer, 0x1002,
 			 bssgp_ra_upd_acc, sizeof(bssgp_ra_upd_acc));
 
+	send_ns_unitdata(nsi, "GMM INFO", &sgsn_peer, 0x1002,
+			 bssgp_gmm_information, sizeof(bssgp_gmm_information));
+
 	/* Replace APN */
 	send_ns_unitdata(nsi, "ACT PDP CTX REQ (REPLACE APN)",
 			 &bss_peer[0], 0x1002,