gtp: provide interface to set family

Kernel now supports for TID/I_TEI to be used in both IPv4 and IPv6 GTP
tunnels. This improves dualstack support for MS/UE so GTP traffic can
be identified with the same tunnel identifier.

Update gtp-tunnel to specify the family, since a tunnel is now
identified by the following tuple [ version, identifier, family ].

Change-Id: I584d3997ffb89cd430dfda9615a4ce0ce517ab2a
diff --git a/src/gtp.c b/src/gtp.c
index 657eb7a..0c378c4 100644
--- a/src/gtp.c
+++ b/src/gtp.c
@@ -58,6 +58,12 @@
 }
 EXPORT_SYMBOL(gtp_tunnel_set_ifidx);
 
+void gtp_tunnel_set_family(struct gtp_tunnel *t, uint16_t family)
+{
+	t->ms_addr.family = family;
+}
+EXPORT_SYMBOL(gtp_tunnel_set_family);
+
 void gtp_tunnel_set_ms_ip4(struct gtp_tunnel *t, struct in_addr *ms_addr)
 {
 	t->ms_addr.family = AF_INET;
diff --git a/src/libgtpnl.map b/src/libgtpnl.map
index 1237e69..41b7dd7 100644
--- a/src/libgtpnl.map
+++ b/src/libgtpnl.map
@@ -43,3 +43,7 @@
   gtp_tunnel_set_ms_ip6;
   gtp_tunnel_set_sgsn_ip6;
 } LIBGTPNL_1.0;
+
+LIBGTPNL_1.2 {
+  gtp_tunnel_set_family;
+} LIBGTPNL_1.1;