Home
last modified time | relevance | path

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

/dragonfly/contrib/wpa_supplicant/src/ap/
H A Ddhcp_snoop.c42 u16 tot_len; in handle_dhcp() local
49 tot_len = ntohs(b->iph.tot_len); in handle_dhcp()
50 if (tot_len > (unsigned int) (len - ETH_HLEN)) in handle_dhcp()
57 end = (const u8 *) b + tot_len; in handle_dhcp()
H A Dfils_hlp.c264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos)); in fils_dhcp_handler()
514 u16 tot_len; in fils_process_hlp_ip() local
524 tot_len = ntohs(iph->tot_len); in fils_process_hlp_ip()
525 if (tot_len > len) in fils_process_hlp_ip()
/dragonfly/contrib/wpa_supplicant/src/eap_peer/
H A Deap_pwd.c873 u16 tot_len = 0; in eap_pwd_process() local
957 tot_len = WPA_GET_BE16(pos); in eap_pwd_process()
959 "total length = %d", tot_len); in eap_pwd_process()
960 if (tot_len > 15000) in eap_pwd_process()
968 data->inbuf = wpabuf_alloc(tot_len); in eap_pwd_process()
1070 tot_len = len; in eap_pwd_process()
1076 "length = %d", tot_len); in eap_pwd_process()
1087 wpabuf_put_be16(resp, tot_len); in eap_pwd_process()
/dragonfly/contrib/wpa_supplicant/src/eap_server/
H A Deap_server_pwd.c853 u16 tot_len; in eap_pwd_process() local
891 tot_len = WPA_GET_BE16(pos); in eap_pwd_process()
893 "length = %d", tot_len); in eap_pwd_process()
894 if (tot_len > 15000) in eap_pwd_process()
901 data->inbuf = wpabuf_alloc(tot_len); in eap_pwd_process()
/dragonfly/contrib/wpa_supplicant/src/common/
H A Ddhcp.h19 #define tot_len ip_len macro
/dragonfly/sys/net/pf/
H A Dpf.c6602 pd.tot_len = ntohs(h->ip_len); in pf_test()
6792 r->bytes[dirndx] += pd.tot_len; in pf_test()
6795 a->bytes[dirndx] += pd.tot_len; in pf_test()
6812 s->bytes[dirndx] += pd.tot_len; in pf_test()
6823 pd.af, pd.tot_len, dir == PF_OUT, in pf_test()
6830 pd.af, pd.tot_len, dir == PF_OUT, in pf_test()
7189 r->bytes[dirndx] += pd.tot_len; in pf_test6()
7192 a->bytes[dirndx] += pd.tot_len; in pf_test6()
7209 s->bytes[dirndx] += pd.tot_len; in pf_test6()
7219 pd.af, pd.tot_len, dir == PF_OUT, in pf_test6()
[all …]
H A Dpf_norm.c906 r->bytes[dir == PF_OUT] += pd->tot_len; in pf_normalize_ip()
1161 r->bytes[dir == PF_OUT] += pd->tot_len; in pf_normalize_ip6()
1339 r->bytes[dir == PF_OUT] += pd->tot_len; in pf_normalize_tcp()
H A Dpfvar.h1205 u_int64_t tot_len; /* Make Mickey money */ member
/dragonfly/sys/dev/netif/lge/
H A Dif_lge.c1076 int frag = 0, tot_len = 0; in lge_encap() local
1092 tot_len += m->m_len; in lge_encap()
1104 cur_tx->lge_ctl = LGE_TXCTL_WANTINTR|LGE_FRAGCNT(frag)|tot_len; in lge_encap()
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/
H A Dctrl_iface.c8920 ntohs(ip.tot_len) > HWSIM_IP_LEN) { in wpas_data_test_rx()
8926 for (i = 0; i < ntohs(ip.tot_len) - sizeof(ip); i++) { in wpas_data_test_rx()
8935 if (ntohs(ip.tot_len) != HWSIM_IP_LEN) in wpas_data_test_rx()
8936 os_snprintf(extra, sizeof(extra), " len=%d", ntohs(ip.tot_len)); in wpas_data_test_rx()
9033 ip->tot_len = htons(send_len); in wpas_ctrl_iface_data_test_tx()