Lines Matching refs:gre_hd
219 hdr->gre_hd.flags = GRE_KEY | GRE_VERSION_1 | GRE_SEQ; in pptp_xmit()
220 hdr->gre_hd.protocol = GRE_PROTO_PPP; in pptp_xmit()
226 hdr->gre_hd.flags |= GRE_ACK; in pptp_xmit()
291 if (GRE_IS_ACK(header->gre_hd.flags)) { in pptp_rcv_core()
299 ack = GRE_IS_SEQ(header->gre_hd.flags) ? ntohl(header->ack) : in pptp_rcv_core()
310 if (!GRE_IS_SEQ(header->gre_hd.flags)) in pptp_rcv_core()
366 if (header->gre_hd.protocol != GRE_PROTO_PPP || /* PPTP-GRE protocol for PPTP */ in pptp_rcv()
367 GRE_IS_CSUM(header->gre_hd.flags) || /* flag CSUM should be clear */ in pptp_rcv()
368 GRE_IS_ROUTING(header->gre_hd.flags) || /* flag ROUTING should be clear */ in pptp_rcv()
369 !GRE_IS_KEY(header->gre_hd.flags) || /* flag KEY should be set */ in pptp_rcv()
370 (header->gre_hd.flags & GRE_FLAGS)) /* flag Recursion Ctrl should be clear */ in pptp_rcv()