HomeSort by: relevance | last modified time | path
    Searched defs:iph (Results 1 - 22 of 22) sorted by relevancy

  /src/external/bsd/ipf/dist/lib/
remove_hash.c 24 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.iph_flags = iphp->iph_flags
    [all...]
load_hash.c 25 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.iph_ref = 0
    [all...]
printhash.c 21 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.iph_next
    [all...]
  /src/sys/arch/xen/xen/
xennet_checksum.c 78 struct ip *iph = NULL; local
112 iph = m_extract(m, ehlen, sizeof(*iph));
113 if (iph == NULL) {
117 nxt = iph->ip_p;
118 iphlen = iph->ip_hl << 2;
119 iplen = ntohs(iph->ip_len);
149 if (iph)
159 if (iph)
  /src/sys/netinet6/
in6_offload.c 58 struct ip6_hdr *iph; local
74 KASSERT(len >= off + sizeof(*iph) + sizeof(*th));
76 hlen = off + sizeof(*iph);
82 iph = (void *)(mtod(m, char *) + off);
83 iphlen = sizeof(*iph);
84 KASSERT((iph->ip6_vfc & IPV6_VERSION_MASK) == IPV6_VERSION);
85 KASSERT(iph->ip6_nxt == IPPROTO_TCP);
111 iph = (void *)(mtod(hdr, char *) + off);
112 iph->ip6_plen = htons(thlen + mss);
113 phsum = in6_cksum_phdr(&iph->ip6_src, &iph->ip6_dst, htonl(thlen + mss)
    [all...]
  /src/sys/netmpls/
mpls_ttl.c 318 struct ip *iph; local
325 iph = mtod(m, struct ip *);
327 if (iph->ip_v != IPVERSION)
329 hlen = iph->ip_hl << 2;
335 iph = mtod(m, struct ip *);
343 if (IN_MULTICAST(iph->ip_src.s_addr) ||
344 (ntohl(iph->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET ||
345 (ntohl(iph->ip_src.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET ||
349 len = ntohs(iph->ip_len);
  /src/sys/arch/mvme68k/stand/sboot/
etherfun.h 111 struct ip *iph = (struct ip *)(buf + sizeof(struct ether_header)); variable in typeref:struct:ip
  /src/sys/net/
if_mpls.c 534 struct ip *iph; local
552 iph = mtod(m, struct ip *);
553 iphlen = iph->ip_hl << 2;
561 iph = mtod(m, struct ip *);
573 iph->ip_ttl = ms.shim.ttl;
577 iph->ip_tos = (iph->ip_tos << 3) >> 3;
578 iph->ip_tos |= ms.shim.exp << 5;
582 iph->ip_sum = 0;
583 iph->ip_sum = in_cksum(m, iphlen)
    [all...]
  /src/external/bsd/ipf/dist/tools/
ippool.c 269 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.iph_unit = role
    [all...]
  /src/external/bsd/wpa/dist/src/ap/
fils_hlp.c 161 struct ip *iph; local
254 sizeof(*iph) + sizeof(*udph) + (end - pos) + 2);
261 iph = wpabuf_put(resp, sizeof(*iph));
262 iph->ip_v = 4;
263 iph->ip_hl = sizeof(*iph) / 4;
264 iph->ip_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos));
265 iph->ip_ttl = 1
482 const struct ip *iph; local
513 const struct ip *iph; local
    [all...]
  /src/sys/external/bsd/ipf/netinet/
ip_htable.c 286 iphtable_t htab, *iph, *oiph; local
312 iph = ipf_htable_exists(softh, unit, op->iplo_name);
313 if (iph != NULL) {
314 if ((iph->iph_flags & IPHASH_DELETE) == 0) {
318 iph->iph_flags &= ~IPHASH_DELETE;
319 iph->iph_ref++;
324 KMALLOC(iph, iphtable_t *);
325 if (iph == NULL) {
330 *iph = htab;
344 (void)strncpy(iph->iph_name, name, sizeof(iph->iph_name))
413 iphtable_t *iph; local
527 iphtable_t *iph; local
656 iphtable_t *iph = object; local
702 iphtable_t *iph; local
740 iphtable_t *iph; local
762 iphtable_t *iph; local
784 iphtable_t *iph; local
819 iphtable_t *iph; local
1054 iphtable_t *iph; local
1088 iphtable_t *iph; local
1174 iphtable_t *iph, zp, *nextiph; local
1387 iphtable_t *iph; local
    [all...]
ip_nat6.c 2571 i6addr_t ipa, iph; local
2651 IP6_AND(&ipa, msk, &iph);
2652 hv = NAT_HASH_FN6(&iph, 0, softn->ipf_nat_maprules_sz);
2967 i6addr_t ipa, iph; local
3051 IP6_AND(&ipa, msk, &iph);
3052 hv = NAT_HASH_FN6(&iph, 0, softn->ipf_nat_rdrrules_sz);
ip_nat.c 4787 u_32_t ipa, iph; local
4866 iph = ipa & msk;
4867 hv = NAT_HASH_FN(iph, 0, softn->ipf_nat_maprules_sz);
5284 u_32_t iph; local
5355 iph = in.s_addr & msk;
5356 hv = NAT_HASH_FN(iph, 0, softn->ipf_nat_rdrrules_sz);
5358 /* TRACE (iph,msk,rmsk,hv,softn->ipf_nat_rdrrules_sz) */
fil.c 5490 iphtable_t *iph; local
5493 iph = ipf_lookup_find_htable(softc, IPL_LOGIPF, name);
5494 if (iph == NULL) {
5498 if ((iph->iph_flags & FR_INOUT) != (fr->fr_flags & FR_INOUT)) {
5502 iph->iph_ref++;
5503 fr->fr_ptr = iph;
5520 iphtable_t *iph; local
5521 iph = fr->fr_ptr;
5522 if (iph != NULL)
5523 ipf_lookup_deref(softc, IPLT_HASH, iph);
    [all...]
  /src/external/bsd/ipf/dist/
ip_htable.c 282 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->iph_name, name, sizeof(iph->iph_name))
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...]
ip_nat6.c 2626 i6addr_t ipa, iph; local
2704 IP6_AND(&ipa, msk, &iph);
2705 hv = NAT_HASH_FN6(&iph, 0, softn->ipf_nat_maprules_sz);
3026 i6addr_t ipa, iph; local
3104 IP6_AND(&ipa, msk, &iph);
3105 hv = NAT_HASH_FN6(&iph, 0, softn->ipf_nat_rdrrules_sz);
  /src/sys/netinet/
sctp_asconf.c 310 struct ip *iph; local
326 iph = mtod(m, struct ip *);
327 if (iph->ip_v == IPVERSION) {
334 sin->sin_addr.s_addr = iph->ip_src.s_addr;
337 else if (iph->ip_v == (IPV6_VERSION >> 4)) {
sctp_input.c 1681 struct ip *iph; local
1701 iph = mtod(m, struct ip *);
1702 if (iph->ip_v == IPVERSION) {
1710 sin_d->sin_addr.s_addr = iph->ip_dst.s_addr ;
1711 } else if (iph->ip_v == (IPV6_VERSION >> 4)) {
sctp_pcb.c 382 struct ip *iph; local
390 iph = mtod(m, struct ip *);
391 if (iph->ip_v == IPVERSION) {
397 sin->sin_addr.s_addr = iph->ip_dst.s_addr ;
398 } else if (iph->ip_v == (IPV6_VERSION >> 4)) {
1128 struct ip *iph; local
1136 iph = mtod(m, struct ip *);
1137 if (iph->ip_v == IPVERSION) {
1147 from4->sin_addr.s_addr = iph->ip_src.s_addr;
1148 to4->sin_addr.s_addr = iph->ip_dst.s_addr
3908 struct ip *iph; local
    [all...]
sctp_output.c 3112 struct ip *iph; local
3127 iph = mtod(in_initpkt, struct ip *);
3128 if (iph->ip_v == IPVERSION) {
3130 sin4.sin_addr = iph->ip_src;
3132 } else if (iph->ip_v == (IPV6_VERSION >> 4)) {
3260 struct ip *iph; local
3397 iph = mtod(init_pkt, struct ip *);
3398 if (iph->ip_v == IPVERSION) {
3405 sin->sin_addr = iph->ip_src;
3442 } else if (iph->ip_v == (IPV6_VERSION >> 4))
8041 struct ip *iph, *iph_out; local
8486 struct ip *iph; local
8955 struct ip *iph, *iph_out; local
9096 struct ip *iph; local
    [all...]
  /src/sys/kern/
vfs_wapbl.c 2368 int iph; local
2371 iph = (blocklen - offsetof(struct wapbl_wc_inodelist, wc_inodes)) /
2374 KASSERT(iph > 0);
2376 return MAX(1, howmany(wl->wl_inohashcnt, iph)) * blocklen;
2718 int iph; local
2720 iph = (blocklen - offsetof(struct wapbl_wc_inodelist, wc_inodes)) /
2731 while (i < wl->wl_inohashcnt && wc->wc_inocnt < iph) {
  /src/external/bsd/wpa/dist/src/common/
dhcp.h 42 struct ip iph; member in struct:bootp_pkt

Completed in 81 milliseconds