Lines Matching defs:gre
55 key = tuple->src.u.gre.key;
57 key = tuple->dst.u.gre.key;
59 return ntohl(key) >= ntohl(min->gre.key)
60 && ntohl(key) <= ntohl(max->gre.key);
74 keyptr = &tuple->src.u.gre.key;
76 keyptr = &tuple->dst.u.gre.key;
80 switch (tuple->dst.u.gre.version) {
100 min = ntohl(range->min.gre.key);
101 range_size = ntohl(range->max.gre.key) - min + 1;
140 manip->u.gre.key,
143 *(gre_key(greh)) = manip->u.gre.key;
147 ntohl(manip->u.gre.key));
148 pgreh->call_id = htons(ntohl(manip->u.gre.key));
165 if (mask->dst.u.gre.version)
167 ntohs(match->dst.u.gre.version));
169 if (mask->dst.u.gre.protocol)
171 ntohs(match->dst.u.gre.protocol));
173 if (mask->src.u.gre.key)
175 ntohl(match->src.u.gre.key));
177 if (mask->dst.u.gre.key)
179 ntohl(match->src.u.gre.key));
188 if (range->min.gre.key != 0
189 || range->max.gre.key != 0xFFFF) {
190 if (range->min.gre.key == range->max.gre.key)
192 ntohl(range->min.gre.key));
195 ntohl(range->min.gre.key),
196 ntohl(range->max.gre.key));
202 static struct ip_nat_protocol gre =
213 if (ip_nat_protocol_register(&gre))
221 ip_nat_protocol_unregister(&gre);