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

123

/freebsd-11.0-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-11.0-release/sys/net80211/
H A Dieee80211_rssadapt.c211 bucket(int pktlen) argument
219 if (pktlen <= top)
229 u_int pktlen = iarg; local
239 thrs = &ra->ra_rate_thresh[bucket(pktlen)];
252 "RSSADAPT new rate %d (pktlen %d rssi %d)",
253 ni->ni_txrate, pktlen, rssi);
265 rssadapt_lower_rate(struct ieee80211_rssadapt_node *ra, int pktlen, int rssi) argument
271 thrs = &ra->ra_rate_thresh[bucket(pktlen)];
285 rssadapt_raise_rate(struct ieee80211_rssadapt_node *ra, int pktlen, int rssi) argument
291 thrs = &ra->ra_rate_thresh[bucket(pktlen)];
317 int pktlen = *(int *)arg1, rssi = *(int *)arg2; local
[all...]
H A Dieee80211_freebsd.c356 ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen) argument
365 len = roundup2(headroom + pktlen, 4);
397 int pktlen, space; local
400 pktlen = m->m_pkthdr.len;
401 space = pktlen + align;
415 m_copydata(m, 0, pktlen, mtod(n, caddr_t));
416 n->m_len = pktlen;
/freebsd-11.0-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-11.0-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-11.0-release/sys/dev/ath/
H A Dif_ath_tx_ht.c385 uint16_t pktlen)
407 ndelim = ATH_AGGR_GET_NDELIM(pktlen);
440 "%s: pktlen=%d, ndelim=%d, mpdudensity=%d\n",
441 __func__, pktlen, ndelim, mpdudensity);
482 if (pktlen < minlen) {
483 mindelim = (minlen - pktlen) / ATH_AGGR_DELIM_SZ;
488 "%s: pktlen=%d, minlen=%d, rix=%x, rc=%x, width=%d, hgi=%d, ndelim=%d\n",
489 __func__, pktlen, minlen, rix, rc, width, half_gi, ndelim);
539 int pktlen; local
551 pktlen
384 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.c561 "%s: bf=%p, nseg=%d, pktlen=%d, seqno=%d\n",
963 struct mbuf *m0, int iswep, int isfrag, int *hdrlen, int *pktlen,
967 "%s: hdrlen=%d, pktlen=%d, isfrag=%d, iswep=%d, m0=%p\n",
970 *pktlen,
1004 (*pktlen) += cip->ic_header + cip->ic_trailer;
1007 (*pktlen) += cip->ic_miclen;
1179 int shortPreamble, int pktlen, const HAL_RATE_TABLE *rt,
1204 rt, pktlen, rix, AH_TRUE);
1211 rt, pktlen, rix, AH_FALSE);
1534 int keyix, hdrlen, pktlen, try local
962 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
1178 ath_tx_calc_ctsduration(struct ath_hal *ah, int rix, int cix, int shortPreamble, int pktlen, const HAL_RATE_TABLE *rt, int flags) argument
2072 int keyix, hdrlen, pktlen, try0, txantenna; local
4729 int pktlen; local
[all...]
/freebsd-11.0-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-11.0-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-11.0-release/sys/dev/sbni/
H A Dif_sbnivar.h85 u_int pktlen; /* length of transmitting pkt */ member in struct:sbni_softc
/freebsd-11.0-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-11.0-release/sys/dev/usb/net/
H A Dif_smsc.c971 uint16_t pktlen; local
1001 pktlen = (uint16_t)SMSC_RX_STAT_FRM_LENGTH(rxhdr);
1003 smsc_dbg_printf(sc, "rx : rxhdr 0x%08x : pktlen %d : actlen %d : "
1004 "off %d\n", rxhdr, pktlen, actlen, off);
1015 if ((pktlen < ETHER_HDR_LEN) || (pktlen > (actlen - off)))
1026 usbd_copy_out(pc, off, mtod(m, uint8_t *), pktlen);
1036 pktlen -= 2;
1049 (pktlen > ETHER_MIN_LEN)) {
1062 usbd_copy_out(pc, (off + pktlen),
[all...]
H A Dif_udavreg.h144 uint16_t pktlen; member in struct:udav_rxpkt
H A Dif_axge.c937 uint32_t pktlen; local
964 pktlen = (pkt_hdr >> 16) & 0x1fff;
969 if (pktlen >= 6 && (int)(pos + pktlen) <= actlen) {
970 axge_rxeof(ue, pc, pos + 2, pktlen - 6, pkt_hdr);
973 (int)pos, (int)pktlen);
975 pos += (pktlen + 7) & ~7;
/freebsd-11.0-release/sys/net/
H A Dbpf.c2115 * pktlen, which is stored in a contiguous buffer. The packet is parsed
2120 bpf_tap(struct bpf_if *bp, u_char *pkt, u_int pktlen) argument
2154 slen = (*(bf->func))(pkt, pktlen, pktlen);
2157 slen = bpf_filter(d->bd_rfilter, pkt, pktlen, pktlen);
2170 catchpacket(d, pkt, pktlen, slen,
2194 u_int pktlen, slen; local
2203 pktlen = m_length(m, NULL);
2216 slen = (*(bf->func))(mtod(m, u_char *), pktlen, pktle
2247 u_int pktlen, slen; local
2366 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
2965 bpf_tap(struct bpf_if *bp, u_char *pkt, u_int pktlen) argument
[all...]
/freebsd-11.0-release/sys/dev/malo/
H A Dif_malo.c867 ds->status, le16toh(ds->pktlen), ds->snr, ds->nf, ds->channel,
881 le32toh(ds->pktptr), le16toh(ds->pktlen), status,
988 ds->pktlen = htole32(0);
1037 int copyhdrlen, hdrlen, pktlen; local
1050 pktlen = m0->m_pkthdr.len;
1092 pktlen = m0->m_pkthdr.len;
1142 tr->fwlen = htole16(pktlen - hdrlen);
1164 ds->pktlen = htole16(bf->bf_segs[0].ds_len);
1397 ds->pktlen = htole16(MALO_RXSIZE);
1955 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-11.0-release/sys/dev/usb/wlan/
H A Dif_rsu.c1488 int pktlen; local
1507 pktlen = sizeof(*wh) + le32toh(bss->ieslen);
1508 if (__predict_false(pktlen > MCLBYTES))
1510 m = m_get2(pktlen, M_NOWAIT, MT_DATA, M_PKTHDR);
1525 m->m_pkthdr.len = m->m_len = pktlen;
1742 rsu_rx_frame(struct rsu_softc *sc, uint8_t *buf, int pktlen) argument
1760 if (__predict_false(pktlen < sizeof(*wh) || pktlen > MCLBYTES)) {
1778 __func__, pktlen, rate, infosz);
1780 m = m_get2(pktlen, M_NOWAI
1791 memcpy(mtod(m, uint8_t *), wh, pktlen); local
1837 int totlen, pktlen, infosz, npkts; local
[all...]
/freebsd-11.0-release/tools/bus_space/examples/
H A Dam79c900_diag.py304 pktlen = ctypes.sizeof(pkt) variable
310 bd.flags = (1 << 31) | (1 << 25) | (1 << 24) | (0xf << 12) | (-pktlen & 0xfff)
/freebsd-11.0-release/contrib/tcpdump/
H A Dprint-decnet.c510 u_int nsplen, pktlen; local
519 pktlen = EXTRACT_LE_16BITS(ap);
520 if (pktlen < sizeof(struct shorthdr)) {
524 if (pktlen > length) {
528 length = pktlen;
594 dnaddr_string(ndo, src), dnaddr_string(ndo, dst), pktlen));
/freebsd-11.0-release/sys/netpfil/ipfw/
H A Dip_fw2.c965 int pktlen; local
1001 pktlen = m->m_pkthdr.len;
1031 if (pktlen >= sizeof(struct ip6_hdr) &&
1201 } else if (pktlen >= sizeof(struct ip) &&
1215 pktlen = iplen < pktlen ? iplen : pktlen;
2133 IPFW_INC_DYN_COUNTER(q, pktlen);
2192 IPFW_INC_RULE_COUNTER(f, pktlen);
2197 IPFW_INC_RULE_COUNTER(f, pktlen);
[all...]
/freebsd-11.0-release/sys/net/altq/
H A Daltq_rmclass.c1263 int idle, avgidle, pktlen; local
1275 pktlen = ifd->curlen_[ifd->qo_];
1279 PKTCNTR_ADD(&cl->stats_.xmit_cnt, pktlen);
1337 pkt_time = pktlen * cl->ns_per_byte_;
1340 pkt_time = pktlen * cl->ns_per_byte_ / 1000;
1386 PKTCNTR_ADD(&cl->stats_.xmit_cnt, pktlen);

Completed in 307 milliseconds

123