| /dragonfly/sys/netinet/ |
| HD | ip_demux.c | 146 ip_lengthcheck(struct mbuf **mp, int hoff) in ip_lengthcheck() argument 154 len = hoff + sizeof(struct ip); in ip_lengthcheck() 171 ip = mtodoff(m, struct ip *, hoff); in ip_lengthcheck() 181 if (m->m_len < hoff + iphlen) { in ip_lengthcheck() 182 m = m_pullup(m, hoff + iphlen); in ip_lengthcheck() 187 ip = mtodoff(m, struct ip *, hoff); in ip_lengthcheck() 196 if (m->m_pkthdr.len < hoff + iplen) { in ip_lengthcheck() 223 if (m->m_len < hoff + iphlen + sizeof(struct tcphdr)) { in ip_lengthcheck() 224 m = m_pullup(m, hoff + iphlen + sizeof(struct tcphdr)); in ip_lengthcheck() 229 ip = mtodoff(m, struct ip *, hoff); in ip_lengthcheck() [all …]
|
| /dragonfly/sys/netproto/mpls/ |
| HD | mpls_demux.c | 56 mpls_lengthcheck(struct mbuf **mp, int hoff) in mpls_lengthcheck() argument 59 int hlen = hoff + sizeof(struct mpls); in mpls_lengthcheck() 82 mpls_hashfn(struct mbuf **mp, int hoff) in mpls_hashfn() argument 89 mpls_lengthcheck(mp, hoff); in mpls_hashfn() 93 mpls = mtodoff(m, struct mpls *, hoff); in mpls_hashfn()
|
| /dragonfly/sys/net/ |
| HD | netisr.c | 63 static void netisr_hashfn0(struct mbuf **mp, int hoff); 492 netisr_characterize(int num, struct mbuf **mp, int hoff) in netisr_characterize() argument 525 ni->ni_hashfn(mp, hoff); in netisr_characterize() 664 netisr_hashfn0(struct mbuf **mp, int hoff __unused) in netisr_hashfn0()
|
| HD | netisr.h | 174 void netisr_characterize(int num, struct mbuf **mp, int hoff);
|
| /dragonfly/lib/libdmsg/ |
| HD | msg.c | 1264 size_t hoff; in dmsg_iocom_flush2() local 1283 hoff = ioq->hbytes; in dmsg_iocom_flush2() 1290 assert(hoff <= hbytes && aoff <= abytes); in dmsg_iocom_flush2() 1292 if (hoff < hbytes) { in dmsg_iocom_flush2() 1293 size_t maxlen = hbytes - hoff; in dmsg_iocom_flush2() 1296 iov[iovcnt].iov_base = (char *)&msg->any.head + hoff; in dmsg_iocom_flush2() 1301 maxlen != hbytes - hoff) { in dmsg_iocom_flush2() 1320 hoff = 0; in dmsg_iocom_flush2()
|
| /dragonfly/sys/dev/netif/em/ |
| HD | if_em.c | 4556 int iphlen, hoff, thoff, ex = 0; in em_tso_pullup() local 4565 hoff = m->m_pkthdr.csum_lhlen; in em_tso_pullup() 4569 KASSERT(hoff > 0, ("invalid ether hlen")); in em_tso_pullup() 4574 if (m->m_len < hoff + iphlen + thoff + ex) { in em_tso_pullup() 4575 m = m_pullup(m, hoff + iphlen + thoff + ex); in em_tso_pullup() 4582 ip = mtodoff(m, struct ip *, hoff); in em_tso_pullup() 4593 int hoff, iphlen, thoff, hlen; in em_tso_setup() local 4598 hoff = mp->m_pkthdr.csum_lhlen; in em_tso_setup() 4604 adapter->csum_lhlen == hoff && in em_tso_setup() 4612 hlen = hoff + iphlen + thoff; in em_tso_setup() [all …]
|
| /dragonfly/sys/dev/netif/emx/ |
| HD | if_emx.c | 4348 int iphlen, hoff, thoff, ex = 0; in emx_tso_pullup() local 4357 hoff = m->m_pkthdr.csum_lhlen; in emx_tso_pullup() 4361 KASSERT(hoff > 0, ("invalid ether hlen")); in emx_tso_pullup() 4366 if (m->m_len < hoff + iphlen + thoff + ex) { in emx_tso_pullup() 4367 m = m_pullup(m, hoff + iphlen + thoff + ex); in emx_tso_pullup() 4374 ip = mtodoff(m, struct ip *, hoff); in emx_tso_pullup() 4385 int hoff, iphlen, thoff, hlen; in emx_tso_setup() local 4394 hoff = mp->m_pkthdr.csum_lhlen; in emx_tso_setup() 4401 tdata->csum_lhlen == hoff && in emx_tso_setup() 4412 hlen = hoff + iphlen + thoff; in emx_tso_setup() [all …]
|
| /dragonfly/sys/dev/netif/igb/ |
| HD | if_igb.c | 4801 int hoff, iphlen, thoff; in igb_tso_pullup() local 4809 hoff = m->m_pkthdr.csum_lhlen; in igb_tso_pullup() 4813 KASSERT(hoff > 0, ("invalid ether hlen")); in igb_tso_pullup() 4815 if (__predict_false(m->m_len < hoff + iphlen + thoff)) { in igb_tso_pullup() 4816 m = m_pullup(m, hoff + iphlen + thoff); in igb_tso_pullup() 4826 ip = mtodoff(m, struct ip *, hoff); in igb_tso_pullup() 4838 int hoff, ctxd, iphlen, thoff; in igb_tso_ctx() local 4842 hoff = m->m_pkthdr.csum_lhlen; in igb_tso_ctx() 4856 vlan_macip_lens |= (hoff << E1000_ADVTXD_MACLEN_SHIFT); in igb_tso_ctx() 4884 *hlen = hoff + iphlen + thoff; in igb_tso_ctx()
|
| /dragonfly/sys/dev/netif/bge/ |
| HD | if_bge.c | 5101 int thoff, iphlen, hoff, hlen; in bge_setup_tso() local 5107 hoff = m->m_pkthdr.csum_lhlen; in bge_setup_tso() 5111 KASSERT(hoff > 0, ("invalid ether header len")); in bge_setup_tso() 5115 if (__predict_false(m->m_len < hoff + iphlen + thoff)) { in bge_setup_tso() 5116 m = m_pullup(m, hoff + iphlen + thoff); in bge_setup_tso() 5123 ip = mtodoff(m, struct ip *, hoff); in bge_setup_tso() 5124 th = mtodoff(m, struct tcphdr *, hoff + iphlen); in bge_setup_tso()
|
| /dragonfly/sys/dev/netif/bnx/ |
| HD | if_bnx.c | 5135 int thoff, iphlen, hoff, hlen; in bnx_setup_tso() local 5141 hoff = m->m_pkthdr.csum_lhlen; in bnx_setup_tso() 5145 KASSERT(hoff > 0, ("invalid ether header len")); in bnx_setup_tso() 5149 if (__predict_false(m->m_len < hoff + iphlen + thoff)) { in bnx_setup_tso() 5150 m = m_pullup(m, hoff + iphlen + thoff); in bnx_setup_tso() 5157 ip = mtodoff(m, struct ip *, hoff); in bnx_setup_tso() 5158 th = mtodoff(m, struct tcphdr *, hoff + iphlen); in bnx_setup_tso()
|
| /dragonfly/sys/dev/netif/jme/ |
| HD | if_jme.c | 1633 int hoff, iphlen, thoff; in jme_tso_pullup() local 1641 hoff = m->m_pkthdr.csum_lhlen; in jme_tso_pullup() 1645 KASSERT(hoff > 0, ("invalid ether hlen")); in jme_tso_pullup() 1647 if (__predict_false(m->m_len < hoff + iphlen + thoff)) { in jme_tso_pullup() 1648 m = m_pullup(m, hoff + iphlen + thoff); in jme_tso_pullup()
|
| /dragonfly/sys/dev/netif/mxge/ |
| HD | if_mxge.c | 1644 int hoff, iphlen, thoff; in mxge_pullup_tso() local 1652 hoff = m->m_pkthdr.csum_lhlen; in mxge_pullup_tso() 1656 KASSERT(hoff > 0, ("invalid ether hlen")); in mxge_pullup_tso() 1658 if (__predict_false(m->m_len < hoff + iphlen + thoff)) { in mxge_pullup_tso() 1659 m = m_pullup(m, hoff + iphlen + thoff); in mxge_pullup_tso()
|
| /dragonfly/sys/dev/netif/bce/ |
| HD | if_bce.c | 6605 int thoff, iphlen, hoff; in bce_tso_setup() local 6610 hoff = m->m_pkthdr.csum_lhlen; in bce_tso_setup() 6614 KASSERT(hoff >= sizeof(struct ether_header), in bce_tso_setup() 6615 ("invalid ether header len %d", hoff)); in bce_tso_setup() 6621 if (__predict_false(m->m_len < hoff + iphlen + thoff)) { in bce_tso_setup() 6622 m = m_pullup(m, hoff + iphlen + thoff); in bce_tso_setup()
|
| /dragonfly/sys/dev/netif/ix/ |
| HD | if_ix.c | 1439 int hoff, iphlen, thoff; in ix_tso_pullup() local 1447 hoff = m->m_pkthdr.csum_lhlen; in ix_tso_pullup() 1451 KASSERT(hoff > 0, ("invalid ether hlen")); in ix_tso_pullup() 1453 if (__predict_false(m->m_len < hoff + iphlen + thoff)) { in ix_tso_pullup() 1454 m = m_pullup(m, hoff + iphlen + thoff); in ix_tso_pullup()
|