Bug #6123 » 0002-add-IPv6-API-for-GTP-tunnel.patch
include/libgtpnl/gtp.h | ||
---|---|---|
9 | 9 |
struct gtp_tunnel *gtp_tunnel_alloc(void); |
10 | 10 |
void gtp_tunnel_free(struct gtp_tunnel *t); |
11 | 11 | |
12 |
void gtp_tunnel_set_family(struct gtp_tunnel *t, uint8_t family); |
|
12 | 13 |
void gtp_tunnel_set_ifns(struct gtp_tunnel *t, int ifns); |
13 | 14 |
void gtp_tunnel_set_ifidx(struct gtp_tunnel *t, uint32_t ifidx); |
14 | 15 |
void gtp_tunnel_set_ms_ip4(struct gtp_tunnel *t, struct in_addr *ms_addr); |
15 | 16 |
void gtp_tunnel_set_sgsn_ip4(struct gtp_tunnel *t, struct in_addr *sgsn_addr); |
17 |
void gtp_tunnel_set_ms_ip6(struct gtp_tunnel *t, const struct in6_addr *ms_addr); |
|
18 |
void gtp_tunnel_set_sgsn_ip6(struct gtp_tunnel *t, const struct in6_addr *sgsn_addr); |
|
16 | 19 |
void gtp_tunnel_set_version(struct gtp_tunnel *t, uint32_t version); |
17 | 20 |
void gtp_tunnel_set_tid(struct gtp_tunnel *t, uint64_t tid); |
18 | 21 |
void gtp_tunnel_set_i_tei(struct gtp_tunnel *t, uint32_t i_tei); |
src/gtp.c | ||
---|---|---|
46 | 46 |
} |
47 | 47 |
EXPORT_SYMBOL(gtp_tunnel_free); |
48 | 48 | |
49 |
void gtp_tunnel_set_family(struct gtp_tunnel *t, uint8_t family) |
|
50 |
{ |
|
51 |
t->family = family; |
|
52 |
} |
|
53 |
EXPORT_SYMBOL(gtp_tunnel_set_family); |
|
54 | ||
49 | 55 |
void gtp_tunnel_set_ifns(struct gtp_tunnel *t, int ifns) |
50 | 56 |
{ |
51 | 57 |
t->ifns = ifns; |
... | ... | |
70 | 76 |
} |
71 | 77 |
EXPORT_SYMBOL(gtp_tunnel_set_sgsn_ip4); |
72 | 78 | |
79 |
void gtp_tunnel_set_ms_ip6(struct gtp_tunnel *t, const struct in6_addr *ms_addr) |
|
80 |
{ |
|
81 |
t->ip6.ms_addr = *ms_addr; |
|
82 |
} |
|
83 |
EXPORT_SYMBOL(gtp_tunnel_set_ms_ip6); |
|
84 | ||
85 |
void gtp_tunnel_set_sgsn_ip6(struct gtp_tunnel *t, const struct in6_addr *sgsn_addr) |
|
86 |
{ |
|
87 |
t->ip6.sgsn_addr = *sgsn_addr; |
|
88 |
} |
|
89 |
EXPORT_SYMBOL(gtp_tunnel_set_sgsn_ip6); |
|
90 | ||
73 | 91 |
void gtp_tunnel_set_version(struct gtp_tunnel *t, uint32_t version) |
74 | 92 |
{ |
75 | 93 |
t->gtp_version = version; |
src/libgtpnl.map | ||
---|---|---|
38 | 38 | |
39 | 39 |
local: *; |
40 | 40 |
}; |
41 | ||
42 |
LIBGTPNL_1.1 { |
|
43 |
gtp_tunnel_set_family; |
|
44 |
gtp_tunnel_set_ms_ip6; |
|
45 |
gtp_tunnel_set_sgsn_ip6; |
|
46 |
} LIBGTPNL_1.0; |