Lines Matching defs:gre_tunnel
185 struct gre_tunnel {
208 gre_cmp_src(const struct gre_tunnel *,
209 const struct gre_tunnel *);
211 gre_cmp(const struct gre_tunnel *, const struct gre_tunnel *);
213 static int gre_set_tunnel(struct gre_tunnel *, struct if_laddrreq *, int);
214 static int gre_get_tunnel(struct gre_tunnel *, struct if_laddrreq *);
215 static int gre_del_tunnel(struct gre_tunnel *);
217 static int gre_set_vnetid(struct gre_tunnel *, struct ifreq *);
218 static int gre_get_vnetid(struct gre_tunnel *, struct ifreq *);
219 static int gre_del_vnetid(struct gre_tunnel *);
221 static int gre_set_vnetflowid(struct gre_tunnel *, struct ifreq *);
222 static int gre_get_vnetflowid(struct gre_tunnel *, struct ifreq *);
225 gre_encap_dst(const struct gre_tunnel *, const union gre_addr *,
231 gre_encap_dst_ip(const struct gre_tunnel *,
237 gre_ip_output(const struct gre_tunnel *, struct mbuf *);
239 static int gre_tunnel_ioctl(struct ifnet *, struct gre_tunnel *,
242 static uint8_t gre_l2_tos(const struct gre_tunnel *, const struct mbuf *);
243 static uint8_t gre_l3_tos(const struct gre_tunnel *,
251 struct gre_tunnel sc_tunnel; /* must be first */
298 struct gre_tunnel *);
301 gre_ipv4_patch(const struct gre_tunnel *, struct mbuf *,
305 gre_ipv6_patch(const struct gre_tunnel *, struct mbuf *,
310 gre_mpls_patch(const struct gre_tunnel *, struct mbuf *,
318 gre_l3_encap_dst(const struct gre_tunnel *, const void *,
325 struct gre_tunnel sc_tunnel; /* must be first */
366 struct gre_tunnel sc_tunnel; /* must be first */
391 static int egre_input(const struct gre_tunnel *, struct mbuf *, int,
404 struct gre_tunnel sc_tunnel; /* must be first */
429 nvgre_cmp_mcast(const struct gre_tunnel *,
431 const struct gre_tunnel *, const union gre_addr *,
452 static int nvgre_input(const struct gre_tunnel *, struct mbuf *, int,
487 struct gre_tunnel sc_tunnel; /* must be first */
529 eoip_input(struct gre_tunnel *, struct mbuf *,
755 struct gre_tunnel *tunnel;
896 struct gre_tunnel key;
918 struct gre_tunnel key;
940 gre_find(const struct gre_tunnel *key)
958 mgre_find(const struct gre_tunnel *key)
971 gre_input_1(struct gre_tunnel *key, struct mbuf *m,
1003 struct gre_tunnel *key)
1008 const struct gre_tunnel *tunnel;
1012 struct mbuf *(*patch)(const struct gre_tunnel *, struct mbuf *,
1192 gre_ipv4_patch(const struct gre_tunnel *tunnel, struct mbuf *m,
1219 gre_ipv6_patch(const struct gre_tunnel *tunnel, struct mbuf *m,
1251 gre_mpls_patch(const struct gre_tunnel *tunnel, struct mbuf *m,
1291 egre_input(const struct gre_tunnel *key, struct mbuf *m, int hlen, uint8_t otos)
1321 nvgre_mcast_find(const struct gre_tunnel *key, unsigned int if0idx)
1349 nvgre_ucast_find(const struct gre_tunnel *key)
1357 nvgre_input(const struct gre_tunnel *key, struct mbuf *m, int hlen,
1829 gre_l3_encap_dst(const struct gre_tunnel *tunnel, const void *dst,
1906 gre_encap_dst(const struct gre_tunnel *tunnel, const union gre_addr *dst,
1941 gre_encap_dst_ip(const struct gre_tunnel *tunnel, const union gre_addr *dst,
2002 gre_ip_output(const struct gre_tunnel *tunnel, struct mbuf *m)
2028 gre_tunnel_ioctl(struct ifnet *ifp, struct gre_tunnel *tunnel,
2105 gre_l2_tos(const struct gre_tunnel *t, const struct mbuf *m)
2122 gre_l3_tos(const struct gre_tunnel *t, const struct mbuf *m, uint8_t tos)
2351 struct gre_tunnel *tunnel = &sc->sc_tunnel;
2409 struct gre_tunnel *tunnel = &sc->sc_tunnel;
2535 struct gre_tunnel *tunnel = &sc->sc_tunnel;
2955 struct gre_tunnel t;
3079 gre_set_tunnel(struct gre_tunnel *tunnel, struct if_laddrreq *req, int ucast)
3152 gre_get_tunnel(struct gre_tunnel *tunnel, struct if_laddrreq *req)
3203 gre_del_tunnel(struct gre_tunnel *tunnel)
3212 gre_set_vnetid(struct gre_tunnel *tunnel, struct ifreq *ifr)
3240 gre_get_vnetid(struct gre_tunnel *tunnel, struct ifreq *ifr)
3261 gre_del_vnetid(struct gre_tunnel *tunnel)
3269 gre_set_vnetflowid(struct gre_tunnel *tunnel, struct ifreq *ifr)
3299 gre_get_vnetflowid(struct gre_tunnel *tunnel, struct ifreq *ifr)
3405 struct gre_tunnel *tunnel = &sc->sc_tunnel;
3475 struct gre_tunnel *tunnel = &sc->sc_tunnel;
3642 const struct gre_tunnel *tunnel = &sc->sc_tunnel;
3986 eoip_input(struct gre_tunnel *key, struct mbuf *m,
4078 gre_cmp_src(const struct gre_tunnel *a, const struct gre_tunnel *b)
4129 gre_cmp(const struct gre_tunnel *a, const struct gre_tunnel *b)
4157 nvgre_cmp_tunnel(const struct gre_tunnel *a, const struct gre_tunnel *b)
4188 const struct gre_tunnel *a = &na->sc_tunnel;
4189 const struct gre_tunnel *b = &nb->sc_tunnel;
4204 nvgre_cmp_mcast(const struct gre_tunnel *a, const union gre_addr *aa,
4205 unsigned int if0idxa, const struct gre_tunnel *b,
4229 const struct gre_tunnel *a = &na->sc_tunnel;
4230 const struct gre_tunnel *b = &nb->sc_tunnel;
4242 const struct gre_tunnel *a = &ea->sc_tunnel;
4243 const struct gre_tunnel *b = &eb->sc_tunnel;