/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/ |
H A D | pppoe.c | 198 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() 244 handle_ip_route_add(char **argv, int argc, const uint8_t *tagp, int pktlen) in handle_ip_route_add() argument 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() [all …]
|
/titanic_41/usr/src/uts/common/inet/ip/ |
H A D | ip6_output.c | 384 uint_t pktlen = ixa->ixa_pktlen; in ire_send_local_v6() local 424 pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ire_send_local_v6() 486 pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ire_send_local_v6() 495 iras.ira_pktlen = pktlen; in ire_send_local_v6() 499 UPDATE_MIB(ill->ill_ip_mib, ipIfStatsHCInOctets, pktlen); in ire_send_local_v6() 721 uint_t pktlen = ixa->ixa_pktlen; in ip_output_sw_cksum_v6() local 797 IP6_STAT_UPDATE(ipst, ip6_out_sw_cksum_bytes, pktlen); in ip_output_sw_cksum_v6() 820 uint_t pktlen = ixa->ixa_pktlen; in ip_output_cksum_v6() local 924 DB_CKSUMEND(mp) = pktlen; in ip_output_cksum_v6() 951 uint32_t pktlen = ixa->ixa_pktlen; in ire_send_wire_v6() local [all …]
|
H A D | ip_output.c | 1083 uint_t pktlen = ixa->ixa_pktlen; in ire_send_local_v4() local 1120 pktlen = ntohs(ipha->ipha_length); in ire_send_local_v4() 1150 iras.ira_pktlen = pktlen; in ire_send_local_v4() 1178 pktlen = iras.ira_pktlen = ntohs(ipha->ipha_length); in ire_send_local_v4() 1187 UPDATE_MIB(ill->ill_ip_mib, ipIfStatsHCInOctets, pktlen); in ire_send_local_v4() 1616 uint_t pktlen = ixa->ixa_pktlen; in ip_output_sw_cksum_v4() local 1678 IP_STAT_UPDATE(ipst, ip_out_sw_cksum_bytes, pktlen); in ip_output_sw_cksum_v4() 1703 uint_t pktlen = ixa->ixa_pktlen; in ip_output_cksum_v4() local 1802 DB_CKSUMEND(mp) = pktlen; in ip_output_cksum_v4() 1954 uint32_t pktlen; in ire_send_wire_v4() local [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | cbcp.c | 139 cbcp_input(unit, inpacket, pktlen) in cbcp_input() argument 142 int pktlen; 152 if (pktlen < CBCP_MINLEN) { 153 error("CBCP packet is too small (%d < %d)", pktlen, CBCP_MINLEN); 161 if (len > pktlen) { 162 error("CBCP packet: invalid length (%d > %d)", len, pktlen);
|
/titanic_41/usr/src/uts/sun/io/dada/impl/ |
H A D | dcd_hba.c | 325 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()
|
/titanic_41/usr/src/uts/common/io/arn/ |
H A D | arn_xmit.c | 1166 int streams, pktlen; in arn_pkt_duration() local 1168 pktlen = bf_isaggr(bf) ? bf->bf_al : bf->bf_frmlen; in arn_pkt_duration() 1173 return (ath9k_hw_computetxtime(sc->sc_ah, rate_table, pktlen, in arn_pkt_duration() 1177 nbits = (pktlen << 3) + OFDM_PLCP_BITS; in arn_pkt_duration() 1216 uint32_t pktlen) in setup_tx_flags() argument 1228 if (pktlen > ic->ic_rtsthreshold) { in setup_tx_flags() 1239 uint32_t pktlen, uint32_t keytype) in ath_tx_setup_buffer() argument 1254 bf->bf_frmlen = pktlen; in ath_tx_setup_buffer() 1276 bf->bf_flags = setup_tx_flags(sc, wh, pktlen); in ath_tx_setup_buffer() 1305 int streams, pktlen; in ath_pkt_duration() local [all …]
|
/titanic_41/usr/src/uts/common/io/nxge/ |
H A D | nxge_send.c | 1257 int pktlen; in nxge_do_softlso() local 1290 pktlen = msgsize(mp); in nxge_do_softlso() 1303 l4_len = pktlen - ehlen - iphlen; in nxge_do_softlso() 1315 ntohs(oiph->ip_len), pktlen, in nxge_do_softlso() 1326 ntohs(oiph->ip_len), pktlen, ehlen, in nxge_do_softlso() 1336 ntohs(oiph->ip_len), pktlen, ehlen, in nxge_do_softlso() 1342 if (!(ntohs(oiph->ip_len) == pktlen - ehlen)) { in nxge_do_softlso() 1346 ntohs(oiph->ip_len), pktlen, ehlen, in nxge_do_softlso() 1375 pktlen, hdrlen, ehlen, iphlen, tcphlen, in nxge_do_softlso() 1402 pktlen, in nxge_do_softlso() [all …]
|
/titanic_41/usr/src/uts/common/io/bpf/ |
H A D | bpf.c | 1480 bpf_deliver(struct bpf_d *d, cp_fn_t cpfn, void *marg, uint_t pktlen, in bpf_deliver() argument 1494 slen = bpf_filter(d->bd_filter, marg, pktlen, buflen); in bpf_deliver() 1496 struct bpf_d *, d, void *, marg, uint_t, pktlen, uint_t, slen); in bpf_deliver() 1501 catchpacket(d, marg, pktlen, slen, cpfn, &tv); in bpf_deliver() 1515 uint_t pktlen, buflen; in bpf_mtap() local 1518 pktlen = msgdsize(m); in bpf_mtap() 1520 if (pktlen == M_LEN(m)) { in bpf_mtap() 1523 buflen = pktlen; in bpf_mtap() 1530 bpf_deliver(d, cpfn, marg, pktlen, buflen, issent); in bpf_mtap() 1563 catchpacket(struct bpf_d *d, uchar_t *pkt, uint_t pktlen, uint_t snaplen, in catchpacket() argument [all …]
|
/titanic_41/usr/src/uts/common/io/rwd/ |
H A D | rt2661.c | 973 uint32_t pktlen; in rt2661_rx_intr() local 1017 pktlen = (LE_32(desc->flags) >> 16) & 0xfff; in rt2661_rx_intr() 1018 if ((pktlen < sizeof (struct ieee80211_frame_min)) || in rt2661_rx_intr() 1019 (pktlen > sc->sc_dmabuf_size)) { in rt2661_rx_intr() 1021 "bad fram length=%u\n", pktlen); in rt2661_rx_intr() 1026 if ((m = allocb(pktlen, BPRI_MED)) == NULL) { in rt2661_rx_intr() 1033 bcopy(rxbuf, m->b_rptr, pktlen); in rt2661_rx_intr() 1034 m->b_wptr += pktlen; in rt2661_rx_intr() 1414 int mblen, pktlen; in rt2661_send() local 1467 pktlen = msgdsize(m); in rt2661_send() [all …]
|
/titanic_41/usr/src/uts/common/io/ural/ |
H A D | ural.c | 451 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() 497 "ural_rxeof(): pktlen mismatch <%d, %d>.\n", pktlen, len); 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 787 pktlen = (uintptr_t)m->b_wptr - (uintptr_t)m->b_rptr - RAL_TX_DESC_SIZE; in ural_send() [all …]
|
/titanic_41/usr/src/uts/common/ipp/flowacct/ |
H A D | flowacct.c | 251 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 D | flowacct_impl.h | 160 uint32_t pktlen; member
|
/titanic_41/usr/src/uts/common/io/atu/ |
H A D | atu.c | 605 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()
|
/titanic_41/usr/src/uts/common/io/rum/ |
H A D | rum.c | 516 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() 562 "rum_rxeof(): pktlen mismatch <%d, %d>.\n", pktlen, len); in rum_rxeof() 566 if ((m = allocb(pktlen, BPRI_MED)) == NULL) { in rum_rxeof() 573 bcopy(rxbuf + RT2573_RX_DESC_SIZE, m->b_rptr, pktlen); 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() [all …]
|
/titanic_41/usr/src/uts/common/io/ral/ |
H A D | rt2560.c | 1438 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() 1522 rt2560_setup_tx_desc(sc, desc, flags, pktlen, rate, 0); 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() [all …]
|
/titanic_41/usr/src/uts/common/io/atge/ |
H A D | atge_l1.c | 632 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 D | atge_l1c.c | 740 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 D | atge_main.c | 2774 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()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_capture.c | 695 int pktlen, mac; in cap_write() local 710 pktlen = hdrp->sbh_totlen - sizeof (*hdrp); in cap_write() 725 if (nwrite(capfile_out, pktp, pktlen) == -1) in cap_write()
|
H A D | snoop_display.c | 77 int drops, pktlen; in process_pkt() local 92 pktlen = hdrp->sbh_msglen; in process_pkt() 93 if (pktlen <= 0) in process_pkt()
|
/titanic_41/usr/src/uts/common/io/net80211/ |
H A D | net80211_output.c | 798 int pktlen; in ieee80211_beacon_alloc() local 823 pktlen = 8 /* time stamp */ in ieee80211_beacon_alloc() 838 m = ieee80211_getmgtframe(&frm, pktlen); in ieee80211_beacon_alloc() 841 "cannot get buf; size %u\n", pktlen); in ieee80211_beacon_alloc()
|
/titanic_41/usr/src/uts/common/io/ath/ |
H A D | ath_main.c | 676 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()
|
/titanic_41/usr/src/uts/common/io/rtw/ |
H A D | rtw.c | 2098 int32_t iswep, pktlen, mblen; in rtw_assembly_80211() local 2132 pktlen = msgdsize(mp0); in rtw_assembly_80211() 2136 ieee80211_dump_pkt((uint8_t *)(mp0->b_rptr), pktlen, 0, 0); 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() [all …]
|
/titanic_41/usr/src/uts/sun4u/starfire/io/ |
H A D | idn_dlpi.c | 1842 int pktlen; local 1867 pktlen = mp->b_wptr - mp->b_rptr; 1869 IDN_KSTAT_ADD(sip, si_rcvbytes, pktlen); 1870 IDN_KSTAT_ADD(sip, si_rbytes64, (uint64_t)pktlen); 1892 pktlen = ehp->ether_type + sizeof (struct ether_header); 1894 proc, pktlen); 1895 if (pktlen < ETHERMIN) 1896 mp->b_wptr = mp->b_rptr + pktlen;
|
/titanic_41/usr/src/uts/common/io/rwn/ |
H A D | rt2860.c | 1089 int mblen, pktlen; in rt2860_send() local 1158 pktlen = msgdsize(m); in rt2860_send() 1182 txwi->len = LE_16(pktlen); in rt2860_send() 1203 (pktlen + IEEE80211_CRC_LEN > ic->ic_rtsthreshold || in rt2860_send() 1221 bcopy(m->b_rptr, data->txbuf_dma.mem_va, pktlen - hdrlen); in rt2860_send() 1233 txd->sdl1 = LE_16(pktlen - hdrlen | RT2860_TX_LS1); in rt2860_send() 1260 ic->ic_stats.is_tx_bytes += pktlen; in rt2860_send() 1711 int pktlen; in rt2860_rx_intr() local 1756 pktlen = LE_16(rxwi->len) & 0xfff; in rt2860_rx_intr() 1765 bcopy(rxbuf, mp0->b_rptr, pktlen); in rt2860_rx_intr() [all …]
|