Lines Matching refs:gtp1
243 struct gtp1_header *gtp1; in gtp1u_udp_encap_recv() local
249 gtp1 = (struct gtp1_header *)(skb->data + sizeof(struct udphdr)); in gtp1u_udp_encap_recv()
251 if ((gtp1->flags >> 5) != GTP_V1) in gtp1u_udp_encap_recv()
254 if (gtp1->type != GTP_TPDU) in gtp1u_udp_encap_recv()
263 if (gtp1->flags & GTP1_F_MASK) in gtp1u_udp_encap_recv()
270 gtp1 = (struct gtp1_header *)(skb->data + sizeof(struct udphdr)); in gtp1u_udp_encap_recv()
272 pctx = gtp1_pdp_find(gtp, ntohl(gtp1->tid)); in gtp1u_udp_encap_recv()
418 struct gtp1_header *gtp1; in gtp1_push_header() local
420 gtp1 = skb_push(skb, sizeof(*gtp1)); in gtp1_push_header()
428 gtp1->flags = 0x30; /* v1, GTP-non-prime. */ in gtp1_push_header()
429 gtp1->type = GTP_TPDU; in gtp1_push_header()
430 gtp1->length = htons(payload_len); in gtp1_push_header()
431 gtp1->tid = htonl(pctx->u.v1.o_tei); in gtp1_push_header()