Lines Matching defs:ni

2082 /*              ni(I)  - pointer to structure with misc. information needed */
2087 /* ni.nai_ip is passed in uninitialised and must be set, in host byte order,*/
2090 static INLINE int nat_newmap(fin, nat, ni)
2093 natinfo_t *ni;
2111 np = ni->nai_np;
2114 flags = ni->nai_flags;
2115 sport = ni->nai_sport;
2116 dport = ni->nai_dport;
2319 ni->nai_ip.s_addr = in.s_addr;
2320 ni->nai_port = port;
2321 ni->nai_nport = dport;
2332 /* ni(I) - pointer to structure with misc. information needed */
2335 /* ni.nai_ip is passed in uninitialised and must be set, in host byte order,*/
2338 static INLINE int nat_newrdr(fin, nat, ni)
2341 natinfo_t *ni;
2356 np = ni->nai_np;
2357 flags = ni->nai_flags;
2358 sport = ni->nai_sport;
2359 dport = ni->nai_dport;
2375 ni->nai_np = np;
2482 ni->nai_ip.s_addr = in.s_addr;
2483 ni->nai_nport = nport;
2484 ni->nai_port = sport;
2530 natinfo_t ni;
2554 ni.nai_np = np;
2555 ni.nai_nflags = nflags;
2556 ni.nai_flags = flags;
2578 ni.nai_sport = htons(fin->fin_sport);
2579 ni.nai_dport = htons(fin->fin_dport);
2594 ni.nai_sport = ((icmphdr_t *)fin->fin_dp)->icmp_id;
2595 ni.nai_dport = ni.nai_sport;
2623 move = nat_newmap(fin, nat, &ni);
2627 np = ni.nai_np;
2640 move = nat_newrdr(fin, nat, &ni);
2644 np = ni.nai_np;
2657 if (nat_finalise(fin, nat, &ni, tcp, natsave, direction) == -1) {
2686 /* ni(I) - pointer to structure with misc. information needed */
2694 static INLINE int nat_finalise(fin, nat, ni, tcp, natsave, direction)
2697 natinfo_t *ni;
2706 np = ni->nai_np;
2726 if ((np->in_apr != NULL) && ((ni->nai_flags & NAT_SLAVE) == 0))