| /xnu-11215/bsd/net/ |
| H A D | rtsock.c | 1981 if (os_add_overflow(total_len, len, &total_len)) { in sysctl_iflist() 2045 if (os_add_overflow(total_len, len, &total_len)) { in sysctl_iflist() 2095 total_len = 1; in sysctl_iflist() 2097 total_len += total_len >> 3; in sysctl_iflist() 2102 total_len); in sysctl_iflist() 2164 if (os_add_overflow(total_len, len, &total_len)) { in sysctl_iflist2() 2233 if (os_add_overflow(total_len, len, &total_len)) { in sysctl_iflist2() 2295 total_len += len; in sysctl_iflist2() 2341 total_len = 1; in sysctl_iflist2() 2343 total_len += total_len >> 3; in sysctl_iflist2() [all …]
|
| H A D | if_bridge.c | 10683 int total_len = m0->m_pkthdr.len; 10692 if (total_len <= hdr_len + mss) { 10705 for (n = 1; off < total_len; off += mss, n++) { 10735 if (off + mss >= total_len) { /* last segment */ 10736 mss = total_len - off; 10769 m_adj(m0, hdr_len + firstlen - total_len); 10779 m_adj(m0, hdr_len - total_len); 10990 int total_len = m0->m_pkthdr.len; 11046 GSOSTAT_SET_MAX(tcp.gsos_maxsegmented, total_len); 11047 GSOSTAT_SET_MIN(tcp.gsos_minsegmented, total_len); [all …]
|
| /xnu-11215/tests/ |
| H A D | bpf_write_batch.c | 292 ssize_t total_len = 0; in do_bpf_write_batch() local 295 total_len += iovs[i].iov_len; in do_bpf_write_batch() 307 T_LOG("total_len %ld", total_len); in do_bpf_write_batch() 321 T_LOG("bpf written %ld bytes over %lu", nwritten, total_len); in do_bpf_write_batch()
|
| /xnu-11215/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_gso.c | 277 int32_t off = 0, total_len = m->m_pkthdr.len; in netif_gso_tcp_segment_mbuf() local 285 VERIFY(total_len > state->hlen); in netif_gso_tcp_segment_mbuf() 292 n_pkts = (uint32_t)(SK_ROUNDUP((total_len - state->hlen), mss) / mss); in netif_gso_tcp_segment_mbuf() 323 for (n = 1, off = state->hlen; off < total_len; off += mss, n++) { in netif_gso_tcp_segment_mbuf() 347 if (off + mss > total_len) { in netif_gso_tcp_segment_mbuf() 349 mss = (uint16_t)(total_len - off); in netif_gso_tcp_segment_mbuf() 405 ASSERT(off == total_len); in netif_gso_tcp_segment_mbuf() 412 n_bytes = total_len + (state->hlen * (n_pkts - 1)); in netif_gso_tcp_segment_mbuf()
|
| /xnu-11215/bsd/netinet6/ |
| H A D | esp_output.c | 1122 size_t total_len = iphlen + esphlen + plen + extendsiz + auth_size; in esp_kpipe_output() local 1123 if (__improbable(total_len > dlim)) { in esp_kpipe_output() 1253 __buflet_set_data_length(dbuf, (uint16_t)total_len); in esp_kpipe_output() 1257 key_sa_recordxfer(sav, total_len); in esp_kpipe_output()
|
| /xnu-11215/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_dp.c | 1119 uint32_t n_pkts = 0, total_hlen = 0, total_len = 0; in estimate_gso_pkts() local 1130 total_len = pkt->pkt_length; in estimate_gso_pkts() 1132 (SK_ROUNDUP((total_len - total_hlen), mss) / mss); in estimate_gso_pkts() 1135 uint32_t, total_hlen, uint32_t, total_len, uint16_t, mss, in estimate_gso_pkts() 3657 uint32_t n, n_pkts, off = 0, total_len = orig_pkt->pkt_length; in do_gso() local 3696 ASSERT(pkt->pkt_length == total_len); in do_gso() 3729 for (n = 1, payload_sz = mss, off = total_hlen; off < total_len; in do_gso() 3764 if (off + payload_sz > total_len) { in do_gso() 3765 payload_sz = (uint16_t)(total_len - off); in do_gso() 3850 ASSERT(off == total_len); in do_gso() [all …]
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | mbufs.py | 265 total_len = 0 274 total_len += total[0] 279 …ng = "Total packets: {0:d} mbufs: {1:d} length: {2:d} ".format(count_packet, count_mbuf, total_len)
|
| /xnu-11215/bsd/kern/ |
| H A D | uipc_socket2.c | 2200 pru_sosend_list_notsupp(struct socket *so, struct mbuf *m, size_t total_len, u_int *pktcnt, int fla… in pru_sosend_list_notsupp() argument 2202 #pragma unused(so, m, total_len, pktcnt, flags) in pru_sosend_list_notsupp()
|
| H A D | uipc_socket.c | 2715 sosend_list(struct socket *so, struct mbuf *pktlist, size_t total_len, u_int *pktcnt, int flags) in sosend_list() argument 2759 dgram_flow_entry = soflow_get_flow(so, NULL, NULL, NULL, total_len, SOFLOW_DIRECTION_OUTBOUND, 0); in sosend_list()
|