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

12

/freebsd-11-stable/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-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_htable.c278 iphtable_t htab, *iph, *oiph; local
304 iph = ipf_htable_exists(softh, unit, op->iplo_name);
305 if (iph != NULL) {
306 if ((iph->iph_flags & IPHASH_DELETE) == 0) {
310 iph->iph_flags &= ~IPHASH_DELETE;
311 iph->iph_ref++;
316 KMALLOC(iph, iphtable_t *);
317 if (iph == NULL) {
322 *iph = htab;
340 (void)strncpy(iph
416 iphtable_t *iph; local
541 iphtable_t *iph; local
679 iphtable_t *iph = object; local
730 iphtable_t *iph; local
771 iphtable_t *iph; local
796 iphtable_t *iph; local
821 iphtable_t *iph; local
859 iphtable_t *iph; local
1104 iphtable_t *iph; local
1141 iphtable_t *iph; local
1232 iphtable_t *iph, zp, *nextiph; local
1453 iphtable_t *iph; local
[all...]
/freebsd-11-stable/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-11-stable/tools/tools/netmap/
H A Dpkt_hash.c148 decode_ip_n_hash(struct ip *iph, uint8_t hash_split, uint8_t seed) argument
153 rc = sym_hash_fn(ntohl(iph->ip_src.s_addr),
154 ntohl(iph->ip_dst.s_addr),
161 switch (iph->ip_p) {
163 tcph = (struct tcphdr *)((uint8_t *)iph + (iph->ip_hl<<2));
164 rc = sym_hash_fn(ntohl(iph->ip_src.s_addr),
165 ntohl(iph->ip_dst.s_addr),
170 udph = (struct udphdr *)((uint8_t *)iph + (iph
[all...]
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dfils_hlp.c161 struct iphdr *iph; local
254 sizeof(*iph) + sizeof(*udph) + (end - pos) + 2);
261 iph = wpabuf_put(resp, sizeof(*iph));
262 iph->version = 4;
263 iph->ihl = sizeof(*iph) / 4;
264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos));
265 iph
482 const struct iphdr *iph; local
513 const struct iphdr *iph; local
[all...]
H A Ddhcp_snoop.c49 tot_len = ntohs(b->iph.tot_len);
/freebsd-11-stable/sys/dev/netmap/
H A Dnetmap_offloadings.c75 struct nm_iphdr *iph = (struct nm_iphdr *)(pkt); local
82 iph->tot_len = htobe16(len);
86 iph->id = htobe16(be16toh(iph->id) + idx);
87 nm_prdis("ip identification %u", be16toh(iph->id));
90 iph->check = 0;
91 iph->check = nm_os_csum_ipv4(iph);
92 nm_prdis("IP csum %x", be16toh(iph->check));
126 nm_os_csum_tcpudp_ipv4(iph, check_dat
294 struct nm_iphdr *iph = (struct nm_iphdr *) local
[all...]
H A Dnetmap_freebsd.c248 uint16_t nm_os_csum_ipv4(struct nm_iphdr *iph) argument
251 return in_cksum_hdr((void *)iph);
253 return nm_os_csum_fold(nm_os_csum_raw((uint8_t*)iph, sizeof(struct nm_iphdr), 0));
258 nm_os_csum_tcpudp_ipv4(struct nm_iphdr *iph, void *data, argument
262 uint16_t pseudolen = datalen + iph->protocol;
265 *check = in_pseudo(iph->saddr, iph->daddr,
/freebsd-11-stable/sys/dev/sfxge/
H A Dsfxge_rx.c386 struct ip *iph = c->nh; local
387 iph->ip_len = htons(iph->ip_len);
388 iph->ip_sum = 0;
389 iph->ip_sum = in_cksum_hdr(iph);
390 c_th = (struct tcphdr *)(iph + 1);
394 struct ip6_hdr *iph = c->nh; local
395 iph->ip6_plen = htons(iph
479 struct ip *iph = c->nh; local
483 struct ip6_hdr *iph = c->nh; local
512 struct ip *iph = nh; local
515 struct ip6_hdr *iph = nh; local
535 struct ip *iph = c->next_nh; local
539 struct ip6_hdr *iph = c->next_nh; local
706 struct ip *iph = nh; local
715 struct ip6_hdr *iph = nh; local
734 struct ip *c_iph, *iph = nh; local
740 struct ip6_hdr *c_iph, *iph = nh; local
[all...]
H A Dsfxge_tx.c829 const struct ip *iph = (const struct ip *)mtodo(mbuf, mbuf->m_pkthdr.l2hlen); local
831 KASSERT(iph->ip_p == IPPROTO_TCP,
833 mbuf->m_pkthdr.l3hlen = mbuf->m_pkthdr.l2hlen + 4 * iph->ip_hl;
834 TSO_MBUF_PACKETID(mbuf) = iph->ip_id;
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Dib_ud_header.c291 struct ip iph; local
293 iph.ip_hl = 5;
294 iph.ip_v = 4;
295 iph.ip_tos = header->ip4.tos;
296 iph.ip_len = header->ip4.tot_len;
297 iph.ip_id = header->ip4.id;
298 iph.ip_off = header->ip4.frag_off;
299 iph.ip_ttl = header->ip4.ttl;
300 iph.ip_p = header->ip4.protocol;
301 iph
[all...]
/freebsd-11-stable/sys/dev/fdt/
H A Dfdt_common.h65 ihandle_t iph; member in struct:fdt_ic
/freebsd-11-stable/contrib/ipfilter/tools/
H A Dippool.c257 iphtable_t iph; local
265 bzero((char *)&iph, sizeof(iph));
290 iph.iph_seed = atoi(optarg);
295 type = gettype(optarg, &iph.iph_type);
328 strncpy(iph.iph_name, poolname, sizeof(iph.iph_name));
329 iph.iph_name[sizeof(iph.iph_name) - 1] = '\0';
330 iph
[all...]
H A Dipf_y.y2351 iphtable_t iph;
2378 bzero((char *)&iph, sizeof(iph));
2379 iph.iph_unit = IPL_LOGIPF;
2380 iph.iph_type = IPHASH_LOOKUP;
2381 *iph.iph_name = '\0';
2383 if (load_hash(&iph, top, ipfioctls[IPL_LOGLOOKUP]) == 0)
2384 sscanf(iph.iph_name, "%u", &num);
/freebsd-11-stable/sys/dev/xen/netback/
H A Dnetback_unit_tests.c2151 struct ip *iph; local
2167 iph = (struct ip*)(eh + 1);
2168 iph->ip_hl = 0x5; /* 5 dwords == 20 bytes */
2169 iph->ip_v = 4; /* IP v4 */
2170 iph->ip_tos = 0;
2171 iph->ip_len = htons(ip_len);
2172 iph->ip_id = htons(ip_id);
2173 iph->ip_off = htons(ip_off);
2174 iph->ip_ttl = 64;
2175 iph
2193 struct ip *iph; local
2259 struct ip *iph; local
2311 struct ip *iph; local
2364 struct ip *iph; local
2405 struct ip *iph; local
[all...]
H A Dnetback.c2151 struct ip *iph; local
2161 iph = (struct ip*)(eh + 1);
2163 iph->ip_sum = 0;
2164 iph->ip_sum = in_cksum_hdr(iph);
2167 switch (iph->ip_p) {
2170 size_t tcplen = ntohs(iph->ip_len) - sizeof(struct ip);
2171 struct tcphdr *th = (struct tcphdr*)(iph + 1);
2172 th->th_sum = in_pseudo(iph->ip_src.s_addr,
2173 iph
[all...]
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dport-tun.c210 struct ip *iph; local
224 iph = (struct ip *)(ptr + sizeof(u_int32_t));
225 switch (iph->ip_v) {
/freebsd-11-stable/sys/mips/beri/
H A Dberi_simplebus.c344 phandle_t ph, iph; local
352 if (OF_getencprop(di->di_ofw.obd_node, "interrupt-parent", &iph,
353 sizeof(iph)) > 0) {
354 ph = OF_node_from_xref(iph);
356 if (ic->iph == ph) {
/freebsd-11-stable/sys/dev/beri/virtio/
H A Dvirtio_mmio_platform.c102 if (ic->iph == pio_node) {
146 fic->iph = node;
H A Dvirtio.c212 if (ic->iph == pio_node) {
/freebsd-11-stable/sys/dev/altera/pio/
H A Dpio.c185 fic->iph = node;
/freebsd-11-stable/contrib/wpa/src/common/
H A Ddhcp.h58 struct iphdr iph; member in struct:bootp_pkt

Completed in 359 milliseconds

12