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 in function:xennet_checksum_fill
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/netmpls/
mpls_ttl.c 318 struct ip *iph; local in function:ip4_check
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/netinet6/
in6_offload.c 58 struct ip6_hdr *iph; local in function:tcp6_segment
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/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 in function:mpls_unlabel_inet
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 285 iphtable_t htab, *iph, *oiph; local in function:ipf_htable_create
311 iph = ipf_htable_exists(softh, unit, op->iplo_name);
312 if (iph != NULL) {
313 if ((iph->iph_flags & IPHASH_DELETE) == 0) {
317 iph->iph_flags &= ~IPHASH_DELETE;
318 iph->iph_ref++;
323 KMALLOC(iph, iphtable_t *);
324 if (iph == NULL) {
329 *iph = htab;
343 (void)strncpy(iph->iph_name, name, sizeof(iph->iph_name))
412 iphtable_t *iph; local in function:ipf_htable_destroy
526 iphtable_t *iph; local in function:ipf_htable_node_del
655 iphtable_t *iph = object; local in function:ipf_htable_deref
701 iphtable_t *iph; local in function:ipf_htable_exists
739 iphtable_t *iph; local in function:ipf_htable_select_add_ref
761 iphtable_t *iph; local in function:ipf_htable_find
783 iphtable_t *iph; local in function:ipf_htable_flush
818 iphtable_t *iph; local in function:ipf_htable_node_add
1053 iphtable_t *iph; local in function:ipf_iphmfindgroup
1087 iphtable_t *iph; local in function:ipf_iphmfindip
1173 iphtable_t *iph, zp, *nextiph; local in function:ipf_htable_iter_next
1386 iphtable_t *iph; local in function:ipf_htable_dump
    [all...]
ip_nat6.c 2571 i6addr_t ipa, iph; local in function:ipf_nat6_checkout
2651 IP6_AND(&ipa, msk, &iph);
2652 hv = NAT_HASH_FN6(&iph, 0, softn->ipf_nat_maprules_sz);
2967 i6addr_t ipa, iph; local in function:ipf_nat6_checkin
3051 IP6_AND(&ipa, msk, &iph);
3052 hv = NAT_HASH_FN6(&iph, 0, softn->ipf_nat_rdrrules_sz);
ip_nat.c 4786 u_32_t ipa, iph; local in function:ipf_nat_checkout
4865 iph = ipa & msk;
4866 hv = NAT_HASH_FN(iph, 0, softn->ipf_nat_maprules_sz);
5283 u_32_t iph; local in function:ipf_nat_checkin
5354 iph = in.s_addr & msk;
5355 hv = NAT_HASH_FN(iph, 0, softn->ipf_nat_rdrrules_sz);
5357 /* TRACE (iph,msk,rmsk,hv,softn->ipf_nat_rdrrules_sz) */
fil.c 5490 iphtable_t *iph; local in function:ipf_grpmapinit
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 in function:ipf_grpmapfini
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 in function:sctp_process_asconf_delete_ip
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_pcb.c 382 struct ip *iph; local in function:sctp_findassociation_ep_asconf
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 in function:sctp_findassociation_addr
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 in function:sctp_load_addresses_from_init
    [all...]
sctp_input.c 1681 struct ip *iph; local in function:sctp_handle_cookie_echo
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_output.c 3112 struct ip *iph; local in function:sctp_are_there_new_addresses
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 in function:sctp_send_initiate_ack
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 in function:sctp_send_shutdown_complete2
8486 struct ip *iph; local in function:sctp_send_packet_dropped
8955 struct ip *iph, *iph_out; local in function:sctp_send_abort
9096 struct ip *iph; local in function:sctp_send_operr_to
    [all...]
  /src/sys/kern/
vfs_wapbl.c 2368 int iph; local in function:wapbl_transaction_inodes_len
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 in function:wapbl_write_inodes
2720 iph = (blocklen - offsetof(struct wapbl_wc_inodelist, wc_inodes)) /
2731 while (i < wl->wl_inohashcnt && wc->wc_inocnt < iph) {

Completed in 58 milliseconds