Fix look-up of GTP tunnel by TEI
I can't look tei by gtp-tunnel in GTPv1.
I write patch for libgtpnl.
head version
$./tools/gtp-tunnel add hoge v1 65535 65535 10.0.3.2 192.168.0.2
$./tools/gtp-tunnel list
version 1 tei 0/0 ms_addr 10.0.3.2 sgsn_addr 192.168.0.2
fixed version
$./tools/gtp-tunnel add hoge v1 65535 65535 10.0.3.2 192.168.0.2
$./tools/gtp-tunnel list
version 1 tei 65535/65535 ms_addr 10.0.3.2 sgsn_addr 192.168.0.2
diff --git a/src/gtp-genl.c b/src/gtp-genl.c
index 1e77e06..24a640d 100644
--- a/src/gtp-genl.c
+++ b/src/gtp-genl.c
@@ -119,7 +119,7 @@
const struct nlattr **tb = data;
int type = mnl_attr_get_type(attr);
- if (mnl_attr_type_valid(attr, CTRL_ATTR_MAX) < 0)
+ if (mnl_attr_type_valid(attr, GTPA_MAX) < 0)
return MNL_CB_OK;
switch(type) {