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

/freebsd-11-stable/contrib/wpa/src/ap/
H A Ddhcp_snoop.c42 u16 tot_len; local
49 tot_len = ntohs(b->iph.tot_len);
50 if (tot_len > (unsigned int) (len - ETH_HLEN))
57 end = (const u8 *) b + tot_len;
H A Dfils_hlp.c264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos));
514 u16 tot_len; local
524 tot_len = ntohs(iph->tot_len);
525 if (tot_len > len)
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Decore_tcp_ip.h72 u16 tot_len; member in struct:ecore_iphdr
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_rx.c132 uint16_t tot_len; local
148 tot_len = be32_to_cpu(cqe->byte_cnt) - ETHER_HDR_LEN;
199 ip4->ip_len = cpu_to_be16(tot_len);
204 ip6->ip6_plen = cpu_to_be16(tot_len -
/freebsd-11-stable/contrib/wpa/src/eap_peer/
H A Deap_pwd.c873 u16 tot_len = 0; local
957 tot_len = WPA_GET_BE16(pos);
959 "total length = %d", tot_len);
960 if (tot_len > 15000)
968 data->inbuf = wpabuf_alloc(tot_len);
1070 tot_len = len;
1076 "length = %d", tot_len);
1087 wpabuf_put_be16(resp, tot_len);
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Dib_ud_header.c138 { STRUCT_FIELD(ip4, tot_len),
296 iph.ip_len = header->ip4.tot_len;
379 header->ip4.tot_len =
/freebsd-11-stable/contrib/wpa/src/common/
H A Ddhcp.h19 #define tot_len ip_len macro
/freebsd-11-stable/sys/dev/netmap/
H A Dnetmap_offloadings.c82 iph->tot_len = htobe16(len);
83 nm_prdis("ip total length %u", be16toh(ip->tot_len));
H A Dnetmap_kern.h2126 uint16_t tot_len; member in struct:nm_iphdr
/freebsd-11-stable/contrib/wpa/src/eap_server/
H A Deap_server_pwd.c853 u16 tot_len; local
891 tot_len = WPA_GET_BE16(pos);
893 "length = %d", tot_len);
894 if (tot_len > 15000)
901 data->inbuf = wpabuf_alloc(tot_len);
/freebsd-11-stable/sys/dev/nxge/xgehal/
H A Dxgehal-device-fp.c731 ret = (xge_os_ntohs(ip->tot_len) -
990 lro_new->total_length = xge_os_ntohs(ip->tot_len);
1339 lro->ip_hdr->tot_len = xge_os_htons((*p_lro)->total_length);
1405 lro->ip_hdr->tot_len = xge_os_htons(lro->total_length);
/freebsd-11-stable/sys/ofed/include/rdma/
H A Dib_pack.h238 __be16 tot_len; member in struct:ib_unpacked_ip4
/freebsd-11-stable/sys/dev/vnic/
H A Dq_struct.h574 uint64_t tot_len:20; /* W0 */ member in struct:sq_hdr_subdesc
583 uint64_t tot_len:20;
H A Dnicvf_queues.c1770 hdr->tot_len = len;
/freebsd-11-stable/sys/netpfil/pf/
H A Dpf.c6014 pd.tot_len = ntohs(h->ip_len);
6034 pd.p_len = pd.tot_len - off - (th.th_off << 2);
6245 kif->pfik_bytes[0][dir == PF_OUT][action != PF_PASS] += pd.tot_len;
6251 r->bytes[dirndx] += pd.tot_len;
6254 a->bytes[dirndx] += pd.tot_len;
6259 s->nat_rule.ptr->bytes[dirndx] += pd.tot_len;
6263 s->src_node->bytes[dirndx] += pd.tot_len;
6267 s->nat_src_node->bytes[dirndx] += pd.tot_len;
6271 s->bytes[dirndx] += pd.tot_len;
6282 pd.af, pd.tot_len, di
[all...]
H A Dpf_norm.c861 r->bytes[dir == PF_OUT] += pd->tot_len;
1004 r->bytes[dir == PF_OUT] += pd->tot_len;
1190 r->bytes[dir == PF_OUT] += pd->tot_len;
/freebsd-11-stable/sys/dev/lge/
H A Dif_lge.c1134 int frag = 0, tot_len = 0; local
1147 tot_len += m->m_len;
1160 cur_tx->lge_ctl = LGE_TXCTL_WANTINTR|LGE_FRAGCNT(frag)|tot_len;
/freebsd-11-stable/sys/dev/nxge/
H A Dif_nxge.c2531 int hlen, ip_len, tcp_hdr_len, tcp_data_len, tot_len, tcp_options; local
2584 tot_len = m_head->m_pkthdr.len;
2585 trim = tot_len - (ip_len + ETHER_HDR_LEN);
2590 tot_len = m_head->m_pkthdr.len;
2689 lro_session->len = tot_len;
/freebsd-11-stable/sys/dev/nxge/include/
H A Dxgehal-device.h229 u16 tot_len; member in struct:iplro
/freebsd-11-stable/contrib/wpa/hostapd/
H A Dctrl_iface.c1847 ntohs(ip.tot_len) > HWSIM_IP_LEN) {
1853 for (i = 0; i < ntohs(ip.tot_len) - sizeof(ip); i++) {
1863 if (ntohs(ip.tot_len) != HWSIM_IP_LEN)
1864 os_snprintf(extra, sizeof(extra), " len=%d", ntohs(ip.tot_len));
1962 ip->tot_len = htons(send_len);
/freebsd-11-stable/sys/netinet/
H A Dsctp_output.c3474 int tot_len, rem_len, cmsg_data_len, cmsg_data_off, off; local
3482 tot_len = SCTP_BUF_LEN(control);
3483 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3484 rem_len = tot_len - off;
3579 int tot_len, rem_len, cmsg_data_len, cmsg_data_off, off; local
3581 tot_len = SCTP_BUF_LEN(control);
3582 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3583 rem_len = tot_len - off;
3749 int tot_len, rem_len, cmsg_data_len, cmsg_data_off, off; local
3751 tot_len
[all...]
/freebsd-11-stable/sys/dev/cxgbe/cudbg/
H A Dcudbg_lib.c2552 unsigned long tot_len, struct cudbg_error *cudbg_err)
2590 rc = get_payload_range(padap, mem_type, tot_len,
2608 bytes_left = tot_len;
2609 scratch_buff.size = tot_len;
2550 read_fw_mem(struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, u8 mem_type, unsigned long tot_len, struct cudbg_error *cudbg_err) argument
/freebsd-11-stable/tools/tools/netmap/
H A Dlb.c62 u_int16_t tot_len; member in struct:compact_ip_hdr
/freebsd-11-stable/sys/net/
H A Dpfvar.h1116 u_int64_t tot_len; /* Make Mickey money */ member in struct:pf_pdesc
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dctrl_iface.c8920 ntohs(ip.tot_len) > HWSIM_IP_LEN) {
8926 for (i = 0; i < ntohs(ip.tot_len) - sizeof(ip); i++) {
8935 if (ntohs(ip.tot_len) != HWSIM_IP_LEN)
8936 os_snprintf(extra, sizeof(extra), " len=%d", ntohs(ip.tot_len));
9033 ip->tot_len = htons(send_len);

Completed in 390 milliseconds