Searched refs:iph (Results 1 - 24 of 24) sorted by relevance

/freebsd-10.0-release/contrib/ipfilter/lib/
H A Dremove_hash.c24 iphtable_t iph; local
34 op.iplo_size = sizeof(iph);
35 op.iplo_struct = &iph;
37 bzero((char *)&iph, sizeof(iph));
38 iph.iph_unit = iphp->iph_unit;
39 iph.iph_type = iphp->iph_type;
40 strncpy(iph.iph_name, iphp->iph_name, sizeof(iph.iph_name));
41 iph
[all...]
H A Dload_hash.c25 iphtable_t iph; local
36 bzero((char *)&iph, sizeof(iph));
43 op.iplo_size = sizeof(iph);
44 op.iplo_struct = &iph;
45 iph = *iphp;
57 iph.iph_size = size;
58 iph.iph_table = NULL;
59 iph.iph_list = NULL;
60 iph
[all...]
H A Dprinthash.c21 iphtable_t iph; local
25 if ((*copyfunc)((char *)hp, (char *)&iph, sizeof(iph)))
28 if ((name != NULL) && strncmp(name, iph.iph_name, FR_GROUPLEN))
29 return iph.iph_next;
40 sz = iph.iph_size * sizeof(*table);
42 if ((*copyfunc)((char *)iph.iph_table, (char *)table, sz))
45 for (printed = 0, ipep = iph.iph_list; ipep != NULL; ) {
46 ipep = printhashnode(&iph, ipep, copyfunc, opts, fields);
57 return iph
[all...]
H A Dprinthashnode.c13 printhashnode(iph, ipep, copyfunc, opts, fields)
14 iphtable_t *iph;
28 iph->iph_size);
55 switch (iph->iph_type & ~IPHASH_ANON)
58 if (strncmp(ipe.ipe_group, iph->iph_name,
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/
H A Dip_htable.c282 iphtable_t htab, *iph, *oiph; local
308 iph = ipf_htable_exists(softh, unit, op->iplo_name);
309 if (iph != NULL) {
310 if ((iph->iph_flags & IPHASH_DELETE) == 0) {
314 iph->iph_flags &= ~IPHASH_DELETE;
315 iph->iph_ref++;
320 KMALLOC(iph, iphtable_t *);
321 if (iph == NULL) {
326 *iph = htab;
344 (void)strncpy(iph
420 iphtable_t *iph; local
545 iphtable_t *iph; local
683 iphtable_t *iph = object; local
734 iphtable_t *iph; local
775 iphtable_t *iph; local
800 iphtable_t *iph; local
825 iphtable_t *iph; local
863 iphtable_t *iph; local
1108 iphtable_t *iph; local
1145 iphtable_t *iph; local
1236 iphtable_t *iph, zp, *nextiph; local
1457 iphtable_t *iph; local
[all...]
H A Dip_nat6.c2624 i6addr_t ipa, iph; local
2702 IP6_AND(&ipa, msk, &iph);
2703 hv = NAT_HASH_FN6(&iph, 0, softn->ipf_nat_maprules_sz);
3024 i6addr_t ipa, iph; local
3102 IP6_AND(&ipa, msk, &iph);
3103 hv = NAT_HASH_FN6(&iph, 0, softn->ipf_nat_rdrrules_sz);
H A Dfil.c5553 iphtable_t *iph; local
5560 iph = ipf_lookup_find_htable(softc, IPL_LOGIPF, name);
5561 if (iph == NULL) {
5565 if ((iph->iph_flags & FR_INOUT) != (fr->fr_flags & FR_INOUT)) {
5569 iph->iph_ref++;
5570 fr->fr_ptr = iph;
5589 iphtable_t *iph; local
5590 iph = fr->fr_ptr;
5591 if (iph != NULL)
5592 ipf_lookup_deref(softc, IPLT_HASH, iph);
[all...]
H A Dip_nat.c4867 u_32_t ipa, iph; local
4948 iph = ipa & msk;
4949 hv = NAT_HASH_FN(iph, 0, softn->ipf_nat_maprules_sz);
5363 u_32_t iph; local
5434 iph = in.s_addr & msk;
5435 hv = NAT_HASH_FN(iph, 0, softn->ipf_nat_rdrrules_sz);
5437 /* TRACE (iph,msk,rmsk,hv,softn->ipf_nat_rdrrules_sz) */
/freebsd-10.0-release/sys/ofed/drivers/net/mlx4/
H A Den_frag.c44 struct ip *iph)
53 if (session->daddr == iph->ip_dst.s_addr &&
54 session->saddr == iph->ip_src.s_addr &&
55 session->id == iph->ip_id &&
56 session->protocol == iph->ip_p) {
64 struct ip *iph)
90 struct ip *iph = mb->m_pkthdr.PH_loc.ptr; local
94 iph->ip_len = htons(session->total_len);
95 iph->ip_off = htons(more | (session->offset >> 3));
96 iph
43 find_session(struct mlx4_en_rx_ring *ring, struct ip *iph) argument
63 start_session(struct mlx4_en_rx_ring *ring, struct ip *iph) argument
128 struct ip *iph; local
[all...]
H A Den_tx.c627 struct ip *iph; local
649 iph = (struct ip *)(mtod(mb, char *) + len);
650 len += iph->ip_hl << 2;
652 hash_index = be32_to_cpu(iph->ip_dst.s_addr) & MLX4_EN_TX_HASH_MASK;
653 switch(iph->ip_p) {
/freebsd-10.0-release/tools/tools/net80211/wesside/dics/
H A Ddics.c164 struct ip* iph;
170 iph = (struct ip*) buf;
171 uh = (struct udphdr*) ((char*)iph + 20);
178 strcpy(ip, inet_ntoa(iph->ip_src));
179 *ttl = iph->ip_ttl;
231 struct ip* iph; local
237 iph = (struct ip*) buf;
238 iph->ip_hl = 5;
239 iph->ip_v = 4;
240 iph
[all...]
/freebsd-10.0-release/sys/dev/sfxge/
H A Dsfxge_rx.c333 struct ip *iph = c->nh; local
334 iph->ip_len = htons(iph->ip_len);
335 iph->ip_sum = 0;
336 iph->ip_sum = in_cksum_hdr(iph);
337 c_th = (struct tcphdr *)(iph + 1);
341 struct ip6_hdr *iph = c->nh; local
342 iph->ip6_plen = htons(iph
425 struct ip *iph = c->nh; local
429 struct ip6_hdr *iph = c->nh; local
458 struct ip *iph = nh; local
461 struct ip6_hdr *iph = nh; local
481 struct ip *iph = c->next_nh; local
485 struct ip6_hdr *iph = c->next_nh; local
651 struct ip *iph = nh; local
658 struct ip6_hdr *iph = nh; local
676 struct ip *c_iph, *iph = nh; local
682 struct ip6_hdr *c_iph, *iph = nh; local
[all...]
/freebsd-10.0-release/sys/dev/fdt/
H A Dsimplebus.c342 ihandle_t iph; local
351 if (OF_getprop(di->di_ofw.obd_node, "interrupt-parent", &iph,
352 sizeof(iph)) > 0) {
353 iph = fdt32_to_cpu(iph);
354 ph = OF_instance_to_package(iph);
356 if (ic->iph == ph) {
H A Dfdt_common.h76 ihandle_t iph; member in struct:fdt_ic
H A Dfdt_common.c503 ihandle_t iph; local
516 if (OF_getprop(node, "interrupt-parent", &iph, sizeof(iph)) <= 0) {
520 iph = fdt32_to_cpu(iph);
521 intr_par = OF_instance_to_package(iph);
H A Dfdt_pci.c258 ihandle_t iph; local
282 iph = fdt32_to_cpu(map_ptr[par_idx]);
283 intr_par = OF_instance_to_package(iph);
/freebsd-10.0-release/sys/dev/xen/netback/
H A Dnetback_unit_tests.c2154 struct ip *iph; local
2170 iph = (struct ip*)(eh + 1);
2171 iph->ip_hl = 0x5; /* 5 dwords == 20 bytes */
2172 iph->ip_v = 4; /* IP v4 */
2173 iph->ip_tos = 0;
2174 iph->ip_len = htons(ip_len);
2175 iph->ip_id = htons(ip_id);
2176 iph->ip_off = htons(ip_off);
2177 iph->ip_ttl = 64;
2178 iph
2196 struct ip *iph; local
2262 struct ip *iph; local
2314 struct ip *iph; local
2367 struct ip *iph; local
2408 struct ip *iph; local
[all...]
H A Dnetback.c2141 struct ip *iph; local
2151 iph = (struct ip*)(eh + 1);
2153 iph->ip_sum = 0;
2154 iph->ip_sum = in_cksum_hdr(iph);
2157 switch (iph->ip_p) {
2160 size_t tcplen = ntohs(iph->ip_len) - sizeof(struct ip);
2161 struct tcphdr *th = (struct tcphdr*)(iph + 1);
2162 th->th_sum = in_pseudo(iph->ip_src.s_addr,
2163 iph
[all...]
/freebsd-10.0-release/contrib/ipfilter/tools/
H A Dippool.c269 iphtable_t iph; local
277 bzero((char *)&iph, sizeof(iph));
304 iph.iph_seed = atoi(optarg);
319 type = gettype(argv[optind], &iph.iph_type);
326 strncpy(iph.iph_name, poolname, sizeof(iph.iph_name));
327 iph.iph_name[sizeof(iph.iph_name) - 1] = '\0';
328 iph
[all...]
H A Dipf_y.y2336 iphtable_t iph;
2363 bzero((char *)&iph, sizeof(iph));
2364 iph.iph_unit = IPL_LOGIPF;
2365 iph.iph_type = IPHASH_LOOKUP;
2366 *iph.iph_name = '\0';
2368 if (load_hash(&iph, top, ipfioctls[IPL_LOGLOOKUP]) == 0)
2369 sscanf(iph.iph_name, "%u", &num);
/freebsd-10.0-release/crypto/openssh/openbsd-compat/
H A Dport-tun.c209 struct ip *iph; local
222 iph = (struct ip *)(ptr + sizeof(u_int32_t));
223 switch (iph->ip_v) {
/freebsd-10.0-release/sys/dev/nxge/xgehal/
H A Dxgehal-device-fp.c750 u8 ch, *iph = (u8 *)ip; local
754 ch = ntohs(*((u8 *)(iph + i)) );
/freebsd-10.0-release/sys/mips/beri/
H A Dberi_pic.c440 fic->iph = ph;
/freebsd-10.0-release/sys/netinet/
H A Dsctputil.c6783 struct ip *iph; local
6798 iph = mtod(m, struct ip *);
6799 uhdr = (struct udphdr *)((caddr_t)iph + off);
6828 iph = mtod(m, struct ip *);
6829 switch (iph->ip_v) {
6832 iph->ip_len = htons(ntohs(iph->ip_len) - sizeof(struct udphdr));

Completed in 255 milliseconds