Home
last modified time | relevance | path

Searched refs:pktlen (Results 1 – 25 of 44) sorted by relevance

12

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpppoe.c198 handle_motm_hurl(char **argv, int argc, const uint8_t *tagp, int pktlen) in handle_motm_hurl() argument
208 while (pktlen >= POET_HDRLEN) { in handle_motm_hurl()
213 if (tlen > pktlen - POET_HDRLEN) in handle_motm_hurl()
223 pktlen -= POET_HDRLEN + tlen; in handle_motm_hurl()
258 while (pktlen >= POET_HDRLEN) { in handle_ip_route_add()
263 if (tlen > pktlen - POET_HDRLEN) in handle_ip_route_add()
270 pktlen -= POET_HDRLEN + tlen; in handle_ip_route_add()
321 int pktlen; in handle_pppoe_input() local
330 pktlen = (tagp[0] << 8) + tagp[1]; in handle_pppoe_input()
348 handle_motm_hurl(argv + 4, Dim(argv) - 4, tagp, pktlen); in handle_pppoe_input()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip6_output.c387 uint_t pktlen = ixa->ixa_pktlen; in ire_send_local_v6() local
498 iras.ira_pktlen = pktlen; in ire_send_local_v6()
725 uint_t pktlen = ixa->ixa_pktlen; in ip_output_sw_cksum_v6() local
824 uint_t pktlen = ixa->ixa_pktlen; in ip_output_cksum_v6() local
936 DB_CKSUMEND(mp) = pktlen; in ip_output_cksum_v6()
963 uint32_t pktlen = ixa->ixa_pktlen; in ire_send_wire_v6() local
1026 if (pktlen > ixa->ixa_fragsize || in ire_send_wire_v6()
1033 if (pktlen > IP_MAXPACKET) in ire_send_wire_v6()
1056 pktlen > ixa->ixa_fragsize) { in ire_send_wire_v6()
1119 pktlen += sizeof (ip6_frag_t); in ire_send_wire_v6()
[all …]
H A Dip_output.c1086 uint_t pktlen = ixa->ixa_pktlen; in ire_send_local_v4() local
1123 pktlen = ntohs(ipha->ipha_length); in ire_send_local_v4()
1153 iras.ira_pktlen = pktlen; in ire_send_local_v4()
1620 uint_t pktlen = ixa->ixa_pktlen; in ip_output_sw_cksum_v4() local
1707 uint_t pktlen = ixa->ixa_pktlen; in ip_output_cksum_v4() local
1813 DB_CKSUMEND(mp) = pktlen; in ip_output_cksum_v4()
1965 uint32_t pktlen; in ire_send_wire_v4() local
1967 pktlen = ixa->ixa_pktlen; in ire_send_wire_v4()
1969 pktlen += ipsec_out_extra_length(ixa); in ire_send_wire_v4()
1971 if (pktlen > IP_MAXPACKET) in ire_send_wire_v4()
[all …]
/illumos-gate/usr/src/uts/common/io/bnx/
H A Dbnxrcv.c243 unsigned int pktlen; in bnx_recv_ring_recv() local
258 pktlen = lmpacket->size; in bnx_recv_ring_recv()
278 pktlen + L2RX_FRAME_HDR_LEN, DDI_DMA_SYNC_FORKERNEL); in bnx_recv_ring_recv()
282 if (pktlen < umdevice->rx_copy_threshold) { in bnx_recv_ring_recv()
296 mp = allocb(pktlen + 6, BPRI_MED); in bnx_recv_ring_recv()
331 pktlen - 12); in bnx_recv_ring_recv()
332 mp->b_wptr = mp->b_rptr + pktlen + 4; in bnx_recv_ring_recv()
340 mp = allocb(pktlen + 2, BPRI_MED); in bnx_recv_ring_recv()
356 bcopy(dataptr, mp->b_rptr, pktlen); in bnx_recv_ring_recv()
357 mp->b_wptr = mp->b_rptr + pktlen; in bnx_recv_ring_recv()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dcbcp.c132 cbcp_input(unit, inpacket, pktlen) in cbcp_input() argument
135 int pktlen;
145 if (pktlen < CBCP_MINLEN) {
146 error("CBCP packet is too small (%d < %d)", pktlen, CBCP_MINLEN);
154 if (len > pktlen) {
155 error("CBCP packet: invalid length (%d > %d)", len, pktlen);
/illumos-gate/usr/src/uts/sun/io/dada/impl/
H A Ddcd_hba.c325 int pktlen; in dcd_hba_pkt_alloc() local
345 pktlen = sizeof (struct dcd_pkt_wrapper) + in dcd_hba_pkt_alloc()
348 hba_pkt = kmem_zalloc(pktlen, in dcd_hba_pkt_alloc()
359 hba_pkt->pkt_wrapper_len = pktlen; in dcd_hba_pkt_alloc()
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_send.c1235 int pktlen; in nxge_do_softlso() local
1268 pktlen = msgsize(mp); in nxge_do_softlso()
1281 l4_len = pktlen - ehlen - iphlen; in nxge_do_softlso()
1293 ntohs(oiph->ip_len), pktlen, in nxge_do_softlso()
1304 ntohs(oiph->ip_len), pktlen, ehlen, in nxge_do_softlso()
1314 ntohs(oiph->ip_len), pktlen, ehlen, in nxge_do_softlso()
1324 ntohs(oiph->ip_len), pktlen, ehlen, in nxge_do_softlso()
1380 pktlen, in nxge_do_softlso()
1390 available = pktlen - hdrlen; in nxge_do_softlso()
1602 pktlen, in nxge_do_softlso()
[all …]
/illumos-gate/usr/src/uts/common/io/arn/
H A Darn_xmit.c1172 uint32_t pktlen) in setup_tx_flags() argument
1184 if (pktlen > ic->ic_rtsthreshold) { in setup_tx_flags()
1210 bf->bf_frmlen = pktlen; in ath_tx_setup_buffer()
1261 int streams, pktlen; in ath_pkt_duration() local
1876 pktlen = IEEE80211_CRC_LEN; in arn_tx_start()
1917 pktlen += cip->ic_trailer; in arn_tx_start()
1919 pktlen += cip->ic_miclen; in arn_tx_start()
1934 pktlen += mbslen; in arn_tx_start()
1937 pktlen -= 2; /* real pkg len */ in arn_tx_start()
1998 (pktlen), /* packet length */ in arn_tx_start()
[all …]
/illumos-gate/usr/src/uts/common/io/bpf/
H A Dbpf.c1492 bpf_deliver(struct bpf_d *d, cp_fn_t cpfn, void *marg, uint_t pktlen, in bpf_deliver() argument
1506 slen = bpf_filter(d->bd_filter, marg, pktlen, buflen); in bpf_deliver()
1508 struct bpf_d *, d, void *, marg, uint_t, pktlen, uint_t, slen); in bpf_deliver()
1513 catchpacket(d, marg, pktlen, slen, cpfn, &tv); in bpf_deliver()
1527 uint_t pktlen, buflen; in bpf_mtap() local
1530 pktlen = msgdsize(m); in bpf_mtap()
1532 if (pktlen == M_LEN(m)) { in bpf_mtap()
1535 buflen = pktlen; in bpf_mtap()
1542 bpf_deliver(d, cpfn, marg, pktlen, buflen, issent); in bpf_mtap()
1591 totlen = hdrlen + min(snaplen, pktlen); in catchpacket()
[all …]
/illumos-gate/usr/src/uts/common/io/rwd/
H A Drt2661.c977 uint32_t pktlen; in rt2661_rx_intr() local
1037 bcopy(rxbuf, m->b_rptr, pktlen); in rt2661_rx_intr()
1038 m->b_wptr += pktlen; in rt2661_rx_intr()
1418 int mblen, pktlen; in rt2661_send() local
1471 pktlen = msgdsize(m); in rt2661_send()
1502 0, pktlen, in rt2661_send()
1512 pktlen, ring->cur, rate); in rt2661_send()
1544 int mblen, pktlen; in rt2661_mgmt_send() local
1598 pktlen = msgdsize(m); in rt2661_mgmt_send()
1625 0, pktlen, in rt2661_mgmt_send()
[all …]
/illumos-gate/usr/src/uts/common/io/ural/
H A Dural.c451 int len, pktlen; in ural_rxeof() local
493 pktlen = (LE_32(desc->flags) >> 16) & 0xfff; in ural_rxeof()
495 if (pktlen > (len - RAL_RX_DESC_SIZE)) { in ural_rxeof()
502 pktlen -= IEEE80211_CRC_LEN; in ural_rxeof()
504 if ((m = allocb(pktlen, BPRI_MED)) == NULL) { in ural_rxeof()
511 bcopy(rxbuf, m->b_rptr, pktlen); in ural_rxeof()
512 m->b_wptr += pktlen; in ural_rxeof()
679 int off, mblen, pktlen, xferlen; in ural_send() local
791 xferlen = (RAL_TX_DESC_SIZE + pktlen + 1) & ~1; in ural_send()
803 pktlen, rate, xferlen); in ural_send()
[all …]
/illumos-gate/usr/src/uts/common/ipp/flowacct/
H A Dflowacct.c251 header->pktlen = ntohs(ipha->ipha_length); in flowacct_extract_header()
275 header->pktlen = ntohs(ip6h->ip6_plen) + in flowacct_extract_header()
571 item->nbytes = header->pktlen; in flowacct_update_flows_tbl()
575 item->nbytes += header->pktlen; in flowacct_update_flows_tbl()
638 atomic_add_64(&flowacct_data->tbytes, header->pktlen); in flowacct_update_flows_tbl()
918 atomic_add_64(&flowacct_data->nbytes, header->pktlen); in flowacct_process()
H A Dflowacct_impl.h158 uint32_t pktlen; member
/illumos-gate/usr/src/uts/common/io/atu/
H A Datu.c605 int len, pktlen; in atu_rxeof() local
622 pktlen = h->length - 4; in atu_rxeof()
623 if (pktlen + ATU_RX_HDRLEN + 4 != len) { in atu_rxeof()
625 sc->sc_name, len, pktlen); in atu_rxeof()
631 mp->b_wptr = mp->b_rptr + pktlen; in atu_rxeof()
777 int pktlen = msgdsize(mp), err = 0; in atu_send() local
800 m->b_wptr += pktlen; in atu_send()
821 pktlen = msgdsize(m); in atu_send()
827 desc->length = (uint16_t)pktlen; in atu_send()
833 ic->ic_stats.is_tx_bytes += pktlen; in atu_send()
/illumos-gate/usr/src/uts/common/io/rum/
H A Drum.c516 int len, pktlen; in rum_rxeof() local
558 pktlen = (LE_32(desc->flags) >> 16) & 0xfff; in rum_rxeof()
560 if (pktlen > (len - RT2573_RX_DESC_SIZE)) { in rum_rxeof()
566 if ((m = allocb(pktlen, BPRI_MED)) == NULL) { in rum_rxeof()
574 m->b_wptr += pktlen; in rum_rxeof()
740 int off, mblen, pktlen, xferlen; in rum_send() local
850 pktlen = msgdsize(m) - RT2573_TX_DESC_SIZE; in rum_send()
851 rum_setup_tx_desc(sc, desc, flags, 0, pktlen, rate); in rum_send()
854 xferlen = (RT2573_TX_DESC_SIZE + pktlen + 3) & ~3; in rum_send()
866 pktlen, rate, xferlen); in rum_send()
[all …]
/illumos-gate/usr/src/uts/common/io/ral/
H A Drt2560.c1438 int off, pktlen, mblen; in rt2560_mgmt_send() local
1501 pktlen = msgdsize(m); in rt2560_mgmt_send()
1503 bcopy(m->b_rptr, dest, pktlen); in rt2560_mgmt_send()
1534 pktlen, sc->prioq.cur, rate); in rt2560_mgmt_send()
1544 ic->ic_stats.is_tx_bytes += pktlen; in rt2560_mgmt_send()
1573 int off, mblen, pktlen; in rt2560_send() local
1637 pktlen = msgdsize(m); in rt2560_send()
1639 bcopy(m->b_rptr, dest, pktlen); in rt2560_send()
1648 pktlen, NULL, 0); in rt2560_send()
1659 data->id.id_len = pktlen; in rt2560_send()
[all …]
/illumos-gate/usr/src/uts/common/io/atge/
H A Datge_l1.c632 uint32_t index, flags, totlen, pktlen, slotlen; in atge_l1_rx() local
708 for (cnt = 0, pktlen = 0; cnt < nsegs; cnt++) { in atge_l1_rx()
719 bcopy(buf->addr, (bufp + pktlen), slotlen); in atge_l1_rx()
720 pktlen += slotlen; in atge_l1_rx()
724 pktlen)); in atge_l1_rx()
H A Datge_l1c.c740 uint32_t rdinfo, status, totlen, pktlen, slotlen; in atge_l1c_rx() local
817 for (cnt = 0, pktlen = 0; cnt < nsegs; cnt++) { in atge_l1c_rx()
822 bcopy(buf->addr, (bufp + pktlen), slotlen); in atge_l1c_rx()
823 pktlen += slotlen; in atge_l1c_rx()
828 pktlen)); in atge_l1c_rx()
H A Datge_main.c2774 size_t pktlen; in atge_send_a_packet() local
2781 pktlen = msgsize(mp); in atge_send_a_packet()
2782 if (pktlen > atgep->atge_tx_buf_len) { in atge_send_a_packet()
2787 pktlen, atgep->atge_rx_buf_len)); in atge_send_a_packet()
2831 ATGE_PUT32(r->r_desc_ring, &txd->len, L1C_TX_BYTES(pktlen)); in atge_send_a_packet()
2847 ATGE_PUT32(r->r_desc_ring, &txd->len, ATGE_TX_BYTES(pktlen)); in atge_send_a_packet()
2857 DMA_SYNC(r->r_buf_tbl[start], 0, pktlen, DDI_DMA_SYNC_FORDEV); in atge_send_a_packet()
2885 r->r_atge->atge_obytes += pktlen; in atge_send_a_packet()
2888 "consumer : %d", atgep->atge_name, __func__, pktlen, in atge_send_a_packet()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_display.c77 int drops, pktlen; in process_pkt() local
92 pktlen = hdrp->sbh_msglen; in process_pkt()
93 if (pktlen <= 0) in process_pkt()
H A Dsnoop_capture.c801 int pktlen; in cap_write() local
817 pktlen = hdrp->sbh_totlen - sizeof (*hdrp); in cap_write()
832 if (nwrite(capfile_out.capfile_curfd, pktp, pktlen) == -1) in cap_write()
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_output.c800 int pktlen; in ieee80211_beacon_alloc() local
825 pktlen = 8 /* time stamp */ in ieee80211_beacon_alloc()
840 m = ieee80211_getmgtframe(&frm, pktlen); in ieee80211_beacon_alloc()
843 "cannot get buf; size %u\n", pktlen); in ieee80211_beacon_alloc()
/illumos-gate/usr/src/uts/common/io/ath/
H A Dath_main.c676 int32_t keyix, iswep, hdrlen, pktlen, mblen, mbslen, try0; in ath_tx_start() local
690 pktlen = IEEE80211_CRC_LEN; in ath_tx_start()
726 pktlen += cip->ic_trailer; in ath_tx_start()
728 pktlen += cip->ic_miclen; in ath_tx_start()
742 pktlen += mbslen; in ath_tx_start()
825 } else if (pktlen > ic->ic_rtsthreshold) { in ath_tx_start()
870 rt, pktlen, rix, shortPreamble); in ath_tx_start()
887 pktlen, /* packet length */ in ath_tx_start()
943 ic->ic_stats.is_tx_bytes += pktlen; in ath_tx_start()
/illumos-gate/usr/src/uts/common/io/rtw/
H A Drtw.c2098 int32_t iswep, pktlen, mblen; in rtw_assembly_80211() local
2132 pktlen = msgdsize(mp0); in rtw_assembly_80211()
2140 if (pktlen > bf->bf_dma.alength) { in rtw_assembly_80211()
2142 __func__, pktlen); in rtw_assembly_80211()
2146 bcopy(mp0->b_rptr, buf, pktlen); in rtw_assembly_80211()
2164 LSHIFT(pktlen, RTW_TXCTL0_TPKTSIZE_MASK); in rtw_assembly_80211()
2185 if (pktlen > ic->ic_rtsthreshold) { in rtw_assembly_80211()
2188 __func__, pktlen); in rtw_assembly_80211()
2199 if (rtw_compute_duration(wh, pktlen, in rtw_assembly_80211()
2228 ds->td_len = pktlen & 0xfff; in rtw_assembly_80211()
[all …]
/illumos-gate/usr/src/uts/common/io/rwn/
H A Drt2860.c1090 int mblen, pktlen; in rt2860_send() local
1159 pktlen = msgdsize(m); in rt2860_send()
1183 txwi->len = LE_16(pktlen); in rt2860_send()
1204 (pktlen + IEEE80211_CRC_LEN > ic->ic_rtsthreshold || in rt2860_send()
1222 bcopy(m->b_rptr, data->txbuf_dma.mem_va, pktlen - hdrlen); in rt2860_send()
1234 txd->sdl1 = LE_16(pktlen - hdrlen | RT2860_TX_LS1); in rt2860_send()
1261 ic->ic_stats.is_tx_bytes += pktlen; in rt2860_send()
1712 int pktlen; in rt2860_rx_intr() local
1757 pktlen = LE_16(rxwi->len) & 0xfff; in rt2860_rx_intr()
1766 bcopy(rxbuf, mp0->b_rptr, pktlen); in rt2860_rx_intr()
[all …]

12