Home
last modified time | relevance | path

Searched refs:paylen (Results 1 – 10 of 10) sorted by relevance

/netbsd-src/external/mpl/dhcp/dist/omapip/
H A Dtrace.c519 unsigned paylen; in trace_get_next_packet() local
609 paylen = tpkt -> length; in trace_get_next_packet()
610 if (paylen % 8) in trace_get_next_packet()
611 paylen += 8 - (tpkt -> length % 8); in trace_get_next_packet()
614 if ((*buf == NULL) || (paylen > (*bufmax))) { in trace_get_next_packet()
617 (*bufmax) = ((paylen + 1023) & ~1023U); in trace_get_next_packet()
626 status = fread ((*buf), 1, paylen, traceinfile); in trace_get_next_packet()
627 if (status < paylen) { in trace_get_next_packet()
632 status, paylen); in trace_get_next_packet()
/netbsd-src/external/mpl/dhcp/dist/common/
H A Dupf.c303 unsigned paylen; local
325 from, length, &paylen, 1);
334 if (length < paylen)
338 memcpy (buf, &ibuf[bufix], paylen);
339 return paylen;
H A Dnit.c354 unsigned paylen; local
375 from, length, &paylen, 1);
384 if (length < paylen)
388 memcpy(buf, &ibuf[bufix], paylen);
389 return paylen;
H A Dlpf.c390 unsigned paylen; local
476 (unsigned)length, &paylen, csum_ready);
485 if (length < paylen)
489 memcpy(buf, &ibuf[bufix], paylen);
490 return paylen;
H A Dbpf.c458 unsigned paylen; local
540 from, hdr.bh_caplen, &paylen, 1);
563 memcpy(buf, interface->rbuf + interface->rbuf_offset, paylen);
566 return paylen;
H A Ddlpi.c647 unsigned paylen; local
708 from, length, &paylen, 1);
725 if (length < paylen)
729 memcpy(buf, &dbuf [bufix], paylen);
730 return paylen;
/netbsd-src/sys/net80211/
H A Dieee80211_output.c839 paylen; /* payload length w/o overhead */ in ieee80211_compute_duration() local
845 paylen = len - roundup(hdrlen, sizeof(u_int32_t)); in ieee80211_compute_duration()
846 if (paylen < 0) { in ieee80211_compute_duration()
850 paylen = len - hdrlen; in ieee80211_compute_duration()
858 paylen -= cryptolen; in ieee80211_compute_duration()
862 npkt = paylen / fraglen; in ieee80211_compute_duration()
863 lastlen0 = paylen % fraglen; in ieee80211_compute_duration()
866 lastlen = paylen + overlen; in ieee80211_compute_duration()
879 firstlen = paylen + overlen; in ieee80211_compute_duration()
/netbsd-src/sys/dev/pci/
H A Dif_iwm.c4193 int err = 0, i, paylen, off, s; in iwm_send_cmd() local
4204 for (i = 0, paylen = 0; i < __arraycount(hcmd->len); i++) { in iwm_send_cmd()
4205 paylen += hcmd->len[i]; in iwm_send_cmd()
4237 if (paylen > datasz) { in iwm_send_cmd()
4239 size_t totlen = hdrlen + paylen; in iwm_send_cmd()
4240 if (paylen > IWM_MAX_CMD_PAYLOAD_SIZE) { in iwm_send_cmd()
4280 cmd->hdr_wide.length = htole16(paylen); in iwm_send_cmd()
4297 KASSERT(off == paylen); in iwm_send_cmd()
4303 | ((hdrlen + paylen) << 4)); in iwm_send_cmd()
4307 code, hdrlen + paylen, asyn in iwm_send_cmd()
[all...]
/netbsd-src/sys/dev/pci/ixgbe/
H A Dix_txrx.c1007 u32 mss_l4len_idx = 0, paylen; in ixgbe_tso_setup() local
1065 paylen = mp->m_pkthdr.len - ehdrlen - ip_hlen - tcp_hlen; in ixgbe_tso_setup()
1096 *olinfo_status |= paylen << IXGBE_ADVTXD_PAYLEN_SHIFT; in ixgbe_tso_setup()
/netbsd-src/sys/dev/pci/igc/
H A Dif_igc.c3356 uint32_t ehlen, iphlen, tcphlen, paylen; in igc_tso_setup()
3415 paylen = mp->m_pkthdr.len - ehlen - iphlen - tcphlen; in igc_tso_setup()
3424 paylen = mp->m_pkthdr.len - ehlen - iphlen - tcphlen; in igc_tso_setup()
3450 *olinfo_status |= paylen << IGC_ADVTXD_PAYLEN_SHIFT; in igc_tso_setup()