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
This commit is contained in:
parent
853753e7c6
commit
345d687038
|
@ -119,7 +119,7 @@ static int genl_gtp_validate_cb(const struct nlattr *attr, void *data)
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue