Searched refs:iphp (Results 1 - 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dremove_hash.c18 int remove_hash(iphp, iocfunc)
19 iphtable_t *iphp;
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;
H A Dload_hash.c24 int load_hash(iphp, list, iocfunc)
25 iphtable_t *iphp;
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
[all...]
/illumos-gate/usr/src/uts/common/io/mac/plugins/
H A Dmac_ipv4.c143 struct ip *iphp; local
157 iphp = (struct ip *)mp->b_rptr;
159 bzero(iphp, hdr_len + extra_len);
161 bcopy(tmpl_iphp, iphp, hdr_len);
163 iphp->ip_hl = IP_SIMPLE_HDR_LENGTH_IN_WORDS;
164 iphp->ip_off = htons(IP_DF);
165 iphp->ip_ttl = IPTUN_DEFAULT_HOPLIMIT;
168 iphp->ip_v = IPVERSION;
169 iphp->ip_len = 0;
170 iphp
182 struct ip *iphp; local
211 const struct ip *iphp = pdata; local
[all...]
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_tcp.c73 struct ip *iphp; local
85 iphp = NULL;
125 iphp = (struct ip *)(mp->b_rptr + off);
126 iphs = iphp->ip_hl * 4;
128 if (iphp->ip_v != IPV4_VERSION)
132 size = ntohs(iphp->ip_len);
142 if (iphp->ip_p == IPPROTO_TCP) {
161 } else if (iphp->ip_p == IPPROTO_UDP) {
180 } else if (iphp->ip_p == IPPROTO_SCTP) {
205 *iphpp = iphp;
[all...]
H A Dsfxge_tx.c1570 struct ip *iphp = stpp->stp_iphp; local
1604 if (msgdsize(mp) != ehs + ntohs(iphp->ip_len)) {
1629 if (((iphp->ip_off & ~htons(IP_DF)) != 0) ||
1636 if (size + (thp->th_off << 2) + (iphp->ip_hl << 2) !=
1637 ntohs(iphp->ip_len)) {
1646 start_len = ntohs(iphp->ip_len);
1647 start_id = ip_id = ntohs(iphp->ip_id);
1654 iphp->ip_len = htons((iphp->ip_hl << 2) + (thp->th_off << 2) + mss);
1669 iphp
2749 struct ip *iphp; local
[all...]
H A Dsfxge_rx.c1325 struct ip *iphp; local
1333 iphp = srfp->srf_iphp;
1342 iphp->ip_len = htons(srfp->srf_len);
1365 struct ip *iphp = srpp->srp_iphp; local
1429 srfp->srf_iphp = iphp;
1436 srfp->srf_len = ntohs(iphp->ip_len);
1511 struct ip *iphp; local
1545 pkt_type = sfxge_pkthdr_parse(mp, &etherhp, &iphp, &thp, &off,
1549 ASSERT(iphp != NULL);
1553 if ((iphp
[all...]
/illumos-gate/usr/src/stand/lib/inet/
H A Dipv4.c694 struct ip *iphp; local
718 iphp = (struct ip *)igp->igm_mp->b_rptr;
719 if (iphp->ip_v != IPVERSION) {
721 index, iphp->ip_v);
725 iphlen = iphp->ip_hl << 2;
732 iplen = ntohs(iphp->ip_len);
740 bcopy((caddr_t)&(iphp->ip_dst), (caddr_t)&ipdst,
742 bcopy((caddr_t)&(iphp->ip_src), (caddr_t)&ipsrc,
746 if (ipv4cksum((uint16_t *)iphp, iphlen) != 0) {
769 if (!promiscuous && (iphp
973 struct ip *iphp; local
[all...]
H A Dicmp4.c57 icmp4(struct inetgram *igp, struct ip *iphp, uint16_t iphlen, argument
64 icmp_len = ntohs(iphp->ip_len) - iphlen;
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_util.c968 ipha_t *iphp; local
975 iphp = (ipha_t *)(mp->b_rptr + skip_len);
976 if (((unsigned char *)iphp + sizeof (ipha_t) > mp->b_wptr) ||
977 !OK_32PTR((char *)iphp))
980 proto = iphp->ipha_protocol;
981 skip_len += IPH_HDR_LENGTH(iphp);
984 ip_fragmented = ntohs(iphp->ipha_fragment_offset_and_flags) &
993 uint8_t *ip_src = (uint8_t *)&(iphp->ipha_src);
994 uint8_t *ip_dst = (uint8_t *)&(iphp->ipha_dst);
1002 uint8_t *identp = (uint8_t *)&iphp
[all...]

Completed in 85 milliseconds