Lines Matching refs:gtp1
574 struct gtp1_header *gtp1; in gtp1u_udp_encap_recv() local
580 gtp1 = (struct gtp1_header *)(skb->data + sizeof(struct udphdr)); in gtp1u_udp_encap_recv()
582 if ((gtp1->flags >> 5) != GTP_V1) in gtp1u_udp_encap_recv()
589 if (gtp1->type == GTP_ECHO_REQ && gtp->sk_created) in gtp1u_udp_encap_recv()
592 if (gtp1->type == GTP_ECHO_RSP && gtp->sk_created) in gtp1u_udp_encap_recv()
595 if (gtp1->type != GTP_TPDU) in gtp1u_udp_encap_recv()
604 if (gtp1->flags & GTP1_F_MASK) in gtp1u_udp_encap_recv()
611 gtp1 = (struct gtp1_header *)(skb->data + sizeof(struct udphdr)); in gtp1u_udp_encap_recv()
613 pctx = gtp1_pdp_find(gtp, ntohl(gtp1->tid)); in gtp1u_udp_encap_recv()
755 struct gtp1_header *gtp1; in gtp1_push_header() local
757 gtp1 = skb_push(skb, sizeof(*gtp1)); in gtp1_push_header()
765 gtp1->flags = 0x30; /* v1, GTP-non-prime. */ in gtp1_push_header()
766 gtp1->type = GTP_TPDU; in gtp1_push_header()
767 gtp1->length = htons(payload_len); in gtp1_push_header()
768 gtp1->tid = htonl(pctx->u.v1.o_tei); in gtp1_push_header()