Searched refs:iphp (Results 1 – 6 of 6) sorted by relevance
/titanic_44/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_ipv4.c | 143 struct ip *iphp; in mac_ipv4_header() local 157 iphp = (struct ip *)mp->b_rptr; in mac_ipv4_header() 159 bzero(iphp, hdr_len + extra_len); in mac_ipv4_header() 161 bcopy(tmpl_iphp, iphp, hdr_len); in mac_ipv4_header() 163 iphp->ip_hl = IP_SIMPLE_HDR_LENGTH_IN_WORDS; in mac_ipv4_header() 164 iphp->ip_off = htons(IP_DF); in mac_ipv4_header() 165 iphp->ip_ttl = IPTUN_DEFAULT_HOPLIMIT; in mac_ipv4_header() 168 iphp->ip_v = IPVERSION; in mac_ipv4_header() 169 iphp->ip_len = 0; in mac_ipv4_header() 170 iphp->ip_p = (uint8_t)sap; in mac_ipv4_header() [all …]
|
/titanic_44/usr/src/cmd/ipf/lib/common/ |
H A D | load_hash.c | 24 int load_hash(iphp, list, iocfunc) in load_hash() argument 25 iphtable_t *iphp; in load_hash() 49 op.iplo_unit = iphp->iph_unit; 50 strncpy(op.iplo_name, iphp->iph_name, sizeof(op.iplo_name)); 55 iph.iph_unit = iphp->iph_unit; 56 iph.iph_type = iphp->iph_type; 57 strncpy(iph.iph_name, iphp->iph_name, sizeof(iph.iph_name)); 58 iph.iph_flags = iphp->iph_flags; 61 if (iphp->iph_size == 0) 64 size = iphp->iph_size; [all …]
|
H A D | remove_hash.c | 18 int remove_hash(iphp, iocfunc) in remove_hash() argument 19 iphtable_t *iphp; in remove_hash() 31 op.iplo_unit = iphp->iph_unit; 32 strncpy(op.iplo_name, iphp->iph_name, sizeof(op.iplo_name)); 39 iph.iph_unit = iphp->iph_unit; 40 iph.iph_type = iphp->iph_type; 41 strncpy(iph.iph_name, iphp->iph_name, sizeof(iph.iph_name)); 42 iph.iph_flags = iphp->iph_flags;
|
/titanic_44/usr/src/stand/lib/inet/ |
H A D | ipv4.c | 694 struct ip *iphp; in ipv4_input() local 718 iphp = (struct ip *)igp->igm_mp->b_rptr; in ipv4_input() 719 if (iphp->ip_v != IPVERSION) { in ipv4_input() 721 index, iphp->ip_v); in ipv4_input() 725 iphlen = iphp->ip_hl << 2; in ipv4_input() 732 iplen = ntohs(iphp->ip_len); in ipv4_input() 740 bcopy((caddr_t)&(iphp->ip_dst), (caddr_t)&ipdst, in ipv4_input() 742 bcopy((caddr_t)&(iphp->ip_src), (caddr_t)&ipsrc, in ipv4_input() 746 if (ipv4cksum((uint16_t *)iphp, iphlen) != 0) { in ipv4_input() 769 if (!promiscuous && (iphp->ip_p == IPPROTO_ICMP)) { in ipv4_input() [all …]
|
H A D | icmp4.c | 57 icmp4(struct inetgram *igp, struct ip *iphp, uint16_t iphlen, in icmp4() argument 64 icmp_len = ntohs(iphp->ip_len) - iphlen; in icmp4()
|
/titanic_44/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 968 ipha_t *iphp; in mac_pkt_hash() local 975 iphp = (ipha_t *)(mp->b_rptr + skip_len); in mac_pkt_hash() 976 if (((unsigned char *)iphp + sizeof (ipha_t) > mp->b_wptr) || in mac_pkt_hash() 977 !OK_32PTR((char *)iphp)) in mac_pkt_hash() 980 proto = iphp->ipha_protocol; in mac_pkt_hash() 981 skip_len += IPH_HDR_LENGTH(iphp); in mac_pkt_hash() 984 ip_fragmented = ntohs(iphp->ipha_fragment_offset_and_flags) & in mac_pkt_hash() 993 uint8_t *ip_src = (uint8_t *)&(iphp->ipha_src); in mac_pkt_hash() 994 uint8_t *ip_dst = (uint8_t *)&(iphp->ipha_dst); in mac_pkt_hash() 1002 uint8_t *identp = (uint8_t *)&iphp->ipha_ident; in mac_pkt_hash()
|