Home
last modified time | relevance | path

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

/netbsd/external/gpl3/gcc.old/dist/libgfortran/intrinsics/
H A Dargs.c201 gfc_charlen_type arglen, tot_len = 0; in get_command_i4() local
224 if (tot_len + thisarg > command_len) in get_command_i4()
226 thisarg = command_len - tot_len; /* Truncate. */ in get_command_i4()
230 else if (i != argc - 1 && tot_len + arglen == command_len) in get_command_i4()
233 memcpy (&command[tot_len], argv[i], thisarg); in get_command_i4()
237 tot_len += arglen; in get_command_i4()
239 tot_len++; in get_command_i4()
243 *length = tot_len; in get_command_i4()
/netbsd/external/gpl3/gcc/dist/libgfortran/intrinsics/
H A Dargs.c201 gfc_charlen_type arglen, tot_len = 0; in get_command_i4() local
224 if (tot_len + thisarg > command_len) in get_command_i4()
226 thisarg = command_len - tot_len; /* Truncate. */ in get_command_i4()
230 else if (i != argc - 1 && tot_len + arglen == command_len) in get_command_i4()
233 memcpy (&command[tot_len], argv[i], thisarg); in get_command_i4()
237 tot_len += arglen; in get_command_i4()
239 tot_len++; in get_command_i4()
243 *length = tot_len; in get_command_i4()
/netbsd/external/bsd/wpa/dist/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()
/netbsd/external/bsd/wpa/dist/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()
1071 tot_len = len; in eap_pwd_process()
1077 "length = %d", tot_len); in eap_pwd_process()
1088 wpabuf_put_be16(resp, tot_len); in eap_pwd_process()
/netbsd/sbin/ping/
H A Dping.c1062 int tot_len, in pr_pack() argument
1082 if (hlen < (int)sizeof(*ip) || tot_len < hlen + ICMP_MINLEN) { in pr_pack()
1086 tot_len, inet_ntoa(from->sin_addr)); in pr_pack()
1093 net_len = tot_len - hlen; in pr_pack()
1134 if (tot_len != opack_ip->ip_len) { in pr_pack()
1136 switch (opack_ip->ip_len - tot_len) { in pr_pack()
1158 "instead of %d", tot_len, opack_ip->ip_len); in pr_pack()
1188 if ((size_t)(tot_len - hlen) > in pr_pack()
/netbsd/external/gpl3/gcc.old/dist/libgfortran/io/
H A Dwrite.c2073 size_t tot_len; in nml_write_obj() local
2295 tot_len = base_name_len + clen; in nml_write_obj()
2300 ext_name[tot_len] = '('; in nml_write_obj()
2301 tot_len++; in nml_write_obj()
2303 snprintf (ext_name + tot_len, ext_name_len - tot_len, "%d", in nml_write_obj()
2305 tot_len += strlen (ext_name + tot_len); in nml_write_obj()
2306 ext_name[tot_len] = ((int) dim_i == obj->var_rank - 1) ? ')' : ','; in nml_write_obj()
2307 tot_len++; in nml_write_obj()
2310 ext_name[tot_len] = '\0'; in nml_write_obj()
/netbsd/external/gpl3/gcc/dist/libgfortran/io/
H A Dwrite.c2125 size_t tot_len; in nml_write_obj() local
2347 tot_len = base_name_len + clen; in nml_write_obj()
2352 ext_name[tot_len] = '('; in nml_write_obj()
2353 tot_len++; in nml_write_obj()
2355 snprintf (ext_name + tot_len, ext_name_len - tot_len, "%d", in nml_write_obj()
2357 tot_len += strlen (ext_name + tot_len); in nml_write_obj()
2358 ext_name[tot_len] = ((int) dim_i == obj->var_rank - 1) ? ')' : ','; in nml_write_obj()
2359 tot_len++; in nml_write_obj()
2362 ext_name[tot_len] = '\0'; in nml_write_obj()
/netbsd/external/bsd/wpa/dist/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()
/netbsd/sys/dist/pf/net/
H A Dpf.c3540 len = pd->tot_len - off - (th->th_off << 2);
5794 pd.tot_len = ntohs(h->ip_len);
5815 pd.p_len = pd.tot_len - off - (th.th_off << 2);
5994 r->bytes[dirndx] += pd.tot_len;
5997 a->bytes[dirndx] += pd.tot_len;
6007 s->src_node->bytes[dirndx] += pd.tot_len;
6015 s->bytes[dirndx] += pd.tot_len;
6416 r->bytes[dirndx] += pd.tot_len;
6419 a->bytes[dirndx] += pd.tot_len;
6429 s->src_node->bytes[dirndx] += pd.tot_len;
[all …]
H A Dpf_norm.c897 r->bytes[dir == PF_OUT] += pd->tot_len;
1142 r->bytes[dir == PF_OUT] += pd->tot_len;
1320 r->bytes[dir == PF_OUT] += pd->tot_len;
H A Dpfvar.h1083 u_int64_t tot_len; /* Make Mickey money */ member
/netbsd/external/bsd/wpa/dist/hostapd/
H A Dctrl_iface.c1847 ntohs(ip.tot_len) > HWSIM_IP_LEN) { in hostapd_data_test_rx()
1853 for (i = 0; i < ntohs(ip.tot_len) - sizeof(ip); i++) { in hostapd_data_test_rx()
1863 if (ntohs(ip.tot_len) != HWSIM_IP_LEN) in hostapd_data_test_rx()
1864 os_snprintf(extra, sizeof(extra), " len=%d", ntohs(ip.tot_len)); in hostapd_data_test_rx()
1962 ip->tot_len = htons(send_len); in hostapd_ctrl_iface_data_test_tx()
/netbsd/external/bsd/wpa/dist/wpa_supplicant/
H A Dctrl_iface.c8923 ntohs(ip.tot_len) > HWSIM_IP_LEN) { in wpas_data_test_rx()
8929 for (i = 0; i < ntohs(ip.tot_len) - sizeof(ip); i++) { in wpas_data_test_rx()
8938 if (ntohs(ip.tot_len) != HWSIM_IP_LEN) in wpas_data_test_rx()
8939 os_snprintf(extra, sizeof(extra), " len=%d", ntohs(ip.tot_len)); in wpas_data_test_rx()
9036 ip->tot_len = htons(send_len); in wpas_ctrl_iface_data_test_tx()