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

  /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/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/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) {

Completed in 39 milliseconds