Home
last modified time | relevance | path

Searched refs:ifs (Results 1 – 25 of 40) sorted by relevance

12

/titanic_44/usr/src/uts/common/inet/ipf/
H A Dip_auth.c133 int fr_authinit(ifs) in fr_authinit() argument
134 ipf_stack_t *ifs; in fr_authinit()
136 KMALLOCS(ifs->ifs_fr_auth, frauth_t *,
137 ifs->ifs_fr_authsize * sizeof(*ifs->ifs_fr_auth));
138 if (ifs->ifs_fr_auth != NULL)
139 bzero((char *)ifs->ifs_fr_auth,
140 ifs->ifs_fr_authsize * sizeof(*ifs->ifs_fr_auth));
144 KMALLOCS(ifs->ifs_fr_authpkts, mb_t **,
145 ifs->ifs_fr_authsize * sizeof(*ifs->ifs_fr_authpkts));
146 if (ifs->ifs_fr_authpkts != NULL)
[all …]
H A Dip_frag.c122 int fr_fraginit(ifs) in fr_fraginit() argument
123 ipf_stack_t *ifs; in fr_fraginit()
125 ifs->ifs_ipfr_tail = &ifs->ifs_ipfr_list;
126 ifs->ifs_ipfr_nattail = &ifs->ifs_ipfr_natlist;
127 ifs->ifs_ipfr_ipidtail = &ifs->ifs_ipfr_ipidlist;
132 KMALLOCS(ifs->ifs_ipfr_heads, ipfr_t **,
133 ifs->ifs_ipfr_size * sizeof(ipfr_t *));
134 if (ifs->ifs_ipfr_heads == NULL)
136 bzero((char *)ifs->ifs_ipfr_heads,
137 ifs->ifs_ipfr_size * sizeof(ipfr_t *));
[all …]
H A Dsolaris.c269 ipf_kstat_init(ipf_stack_t *ifs, boolean_t from_gz) in ipf_kstat_init() argument
271 ifs->ifs_kstatp[0] = net_kstat_create(ifs->ifs_netid, in ipf_kstat_init()
275 if (ifs->ifs_kstatp[0] != NULL) { in ipf_kstat_init()
276 bcopy(&ipf_kstat_tmp, ifs->ifs_kstatp[0]->ks_data, in ipf_kstat_init()
278 ifs->ifs_kstatp[0]->ks_update = ipf_kstat_update; in ipf_kstat_init()
279 ifs->ifs_kstatp[0]->ks_private = &ifs->ifs_frstats[0]; in ipf_kstat_init()
280 kstat_install(ifs->ifs_kstatp[0]); in ipf_kstat_init()
283 ifs->ifs_kstatp[1] = net_kstat_create(ifs->ifs_netid, in ipf_kstat_init()
287 if (ifs->ifs_kstatp[1] != NULL) { in ipf_kstat_init()
288 bcopy(&ipf_kstat_tmp, ifs->ifs_kstatp[1]->ks_data, in ipf_kstat_init()
[all …]
H A Dip_lookup.c89 int ip_lookup_init(ifs) in ip_lookup_init() argument
90 ipf_stack_t *ifs; in ip_lookup_init()
93 if (ip_pool_init(ifs) == -1)
96 RWLOCK_INIT(&ifs->ifs_ip_poolrw, "ip pool rwlock");
98 ifs->ifs_ip_lookup_inited = 1;
99 ifs->ifs_ipftokenhead = NULL;
100 ifs->ifs_ipftokentail = &ifs->ifs_ipftokenhead;
114 void ip_lookup_unload(ifs) in ip_lookup_unload() argument
115 ipf_stack_t *ifs; in ip_lookup_unload()
117 ip_pool_fini(ifs);
[all …]
H A Dip_log.c168 int fr_loginit(ifs) in fr_loginit() argument
169 ipf_stack_t *ifs; in fr_loginit()
174 ifs->ifs_iplt[i] = NULL;
175 ifs->ifs_ipll[i] = NULL;
176 ifs->ifs_iplh[i] = &ifs->ifs_iplt[i];
177 ifs->ifs_iplused[i] = 0;
178 bzero((char *)&ifs->ifs_iplcrc[i], sizeof(ifs->ifs_iplcrc[i]));
189 cv_init(&ifs->ifs_iplwait, "ipl condvar", CV_DRIVER, NULL);
191 MUTEX_INIT(&ifs->ifs_ipl_mutex, "ipf log mutex");
193 ifs->ifs_ipl_log_init = 1;
[all …]
H A Dip_fil_solaris.c166 int ipldetach(ifs) in ipldetach() argument
167 ipf_stack_t *ifs; in ipldetach()
170 ASSERT(RW_WRITE_HELD(&ifs->ifs_ipf_global.ipf_lk));
174 if (ifs->ifs_fr_control_forwarding & 2) {
190 RWLOCK_EXIT(&ifs->ifs_ipf_global);
194 if (ifs->_f != NULL) { \
195 if (ifs->_b) { \
196 int tmp = net_hook_unregister(ifs->_f, \
197 _e, ifs->_h); \
198 ifs->_b = (tmp != 0 && tmp != ENXIO); \
[all …]
H A Dip_pool.c122 RWLOCK_INIT(&ifs->ifs_ip_poolrw, "poolrw");
123 ip_pool_init(ifs);
131 if (ip_pool_create(&op, ifs) == 0)
132 ipo = ip_pool_find(0, "0", ifs);
136 ip_pool_insert(ipo, &a, &b, 1, ifs);
137 ip_pool_insert(ipo, &a, &b, 1, ifs);
141 ip_pool_insert(ipo, &a, &b, 0, ifs);
142 ip_pool_insert(ipo, &a, &b, 0, ifs);
146 ip_pool_insert(ipo, &a, &b, 1, ifs);
147 ip_pool_insert(ipo, &a, &b, 1, ifs);
[all …]
H A Dip_state.c142 #define DOUBLE_HASH(x, ifs) \ argument
143 (((x) + ifs->ifs_ips_seed[(x) % ifs->ifs_fr_statesize]) % ifs->ifs_fr_statesize)
154 int fr_stateinit(ifs) in fr_stateinit() argument
155 ipf_stack_t *ifs; in fr_stateinit()
162 KMALLOCS(ifs->ifs_ips_table, ipstate_t **,
163 ifs->ifs_fr_statesize * sizeof(ipstate_t *));
164 if (ifs->ifs_ips_table == NULL)
166 bzero((char *)ifs->ifs_ips_table,
167 ifs->ifs_fr_statesize * sizeof(ipstate_t *));
169 KMALLOCS(ifs->ifs_ips_seed, u_long *,
[all …]
H A Dip_nat.c179 int fr_natinit(ifs) in fr_natinit() argument
180 ipf_stack_t *ifs; in fr_natinit()
184 KMALLOCS(ifs->ifs_nat_table[0], nat_t **,
185 sizeof(nat_t *) * ifs->ifs_ipf_nattable_sz);
186 if (ifs->ifs_nat_table[0] != NULL)
187 bzero((char *)ifs->ifs_nat_table[0],
188 ifs->ifs_ipf_nattable_sz * sizeof(nat_t *));
192 KMALLOCS(ifs->ifs_nat_table[1], nat_t **,
193 sizeof(nat_t *) * ifs->ifs_ipf_nattable_sz);
194 if (ifs->ifs_nat_table[1] != NULL)
[all …]
H A Dfil.c947 ipf_stack_t *ifs = fin->fin_ifs; local
998 if (icmp->icmp_nextmtu < ifs->ifs_fr_icmpminfragmtu)
1680 ipf_stack_t *ifs = fin->fin_ifs; local
1719 i = (*fr->fr_srcfunc)(fr->fr_srcptr, fi->fi_v, lip, fin, ifs);
1762 i = (*fr->fr_dstfunc)(fr->fr_dstptr, fi->fi_v, lip, fin, ifs);
1868 ipf_stack_t *ifs = fin->fin_ifs; local
2018 IPF_BUMP(ifs->ifs_frstats[fin->fin_out].fr_skip);
2020 IPF_BUMP(ifs->ifs_frstats[fin->fin_out].fr_pkl);
2060 IPF_BUMP(ifs->ifs_frstats[out].fr_ads);
2062 IPF_BUMP(ifs->ifs_frstats[out].fr_bads);
[all …]
H A Dip_htable.c69 void fr_htable_unload(ifs) in fr_htable_unload() argument
70 ipf_stack_t *ifs; in fr_htable_unload()
75 (void)fr_flushhtable(&fop, ifs);
79 int fr_gethtablestat(op, ifs) in fr_gethtablestat() argument
81 ipf_stack_t *ifs;
88 stats.iphs_tables = ifs->ifs_ipf_htables[op->iplo_unit];
89 stats.iphs_numtables = ifs->ifs_ipf_nhtables[op->iplo_unit];
90 stats.iphs_numnodes = ifs->ifs_ipf_nhtnodes[op->iplo_unit];
91 stats.iphs_nomem = ifs->ifs_ipht_nomem[op->iplo_unit];
101 int fr_newhtable(op, ifs) in fr_newhtable() argument
[all …]
H A Dip_nat6.c137 void nat6_addrdr(n, ifs) in nat6_addrdr() argument
139 ipf_stack_t *ifs;
148 ifs->ifs_rdr6_masks[k >> 5] |= 1 << (k & 31);
150 hv = NAT_HASH_FN6(&j, 0, ifs->ifs_ipf_rdrrules_sz);
151 np = ifs->ifs_rdr_rules + hv;
170 void nat6_addnat(n, ifs) in nat6_addnat() argument
172 ipf_stack_t *ifs;
181 ifs->ifs_nat6_masks[k >> 5] |= 1 << (k & 31);
183 hv = NAT_HASH_FN6(&j, 0, ifs->ifs_ipf_natrules_sz);
184 np = ifs->ifs_nat_rules + hv;
[all …]
H A Dip_proxy.c184 int appr_add(ap, ifs) in appr_add() argument
186 ipf_stack_t *ifs;
190 for (a = ifs->ifs_ap_proxies; a->apr_p; a++)
200 for (a = ifs->ifs_ap_proxylist; a->apr_p; a = a->apr_next)
209 ap->apr_next = ifs->ifs_ap_proxylist;
210 ifs->ifs_ap_proxylist = ap;
212 return (*ap->apr_init)(&ap->apr_private, ifs);
223 int appr_ctl(ctl, ifs) in appr_ctl() argument
225 ipf_stack_t *ifs;
230 a = appr_lookup(ctl->apc_p, ctl->apc_label, ifs);
[all …]
/titanic_44/usr/src/cmd/ipf/tools/
H A Dip_fil.c153 static int frzerostats __P((caddr_t, ipf_stack_t *ifs));
176 int iplattach(ifs) in iplattach() argument
177 ipf_stack_t *ifs; in iplattach()
179 ifs->ifs_fr_running = 1;
184 int ipldetach(ifs) in ipldetach() argument
185 ipf_stack_t *ifs; in ipldetach()
187 ifs->ifs_fr_running = -1;
192 static int frzerostats(data, ifs) in frzerostats() argument
194 ipf_stack_t *ifs;
199 fr_getstat(&fio, ifs);
[all …]
H A Dipftest.c28 void dumpnat __P((ipf_stack_t *ifs));
29 void dumpstate __P((ipf_stack_t *ifs));
30 void dumplookups __P((ipf_stack_t *ifs));
31 void dumpgroups __P((ipf_stack_t *ifs));
32 void drain_log __P((char *, ipf_stack_t *ifs));
78 ipf_stack_t *ifs; local
92 ifs = create_ifs();
95 ifs->ifs_fr_pass = FR_BLOCK|FR_NOMATCH;
97 ifs->ifs_fr_pass = (IPF_DEFAULT_PASS)|FR_NOMATCH;
99 ipftuneable_alloc(ifs);
[all …]
H A Dipfs.c110 int changestateif(ifs, fname) in changestateif() argument
111 char *ifs, *fname; in changestateif()
118 s = strchr(ifs, ',');
123 olen = strlen(ifs);
136 if (!strncmp(ips.ips_is.is_ifname[0], ifs, olen + 1)) {
140 if (!strncmp(ips.ips_is.is_ifname[1], ifs, olen + 1)) {
165 int changenatif(ifs, fname) in changenatif() argument
166 char *ifs, *fname; in changenatif()
174 s = strchr(ifs, ',');
179 olen = strlen(ifs);
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c63 struct interface ifs; in initifs() local
106 bzero((char *)&ifs, sizeof (ifs)); in initifs()
123 ifs.int_flags |= RIP6_IFF_POINTOPOINT; in initifs()
125 ifs.int_flags |= RIP6_IFF_NORTEXCH; in initifs()
127 ifs.int_flags |= RIP6_IFF_PRIVATE; in initifs()
129 ifs.int_flags |= RIP6_IFF_UP; in initifs()
146 if (ifs.int_flags & RIP6_IFF_POINTOPOINT) { in initifs()
157 ifs.int_addr = in initifs()
165 ifs.int_dstaddr = ((struct sockaddr_in6 *) in initifs()
167 ifs.int_prefix_length = IPV6_ABITS; in initifs()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dif.c1031 struct interface ifs, *ifp, *ifp1; in ifscan() local
1127 (void) memset(&ifs, 0, sizeof (ifs)); in ifscan()
1129 (void) strlcpy(ifs.int_name, lifrp->lifr_name, in ifscan()
1130 sizeof (ifs.int_name)); in ifscan()
1133 ifs.int_addr = ((struct sockaddr_in *)&lifrp->lifr_addr)-> in ifscan()
1140 ifs.int_name, rip_strerror(errno)); in ifscan()
1142 ifs.int_if_flags = 0; in ifscan()
1144 ifs.int_if_flags = lifrp->lifr_flags; in ifscan()
1147 if (IN_CLASSD(ntohl(ifs.int_addr)) || in ifscan()
1148 (ntohl(ifs.int_addr) & IN_CLASSA_NET) == 0) { in ifscan()
[all …]
/titanic_44/usr/src/uts/common/inet/ipf/netinet/
H A Dip_ipsec_pxy.c36 int ippr_ipsec_init(private, ifs) in ippr_ipsec_init() argument
38 ipf_stack_t *ifs;
53 ifsipsec->ipsecnattqe = fr_addtimeoutqueue(&ifs->ifs_nat_utqe, ifsipsec->ipsec_proxy_ttl, ifs);
59 ifsipsec->ipsecstatetqe = fr_addtimeoutqueue(&ifs->ifs_ips_utqe, ifsipsec->ipsec_proxy_ttl, ifs);
62 fr_freetimeoutqueue(ifsipsec->ipsecnattqe, ifs);
81 void ippr_ipsec_fini(private, ifs) in ippr_ipsec_fini() argument
83 ipf_stack_t *ifs;
89 fr_freetimeoutqueue(ifsipsec->ipsecnattqe, ifs);
94 fr_freetimeoutqueue(ifsipsec->ipsecstatetqe, ifs);
124 ipf_stack_t *ifs = fin->fin_ifs; local
[all …]
H A Dip_h323_pxy.c91 int ippr_h323_init(private, ifs) in ippr_h323_init() argument
93 ipf_stack_t *ifs;
113 void ippr_h323_fini(private, ifs) in ippr_h323_fini() argument
115 ipf_stack_t *ifs;
145 void ippr_h323_del(aps, private, ifs) in ippr_h323_del() argument
148 ipf_stack_t *ifs;
165 NAT_LOCKHELD|FWRITE, 0, NULL, ifs) == -1) {
191 ipf_stack_t *ifs = fin->fin_ifs; local
230 RWLOCK_EXIT(&ifs->ifs_ipf_nat);
232 NAT_SYSSPACE|FWRITE, 0, NULL, ifs) == -1) {
[all …]
H A Dip_pptp_pxy.c61 int ippr_pptp_init(private, ifs) in ippr_pptp_init() argument
63 ipf_stack_t *ifs;
86 void ippr_pptp_fini(private, ifs) in ippr_pptp_fini() argument
88 ipf_stack_t *ifs;
181 ipf_stack_t *ifs = fin->fin_ifs; local
219 fr_queueback(&nat2->nat_tqe, ifs);
230 READ_ENTER(&ifs->ifs_ipf_state);
232 fr_queueback(&pptp->pptp_state->is_sti, ifs);
233 RWLOCK_EXIT(&ifs->ifs_ipf_state);
235 RWLOCK_EXIT(&ifs->ifs_ipf_state);
[all …]
H A Dip_netbios_pxy.c55 int ippr_netbios_init(private, ifs) in ippr_netbios_init() argument
57 ipf_stack_t *ifs;
78 void ippr_netbios_fini(private, ifs) in ippr_netbios_fini() argument
80 ipf_stack_t *ifs;
H A Dip_rpcb_pxy.c112 ippr_rpcb_init(private, ifs) in ippr_rpcb_init() argument
114 ipf_stack_t *ifs;
144 ippr_rpcb_fini(private, ifs) in ippr_rpcb_fini() argument
146 ipf_stack_t *ifs;
202 ippr_rpcb_del(aps, private, ifs) in ippr_rpcb_del() argument
205 ipf_stack_t *ifs;
210 ifs = ifs; /* LINT */
1185 ipf_stack_t *ifs = fin->fin_ifs; local
1227 RWLOCK_EXIT(&ifs->ifs_ipf_state);
1229 RWLOCK_EXIT(&ifs->ifs_ipf_nat);
[all …]
H A Dip_rcmd_pxy.c34 int ippr_rcmd_init(private, ifs) in ippr_rcmd_init() argument
36 ipf_stack_t *ifs;
57 void ippr_rcmd_fini(private, ifs) in ippr_rcmd_fini() argument
59 ipf_stack_t *ifs;
/titanic_44/usr/src/lib/libsldap/common/
H A Dns_common.c760 __s_api_IPv4sameNet(char *addr, struct ifinfo *ifs) in __s_api_IPv4sameNet() argument
764 if (addr && ifs) { in __s_api_IPv4sameNet()
779 for (i = 0; ifs[i].addr.s_addr != 0; i++) { in __s_api_IPv4sameNet()
780 if ((iaddr & ifs[i].netmask.s_addr) == in __s_api_IPv4sameNet()
781 (ifs[i].addr.s_addr & in __s_api_IPv4sameNet()
782 ifs[i].netmask.s_addr)) in __s_api_IPv4sameNet()
957 struct ifinfo *ifs = __s_api_get_local_interfaces(); in sortServerNet() local
975 free(ifs); in sortServerNet()
976 ifs = NULL; in sortServerNet()
985 free(ifs); in sortServerNet()
[all …]

12