/freebsd-9.3-release/contrib/ipfilter/lib/ |
H A D | remove_hash.c | 25 iphtable_t iph; local 37 op.iplo_size = sizeof(iph); 38 op.iplo_struct = &iph; 40 bzero((char *)&iph, sizeof(iph)); 41 iph.iph_unit = iphp->iph_unit; 42 iph.iph_type = iphp->iph_type; 43 strncpy(iph.iph_name, iphp->iph_name, sizeof(iph.iph_name)); 44 iph [all...] |
H A D | printhash.c | 22 iphtable_t iph; local 26 if ((*copyfunc)((char *)hp, (char *)&iph, sizeof(iph))) 29 if ((name != NULL) && strncmp(name, iph.iph_name, FR_GROUPLEN)) 30 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); 57 return iph [all...] |
H A D | load_hash.c | 26 iphtable_t iph; local 45 op.iplo_size = sizeof(iph); 46 op.iplo_struct = &iph; 47 iph.iph_unit = iphp->iph_unit; 48 iph.iph_type = iphp->iph_type; 49 strncpy(iph.iph_name, iphp->iph_name, sizeof(iph.iph_name)); 50 iph.iph_flags = iphp->iph_flags; 62 iph.iph_size = size; 63 iph [all...] |
H A D | printhashnode.c | 14 iphtent_t *printhashnode(iph, ipep, copyfunc, opts) 15 iphtable_t *iph; 39 switch (iph->iph_type & ~IPHASH_ANON) 42 if (strncmp(ipe.ipe_group, iph->iph_name,
|
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_htable.c | 102 iphtable_t *iph, *oiph; local 108 iph = fr_existshtable(unit, op->iplo_name); 109 if (iph != NULL) { 110 if ((iph->iph_flags & IPHASH_DELETE) == 0) 112 iph->iph_flags &= ~IPHASH_DELETE; 117 KMALLOC(iph, iphtable_t *); 118 if (iph == NULL) { 122 err = COPYIN(op->iplo_struct, iph, sizeof(*iph)); 124 KFREE(iph); 184 iphtable_t *iph; local 309 iphtable_t *iph; local 322 iphtable_t *iph; local 335 iphtable_t *iph; local 422 iphtable_t *iph; local 454 iphtable_t *iph; local 521 iphtable_t *iph, zp, *nextiph; local [all...] |
H A D | ip_lookup.c | 216 iphtable_t *iph; local 264 iph = fr_findhtable(op.iplo_unit, op.iplo_name); 265 if (iph == NULL) 267 err = fr_addhtent(iph, &hte); 291 iphtable_t *iph; local 333 iph = fr_findhtable(op.iplo_unit, op.iplo_name); 334 if (iph == NULL) 336 err = fr_delhtent(iph, &hte);
|
H A D | fil.c | 4115 iphtable_t *iph; local 4157 iph = fr_findhtable(IPL_LOGIPF, name); 4158 ptr = iph; 4159 if (iph != NULL) { 4160 ATOMIC_INC32(iph->iph_ref); 4862 iphtable_t *iph; local 4869 iph = fr_findhtable(IPL_LOGIPF, name); 4870 if (iph == NULL) 4872 if ((iph->iph_flags & FR_INOUT) != (fr->fr_flags & FR_INOUT)) 4874 fr->fr_ptr = iph; [all...] |
H A D | ip_nat.c | 3762 u_32_t ipa, iph; local 3831 iph = ipa & htonl(msk); 3832 hv = NAT_HASH_FN(iph, 0, ipf_natrules_sz); 4059 u_32_t iph; local 4126 iph = in.s_addr & htonl(msk); 4127 hv = NAT_HASH_FN(iph, 0, ipf_rdrrules_sz);
|
/freebsd-9.3-release/sys/ofed/drivers/net/mlx4/ |
H A D | en_frag.c | 44 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.header; 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 D | en_tx.c | 627 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-9.3-release/tools/tools/net80211/wesside/dics/ |
H A D | dics.c | 164 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-9.3-release/sys/dev/sfxge/ |
H A D | sfxge_rx.c | 334 struct ip *iph = c->nh; local 335 iph->ip_len = htons(iph->ip_len); 336 iph->ip_sum = 0; 337 iph->ip_sum = in_cksum_hdr(iph); 338 c_th = (struct tcphdr *)(iph + 1); 342 struct ip6_hdr *iph = c->nh; local 343 iph->ip6_plen = htons(iph 426 struct ip *iph = c->nh; local 430 struct ip6_hdr *iph = c->nh; local 459 struct ip *iph = nh; local 462 struct ip6_hdr *iph = nh; local 482 struct ip *iph = c->next_nh; local 486 struct ip6_hdr *iph = c->next_nh; local 652 struct ip *iph = nh; local 659 struct ip6_hdr *iph = nh; local 677 struct ip *c_iph, *iph = nh; local 683 struct ip6_hdr *c_iph, *iph = nh; local [all...] |
/freebsd-9.3-release/sys/dev/netmap/ |
H A D | netmap_offloadings.c | 73 struct nm_iphdr *iph = (struct nm_iphdr *)(buf + 14); local 80 iph->tot_len = htobe16(len-14); 84 iph->id = htobe16(be16toh(iph->id) + idx); 85 ND("ip identification %u", be16toh(iph->id)); 88 iph->check = 0; 89 iph->check = nm_csum_ipv4(iph); 90 ND("IP csum %x", be16toh(iph->check)); 124 nm_csum_tcpudp_ipv4(iph, check_dat [all...] |
H A D | netmap_freebsd.c | 92 uint16_t nm_csum_ipv4(struct nm_iphdr *iph) argument 95 return in_cksum_hdr((void *)iph); 97 return nm_csum_fold(nm_csum_raw((uint8_t*)iph, sizeof(struct nm_iphdr), 0)); 101 void nm_csum_tcpudp_ipv4(struct nm_iphdr *iph, void *data, argument 105 uint16_t pseudolen = datalen + iph->protocol; 108 *check = in_pseudo(iph->saddr, iph->daddr,
|
H A D | netmap_kern.h | 1368 uint16_t nm_csum_ipv4(struct nm_iphdr *iph); 1369 void nm_csum_tcpudp_ipv4(struct nm_iphdr *iph, void *data,
|
/freebsd-9.3-release/contrib/ipfilter/tools/ |
H A D | ippool.c | 208 iphtable_t iph; local 216 bzero((char *)&iph, sizeof(iph)); 243 iph.iph_seed = atoi(optarg); 246 type = gettype(optarg, &iph.iph_type); 266 strncpy(iph.iph_name, poolname, sizeof(iph.iph_name)); 267 iph.iph_name[sizeof(iph.iph_name) - 1] = '\0'; 268 iph [all...] |
H A D | ipftest.c | 675 iphtable_t *iph; local 686 for (iph = ipf_htables[i]; iph != NULL; iph = iph->iph_next) 687 printhash(iph, bcopywrap, NULL, opts);
|
H A D | ipf_y.y | 2030 iphtable_t iph; 2050 bzero((char *)&iph, sizeof(iph)); 2051 iph.iph_unit = IPL_LOGIPF; 2052 iph.iph_type = IPHASH_LOOKUP; 2053 *iph.iph_name = '\0'; 2055 if (load_hash(&iph, top, ipfioctl[IPL_LOGLOOKUP]) == 0) 2056 sscanf(iph.iph_name, "%u", &num);
|
/freebsd-9.3-release/sys/dev/fdt/ |
H A D | fdt_common.c | 479 ihandle_t iph; local 492 if (OF_getprop(node, "interrupt-parent", &iph, sizeof(iph)) <= 0) { 496 iph = fdt32_to_cpu(iph); 497 intr_par = OF_instance_to_package(iph);
|
H A D | fdt_pci.c | 253 ihandle_t iph; local 277 iph = fdt32_to_cpu(map_ptr[par_idx]); 278 intr_par = OF_instance_to_package(iph);
|
/freebsd-9.3-release/sys/dev/xen/netback/ |
H A D | netback_unit_tests.c | 2148 struct ip *iph; local 2164 iph = (struct ip*)(eh + 1); 2165 iph->ip_hl = 0x5; /* 5 dwords == 20 bytes */ 2166 iph->ip_v = 4; /* IP v4 */ 2167 iph->ip_tos = 0; 2168 iph->ip_len = htons(ip_len); 2169 iph->ip_id = htons(ip_id); 2170 iph->ip_off = htons(ip_off); 2171 iph->ip_ttl = 64; 2172 iph 2190 struct ip *iph; local 2256 struct ip *iph; local 2308 struct ip *iph; local 2361 struct ip *iph; local 2402 struct ip *iph; local [all...] |
H A D | netback.c | 2137 struct ip *iph; local 2147 iph = (struct ip*)(eh + 1); 2149 iph->ip_sum = 0; 2150 iph->ip_sum = in_cksum_hdr(iph); 2153 switch (iph->ip_p) { 2156 size_t tcplen = ntohs(iph->ip_len) - sizeof(struct ip); 2157 struct tcphdr *th = (struct tcphdr*)(iph + 1); 2158 th->th_sum = in_pseudo(iph->ip_src.s_addr, 2159 iph [all...] |
/freebsd-9.3-release/crypto/openssh/openbsd-compat/ |
H A D | port-tun.c | 209 struct ip *iph; local 222 iph = (struct ip *)(ptr + sizeof(u_int32_t)); 223 switch (iph->ip_v) {
|
/freebsd-9.3-release/sys/dev/nxge/xgehal/ |
H A D | xgehal-device-fp.c | 750 u8 ch, *iph = (u8 *)ip; local 754 ch = ntohs(*((u8 *)(iph + i)) );
|
/freebsd-9.3-release/sys/netinet/ |
H A D | sctputil.c | 6813 struct ip *iph; local 6828 iph = mtod(m, struct ip *); 6829 uhdr = (struct udphdr *)((caddr_t)iph + off); 6858 iph = mtod(m, struct ip *); 6859 switch (iph->ip_v) { 6862 iph->ip_len -= sizeof(struct udphdr);
|