Lines Matching defs:ni
272 /* ni(I) - pointer to structure with misc. information needed */
277 /* ni.nai_ip is passed in uninitialised and must be set, in host byte order,*/
280 static INLINE int nat6_newmap(fin, nat, ni)
283 natinfo_t *ni;
300 np = ni->nai_np;
303 flags = ni->nai_flags;
304 sport = ni->nai_sport;
305 dport = ni->nai_dport;
528 ni->nai_port = port;
529 ni->nai_nport = dport;
540 /* ni(I) - pointer to structure with misc. information needed */
543 /* ni.nai_ip is passed in uninitialised and must be set, in host byte order,*/
546 static INLINE int nat6_newrdr(fin, nat, ni)
549 natinfo_t *ni;
567 np = ni->nai_np;
568 flags = ni->nai_flags;
569 sport = ni->nai_sport;
570 dport = ni->nai_dport;
586 ni->nai_np = np;
700 ni->nai_nport = nport;
701 ni->nai_port = sport;
747 natinfo_t ni;
767 ni.nai_np = np;
768 ni.nai_nflags = nflags;
769 ni.nai_flags = flags;
792 ni.nai_sport = htons(fin->fin_sport);
793 ni.nai_dport = htons(fin->fin_dport);
808 ni.nai_sport = ((struct icmp6_hdr *)fin->fin_dp)->icmp6_id;
809 ni.nai_dport = ni.nai_sport;
837 move = nat6_newmap(fin, nat, &ni);
841 np = ni.nai_np;
854 move = nat6_newrdr(fin, nat, &ni);
858 np = ni.nai_np;
871 if (nat6_finalise(fin, nat, &ni, tcp, natsave, direction) == -1) {
899 /* ni(I) - pointer to structure with misc. information needed */
907 static INLINE int nat6_finalise(fin, nat, ni, tcp, natsave, direction)
910 natinfo_t *ni;
919 np = ni->nai_np;
941 if ((np->in_apr != NULL) && ((ni->nai_flags & NAT_SLAVE) == 0))