ns2: add support for frame relay
Add support for frame relay over dahdi hdlc device.
It's supporting lmi by q933 and supports both
SGSN and BSS.
Change-Id: Id3b49f93d33c271f77cd9c9db03cde6b727a4d30
diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index cf04924..096e80b 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -59,7 +59,6 @@
* This implementation has the following limitations:
* - Only one NS-VC for each NSE: No load-sharing function
* - NSVCI 65535 and 65534 are reserved for internal use
- * - Only UDP is supported as of now, no frame relay support
* - There are no BLOCK and UNBLOCK timers (yet?)
*
* \file gprs_ns2.c */
@@ -258,6 +257,15 @@
case GPRS_NS_LL_E1:
snprintf(buf, buf_len, "e1)");
break;
+ case GPRS_NS_LL_FR:
+ if (!gprs_ns2_is_frgre_bind(nsvc->bind)) {
+ buf[0] = '\0';
+ return buf;
+ }
+
+ snprintf(buf, buf_len, "fr)netif: %s dlci: %u", gprs_ns2_fr_bind_netif(nsvc->bind),
+ gprs_ns2_fr_nsvc_dlci(nsvc));
+ break;
default:
buf[0] = '\0';
break;