Lines Matching defs:frag
128 /* the IP frag related variables are set in ipftuneable_setdefs() to
205 /* Returns: ipfrstat_t* - pointer to struct with current frag stats */
224 /* frag(O) - pointer to ipfr_t structure to fill */
229 static INLINE int ipfr_index(fin, frag)
231 ipfr_t *frag;
246 frag->ipfr_p = fin->fin_fi.fi_p;
247 frag->ipfr_id = fin->fin_id;
248 frag->ipfr_tos = ip6->ip6_flow & IPV6_FLOWINFO_MASK;
249 frag->ipfr_src.in6 = ip6->ip6_src;
250 frag->ipfr_dst.in6 = ip6->ip6_dst;
256 frag->ipfr_p = ip->ip_p;
257 frag->ipfr_id = ip->ip_id;
258 frag->ipfr_tos = ip->ip_tos;
259 frag->ipfr_src.in4.s_addr = ip->ip_src.s_addr;
260 frag->ipfr_src.i6[1] = 0;
261 frag->ipfr_src.i6[2] = 0;
262 frag->ipfr_src.i6[3] = 0;
263 frag->ipfr_dst.in4.s_addr = ip->ip_dst.s_addr;
264 frag->ipfr_dst.i6[1] = 0;
265 frag->ipfr_dst.i6[2] = 0;
266 frag->ipfr_dst.i6[3] = 0;
268 frag->ipfr_ifp = fin->fin_ifp;
269 frag->ipfr_optmsk = fin->fin_fi.fi_optmsk & IPF_OPTCOPY;
270 frag->ipfr_secmsk = fin->fin_fi.fi_secmsk;
271 frag->ipfr_auth = fin->fin_fi.fi_auth;
273 idx = frag->ipfr_p;
274 idx += frag->ipfr_id;
275 idx += frag->ipfr_src.i6[0];
276 idx += frag->ipfr_src.i6[1];
277 idx += frag->ipfr_src.i6[2];
278 idx += frag->ipfr_src.i6[3];
279 idx += frag->ipfr_dst.i6[0];
280 idx += frag->ipfr_dst.i6[1];
281 idx += frag->ipfr_dst.i6[2];
282 idx += frag->ipfr_dst.i6[3];
294 /* table(I) - pointer to frag table to add to */
304 ipfr_t *fra, frag;
318 idx = ipfr_index(fin, &frag);
324 if (!bcmp((char *)&frag.ipfr_ifp, (char *)&fra->ipfr_ifp,
361 bcopy((char *)&frag.ipfr_ifp, (char *)&fra->ipfr_ifp, IPFR_CMPSZ);
485 /* matching entry in the frag table, else NULL */
496 ipfr_t *f, frag;
509 idx = ipfr_index(fin, &frag);
515 if (!bcmp((char *)&frag.ipfr_ifp, (char *)&f->ipfr_ifp,
589 /* Returns: nat_t* - pointer to 'parent' NAT structure if frag table */
654 /* the frag cache table, else NULL. */
745 /* tail(IO) - pointer to the pointer to the tail of the frag */
951 ipfr_t *frag, *next, zero;
959 frag = token->ipt_data;
960 if (frag == NULL)
963 next = frag->ipfr_next;
992 if (frag != NULL)
993 fr_fragderef(&frag, lock, ifs);