Searched refs:pktlen (Results 1 - 25 of 58) sorted by relevance

123

/freebsd-10.3-release/contrib/gdb/gdb/
H A Docd.c57 static void ocd_put_packet (unsigned char *packet, int pktlen);
59 static unsigned char *ocd_get_packet (int cmd, int *pktlen, int timeout);
159 int pktlen;
178 p = ocd_get_packet (buf[0], &pktlen, remote_timeout);
180 if (pktlen < 2)
189 ocd_do_command (OCD_AYT, &status, &pktlen);
191 p = ocd_do_command (OCD_GET_VERSION, &status, &pktlen);
209 p = ocd_get_packet (buf[0], &pktlen, remote_timeout);
211 if (pktlen < 2)
235 p = ocd_get_packet (buf[0], &pktlen, remote_timeou
157 int pktlen; local
251 int pktlen; local
331 int pktlen; local
343 int pktlen; local
418 int pktlen; local
469 int pktlen; local
522 int pktlen; local
586 int pktlen; local
657 int pktlen; local
1084 int status, pktlen; local
1097 int status, pktlen; local
1120 int status, pktlen; local
[all...]
H A Dxmodem.c167 int pktlen; local
202 pktlen = datasize + 5;
213 pktlen = datasize + 4;
220 serial_write (desc, packet, pktlen);
/freebsd-10.3-release/sys/net80211/
H A Dieee80211_rssadapt.c207 bucket(int pktlen) argument
215 if (pktlen <= top)
225 u_int pktlen = iarg; local
235 thrs = &ra->ra_rate_thresh[bucket(pktlen)];
248 "RSSADAPT new rate %d (pktlen %d rssi %d)",
249 ni->ni_txrate, pktlen, rssi);
261 rssadapt_lower_rate(struct ieee80211_rssadapt_node *ra, int pktlen, int rssi) argument
267 thrs = &ra->ra_rate_thresh[bucket(pktlen)];
281 rssadapt_raise_rate(struct ieee80211_rssadapt_node *ra, int pktlen, int rssi) argument
287 thrs = &ra->ra_rate_thresh[bucket(pktlen)];
313 int pktlen = *(int *)arg1, rssi = *(int *)arg2; local
[all...]
H A Dieee80211_freebsd.c402 ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen) argument
411 len = roundup2(headroom + pktlen, 4);
443 int pktlen, space; local
446 pktlen = m->m_pkthdr.len;
447 space = pktlen + align;
461 m_copydata(m, 0, pktlen, mtod(n, caddr_t));
462 n->m_len = pktlen;
/freebsd-10.3-release/contrib/unbound/sldns/
H A Dwire2str.h156 * @param pktlen: length of packet buffer.
160 size_t* str_len, uint8_t* pkt, size_t pktlen);
170 * @param pktlen: length of packet buffer.
174 size_t* str_len, uint8_t* pkt, size_t pktlen);
184 * @param pktlen: length of packet buffer.
188 size_t* str_len, uint8_t* pkt, size_t pktlen);
228 * @param pktlen: length of packet buffer.
232 size_t* str_len, uint16_t rrtype, uint8_t* pkt, size_t pktlen);
254 * @param pktlen: length of packet buffer.
258 size_t* str_len, uint8_t* pkt, size_t pktlen);
[all...]
H A Dwire2str.c333 size_t pktlen = *dlen; local
347 pkt, pktlen);
353 w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen);
359 w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen);
365 w += sldns_wire2str_rr_scan(d, dlen, s, slen, pkt, pktlen);
369 w += sldns_str_print(s, slen, ";; MSG SIZE rcvd: %d\n", (int)pktlen);
414 uint8_t* pkt, size_t pktlen)
424 return sldns_wire2str_edns_scan(d, dlen, s, slen, pkt, pktlen);
429 w += sldns_wire2str_dname_scan(d, dlen, s, slen, pkt, pktlen);
473 w += sldns_wire2str_rdata_scan(d, &rdlen, s, slen, rrtype, pkt, pktlen);
413 sldns_wire2str_rr_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen, uint8_t* pkt, size_t pktlen) argument
483 sldns_wire2str_rrquestion_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen, uint8_t* pkt, size_t pktlen) argument
507 sldns_wire2str_rr_unknown_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen, uint8_t* pkt, size_t pktlen) argument
662 sldns_wire2str_rdata_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen, uint16_t rrtype, uint8_t* pkt, size_t pktlen) argument
739 sldns_wire2str_dname_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen, uint8_t* pkt, size_t pktlen) argument
891 sldns_wire2str_rdf_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen, int rdftype, uint8_t* pkt, size_t pktlen) argument
1480 sldns_wire2str_ipseckey_scan_internal(uint8_t** d, size_t* dl, char** s, size_t* sl, uint8_t* pkt, size_t pktlen) argument
1522 sldns_wire2str_ipseckey_scan(uint8_t** d, size_t* dl, char** s, size_t* sl, uint8_t* pkt, size_t pktlen) argument
1911 sldns_wire2str_edns_scan(uint8_t** data, size_t* data_len, char** str, size_t* str_len, uint8_t* pkt, size_t pktlen) argument
[all...]
/freebsd-10.3-release/usr.sbin/ppp/
H A Dtcpmss.c99 MSSFixup(struct tcphdr *tc, size_t pktlen, u_int16_t maxmss) argument
109 if (hlen <= sizeof(struct tcphdr) || hlen > pktlen)
/freebsd-10.3-release/sys/dev/ath/
H A Dif_ath_tx_ht.c349 uint16_t pktlen)
371 ndelim = ATH_AGGR_GET_NDELIM(pktlen);
404 "%s: pktlen=%d, ndelim=%d, mpdudensity=%d\n",
405 __func__, pktlen, ndelim, mpdudensity);
446 if (pktlen < minlen) {
447 mindelim = (minlen - pktlen) / ATH_AGGR_DELIM_SZ;
452 "%s: pktlen=%d, minlen=%d, rix=%x, rc=%x, width=%d, hgi=%d, ndelim=%d\n",
453 __func__, pktlen, minlen, rix, rc, width, half_gi, ndelim);
503 int pktlen; local
515 pktlen
348 ath_compute_num_delims(struct ath_softc *sc, struct ath_buf *first_bf, uint16_t pktlen) argument
[all...]
H A Dif_athrate.h155 int pktlen, int nframes, int nbad);
H A Dif_ath_tx.c575 "%s: bf=%p, nseg=%d, pktlen=%d, seqno=%d\n",
993 struct mbuf *m0, int iswep, int isfrag, int *hdrlen, int *pktlen,
997 "%s: hdrlen=%d, pktlen=%d, isfrag=%d, iswep=%d, m0=%p\n",
1000 *pktlen,
1034 (*pktlen) += cip->ic_header + cip->ic_trailer;
1037 (*pktlen) += cip->ic_miclen;
1210 int shortPreamble, int pktlen, const HAL_RATE_TABLE *rt,
1235 rt, pktlen, rix, AH_TRUE);
1242 rt, pktlen, rix, AH_FALSE);
1566 int keyix, hdrlen, pktlen, try local
992 ath_tx_tag_crypto(struct ath_softc *sc, struct ieee80211_node *ni, struct mbuf *m0, int iswep, int isfrag, int *hdrlen, int *pktlen, int *keyix) argument
1209 ath_tx_calc_ctsduration(struct ath_hal *ah, int rix, int cix, int shortPreamble, int pktlen, const HAL_RATE_TABLE *rt, int flags) argument
2095 int keyix, hdrlen, pktlen, try0, txantenna; local
4623 int pktlen; local
[all...]
/freebsd-10.3-release/sys/netgraph/
H A Dng_tcpmss.c272 int iphlen, tcphlen, pktlen; local
283 pktlen = m->m_pkthdr.len;
284 priv->stats.Octets += pktlen;
310 if (iphlen < sizeof(struct ip) || iphlen > pktlen )
324 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen)
/freebsd-10.3-release/libexec/bootpd/
H A Dbootpd.c154 int pktlen;
561 pktlen = n;
1112 if (sendto(s, pktbuf, pktlen, 0,
1252 pktlen = hp->msg_size;
1259 if (pktlen > sizeof(*bp)) {
1261 report(LOG_INFO, "request message length=%d", pktlen);
1303 pktlen = msgsz - BP_MSG_OVERHEAD;
1308 if (pktlen < sizeof(*bp)) {
1309 report(LOG_ERR, "invalid response length=%d", pktlen);
1310 pktlen
153 int pktlen; variable
[all...]
/freebsd-10.3-release/libexec/bootpd/bootpgw/
H A Dbootpgw.c135 int pktlen;
476 pktlen = n;
598 if (sendto(s, pktbuf, pktlen, 0,
664 if (sendto(s, pktbuf, pktlen, 0,
134 int pktlen; variable
/freebsd-10.3-release/sys/dev/sbni/
H A Dif_sbnivar.h85 u_int pktlen; /* length of transmitting pkt */ member in struct:sbni_softc
/freebsd-10.3-release/sys/dev/usb/net/
H A Dif_smsc.c950 uint16_t pktlen; local
980 pktlen = (uint16_t)SMSC_RX_STAT_FRM_LENGTH(rxhdr);
982 smsc_dbg_printf(sc, "rx : rxhdr 0x%08x : pktlen %d : actlen %d : "
983 "off %d\n", rxhdr, pktlen, actlen, off);
994 if ((pktlen < ETHER_HDR_LEN) || (pktlen > (actlen - off)))
1005 usbd_copy_out(pc, off, mtod(m, uint8_t *), pktlen);
1015 pktlen -= 2;
1028 (pktlen > ETHER_MIN_LEN)) {
1041 usbd_copy_out(pc, (off + pktlen),
[all...]
H A Dif_udavreg.h144 uint16_t pktlen; member in struct:udav_rxpkt
H A Dif_axge.c935 uint32_t pktlen; local
962 pktlen = (pkt_hdr >> 16) & 0x1fff;
967 if (pktlen >= 6 && (int)(pos + pktlen) <= actlen) {
968 axge_rxeof(ue, pc, pos + 2, pktlen - 6, pkt_hdr);
971 (int)pos, (int)pktlen);
973 pos += (pktlen + 7) & ~7;
/freebsd-10.3-release/sys/net/
H A Dbpf.c2045 * pktlen, which is stored in a contiguous buffer. The packet is parsed
2050 bpf_tap(struct bpf_if *bp, u_char *pkt, u_int pktlen) argument
2084 slen = (*(bf->func))(pkt, pktlen, pktlen);
2087 slen = bpf_filter(d->bd_rfilter, pkt, pktlen, pktlen);
2100 catchpacket(d, pkt, pktlen, slen,
2124 u_int pktlen, slen; local
2133 pktlen = m_length(m, NULL);
2146 slen = (*(bf->func))(mtod(m, u_char *), pktlen, pktle
2177 u_int pktlen, slen; local
2296 catchpacket(struct bpf_d *d, u_char *pkt, u_int pktlen, u_int snaplen, void (*cpfn)(struct bpf_d *, caddr_t, u_int, void *, u_int), struct bintime *bt) argument
2851 bpf_tap(struct bpf_if *bp, u_char *pkt, u_int pktlen) argument
[all...]
/freebsd-10.3-release/sys/dev/usb/wlan/
H A Dif_rsu.c1138 int pktlen; local
1153 pktlen = sizeof(*wh) + le32toh(bss->ieslen);
1154 if (__predict_false(pktlen > MCLBYTES))
1159 if (pktlen > MHLEN) {
1178 m->m_pkthdr.len = m->m_len = pktlen;
1345 rsu_rx_frame(struct rsu_softc *sc, uint8_t *buf, int pktlen, int *rssi) argument
1364 if (__predict_false(pktlen < sizeof(*wh) || pktlen > MCLBYTES)) {
1379 pktlen, rate, infosz, *rssi);
1386 if (pktlen > MHLE
1402 memcpy(mtod(m, uint8_t *), wh, pktlen); local
1444 int totlen, pktlen, infosz, npkts; local
[all...]
/freebsd-10.3-release/sys/arm/ti/cpsw/
H A Dif_cpswreg.h133 volatile uint16_t pktlen; member in struct:cpsw_cpdma_bd
/freebsd-10.3-release/contrib/tcpdump/
H A Dprint-decnet.c73 u_int nsplen, pktlen; local
82 pktlen = EXTRACT_LE_16BITS(ap);
83 if (pktlen < sizeof(struct shorthdr)) {
87 if (pktlen > length) {
91 length = pktlen;
157 dnaddr_string(src), dnaddr_string(dst), pktlen);
/freebsd-10.3-release/sys/netpfil/ipfw/
H A Dip_fw2.c947 int pktlen; local
982 pktlen = m->m_pkthdr.len;
1012 if (pktlen >= sizeof(struct ip6_hdr) &&
1182 } else if (pktlen >= sizeof(struct ip) &&
1196 pktlen = iplen < pktlen ? iplen : pktlen;
2096 IPFW_INC_DYN_COUNTER(q, pktlen);
2155 IPFW_INC_RULE_COUNTER(f, pktlen);
2160 IPFW_INC_RULE_COUNTER(f, pktlen);
[all...]
/freebsd-10.3-release/sys/dev/malo/
H A Dif_malo.c902 ds->status, le16toh(ds->pktlen), ds->snr, ds->nf, ds->channel,
916 le32toh(ds->pktptr), le16toh(ds->pktlen), status,
1040 ds->pktlen = htole32(0);
1092 int copyhdrlen, hdrlen, pktlen; local
1106 pktlen = m0->m_pkthdr.len;
1148 pktlen = m0->m_pkthdr.len;
1198 tr->fwlen = htole16(pktlen - hdrlen);
1220 ds->pktlen = htole16(bf->bf_segs[0].ds_len);
1442 ds->pktlen = htole16(MALO_RXSIZE);
2044 int off, len, hdrlen, pktlen, rss local
[all...]
H A Dif_malo.h395 uint16_t pktlen; member in struct:malo_txdesc
432 uint16_t pktlen; /* total length of received data */ member in struct:malo_rxdesc
/freebsd-10.3-release/sys/contrib/altq/altq/
H A Daltq_rmclass.c1260 int idle, avgidle, pktlen; local
1272 pktlen = ifd->curlen_[ifd->qo_];
1276 PKTCNTR_ADD(&cl->stats_.xmit_cnt, pktlen);
1334 pkt_time = pktlen * cl->ns_per_byte_;
1337 pkt_time = pktlen * cl->ns_per_byte_ / 1000;
1383 PKTCNTR_ADD(&cl->stats_.xmit_cnt, pktlen);

Completed in 286 milliseconds

123