/dragonfly/contrib/tcpdump/ |
H A D | print-mobility.c | 247 hlen = IP6M_MINLEN; in mobility_print() 258 hlen += 8; in mobility_print() 270 hlen += 8; in mobility_print() 277 hlen += 8; in mobility_print() 293 hlen += 1; in mobility_print() 295 hlen += 1; in mobility_print() 298 hlen += 2; in mobility_print() 308 hlen += 2; in mobility_print() 311 hlen += 2; in mobility_print() 318 hlen += 16; in mobility_print() [all …]
|
H A D | print-sl.c | 116 u_int hlen; in sliplink_print() local 153 hlen = IP_HL(ip); in sliplink_print() 154 ND_TCHECK_SIZE((const struct tcphdr *)&((const int *)ip)[hlen]); in sliplink_print() 155 hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]); in sliplink_print() 156 lastlen[dir][lastconn] = length - (hlen << 2); in sliplink_print() 211 u_int flags, hlen; in compressed_sl_print() local 254 hlen = IP_HL(ip); in compressed_sl_print() 255 ND_TCHECK_SIZE((const struct tcphdr *)&((const int32_t *)ip)[hlen]); in compressed_sl_print() 256 hlen += TH_OFF((const struct tcphdr *)&((const int32_t *)ip)[hlen]); in compressed_sl_print() 257 lastlen[dir][lastconn] = length - (hlen << 2); in compressed_sl_print()
|
H A D | print-ip.c | 325 u_int hlen; in ip_print() local 351 hlen = IP_HL(ip) * 4; in ip_print() 352 if (hlen < sizeof (struct ip)) { in ip_print() 353 ND_PRINT("bad-hlen %u", hlen); in ip_print() 361 if (len < hlen) { in ip_print() 382 len -= hlen; in ip_print() 428 if ((hlen - sizeof(struct ip)) > 0) { in ip_print() 431 hlen - sizeof(struct ip)) == -1) { in ip_print() 440 vec[0].len = hlen; in ip_print() 478 if (!ND_TTEST_LEN((const u_char *)ip, hlen)) { in ip_print() [all …]
|
H A D | print-dccp.c | 277 u_int hlen; in dccp_print() local 311 hlen = GET_U_1(dh->dccph_doff) * 4; in dccp_print() 326 ND_PRINT(" %u", len - hlen); in dccp_print() 327 if (hlen > len) { in dccp_print() 329 hlen, len); in dccp_print() 489 if (hlen > fixed_hdrlen){ in dccp_print() 494 hlen -= fixed_hdrlen; in dccp_print() 496 optlen = dccp_print_option(ndo, cp, hlen); in dccp_print() 499 if (hlen <= optlen) in dccp_print() 501 hlen -= optlen; in dccp_print() [all …]
|
H A D | print-tcp.c | 167 u_int hlen; in tcp_print() local 228 hlen = TH_OFF(tp) * 4; in tcp_print() 230 if (hlen < sizeof(*tp)) { in tcp_print() 232 length - hlen, hlen, sizeof(*tp)); in tcp_print() 243 if (hlen > length) { in tcp_print() 381 if (hlen > length) { in tcp_print() 383 hlen, length); in tcp_print() 419 length -= hlen; in tcp_print() 439 if (hlen > sizeof(*tp)) { in tcp_print() 444 hlen -= sizeof(*tp); in tcp_print() [all …]
|
/dragonfly/sys/net/ppp_layer/ |
H A D | slcompress.c | 225 hlen <<= 2; in sl_compress_tcp() 255 deltaS = hlen; in sl_compress_tcp() 257 hlen <<= 2; in sl_compress_tcp() 383 cp += hlen; in sl_compress_tcp() 388 cp += hlen; in sl_compress_tcp() 441 cp -= hlen; in sl_uncompress_tcp() 442 len += hlen; in sl_uncompress_tcp() 484 hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2; in sl_uncompress_tcp_core() 485 if (hlen > MAX_HDR || hlen > buflen) in sl_uncompress_tcp_core() 491 *hlenp = hlen; in sl_uncompress_tcp_core() [all …]
|
/dragonfly/usr.sbin/ppp/ |
H A D | slcompress.c | 219 hlen += th->th_off; in sl_compress_tcp() 220 hlen <<= 2; in sl_compress_tcp() 250 deltaS = hlen; in sl_compress_tcp() 251 hlen += th->th_off; in sl_compress_tcp() 252 hlen <<= 2; in sl_compress_tcp() 253 if (hlen > m->m_len) in sl_compress_tcp() 383 cp += hlen; in sl_compress_tcp() 388 cp += hlen; in sl_compress_tcp() 392 m->m_len -= hlen; in sl_compress_tcp() 393 m->m_offset += hlen; in sl_compress_tcp() [all …]
|
H A D | tcpmss.c | 102 size_t hlen, olen, optlen; in MSSFixup() local 107 hlen = tc->th_off << 2; in MSSFixup() 110 if (hlen <= sizeof(struct tcphdr) || hlen > pktlen) in MSSFixup() 117 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1); in MSSFixup() 148 size_t hlen, plen; in tcpmss_Check() local 156 hlen = pip->ip_hl << 2; in tcpmss_Check() 163 ntohs(pip->ip_len) == plen && hlen <= plen && in tcpmss_Check() 164 plen - hlen >= sizeof(struct tcphdr)) in tcpmss_Check() 165 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen, in tcpmss_Check()
|
/dragonfly/sys/netinet/ |
H A D | ip_icmp.c | 243 int hlen = msg->hlen; in icmp_ctlinput_done_handler() local 352 msg->hlen = hlen; in icmp_mtudisc_start() 403 msg->hlen = hlen; in icmp_ctlinput_start() 441 msg->hlen = hlen; in icmp_ctlinput_global_start() 494 int hlen = msg->hlen; in icmp_redirect_done_handler() local 569 msg->hlen = hlen; in icmp_redirect_start() 589 int i, hlen; in icmp_input() local 595 hlen = *offp; in icmp_input() 624 if (in_cksum_skip(m, hlen + icmplen, hlen)) { in icmp_input() 1118 int hlen; in icmp_send() local [all …]
|
H A D | ip_gre.c | 130 gre_input2(struct mbuf *m ,int hlen, u_char proto) in gre_input2() argument 148 hlen += sizeof (struct gre_h); in gre_input2() 155 hlen += 4; in gre_input2() 160 hlen += 4; in gre_input2() 162 hlen +=4; in gre_input2() 180 m->m_data += hlen; in gre_input2() 181 m->m_len -= hlen; in gre_input2() 182 m->m_pkthdr.len -= hlen; in gre_input2()
|
H A D | ip6.h | 277 #define IP6_EXTHDR_CHECK(m, off, hlen, ret) \ argument 281 ((m)->m_len < (off) + (hlen)) && \ 282 (((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \ 286 if ((m)->m_len < (off) + (hlen)) { \ 292 if ((m)->m_len < (off) + (hlen)) { \ 299 if ((m)->m_len < (off) + (hlen)) { \ 308 #define IP6_EXTHDR_CHECK_VOIDRET(m, off, hlen) \ argument 309 IP6_EXTHDR_CHECK(m, off, hlen, )
|
H A D | ip_output.c | 147 if (m->m_len < hlen) { in ip_localforward() 148 m = m_pullup(m, hlen); in ip_localforward() 174 int hlen = sizeof(struct ip); in ip_output() local 252 hlen = len; in ip_output() 648 m->m_pkthdr.csum_iphlen = hlen; in ip_output() 827 if (off < hlen) in ip_fragment() 829 off = ((off - hlen) & ~7) + hlen; in ip_fragment() 835 off = hlen + len; in ip_fragment() 840 off = hlen + len; in ip_fragment() 843 firstlen = off - hlen; in ip_fragment() [all …]
|
/dragonfly/sbin/swapon/ |
H A D | swapon.c | 415 snprintf(buf, bufsize, "%*s", hlen, tmp); in sizetobuf() 427 int hlen, pagesize; in swaplist() local 438 hlen = 10; in swaplist() 443 hlen = 10; in swaplist() 448 hlen = 10; in swaplist() 453 hlen = 10; in swaplist() 456 getbsize(&hlen, &blocksize); in swaplist() 486 hlen, buf, in swaplist() 487 hlen, "Used:"); in swaplist() 502 sizetobuf(buf, sizeof(buf), hflag, tmp_total, hlen, in swaplist() [all …]
|
/dragonfly/sys/net/ipfw3_basic/ |
H A D | ip_fw3_basic.c | 281 u_int hlen = 0; in check_from() local 289 hlen = ip->ip_hl << 2; in check_from() 328 u_int hlen = 0; in check_from_me() local 339 if (hlen > 0) { in check_from_me() 352 u_int hlen = 0; in check_from_mask() local 374 u_int hlen = 0; in check_to() local 421 u_int hlen = 0; in check_to_me() local 432 if (hlen > 0) { in check_to_me() 445 u_int hlen = 0; in check_to_mask() local 534 u_int hlen = 0; in check_src_n_port() local [all …]
|
/dragonfly/sys/kern/ |
H A D | uipc_mbuf2.c | 93 int hlen, tlen, olen; in m_pulldown() local 162 hlen = n->m_len - off; in m_pulldown() 163 tlen = len - hlen; in m_pulldown() 172 if (hlen + olen < len) { in m_pulldown() 188 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen && in m_pulldown() 190 n->m_next->m_data -= hlen; in m_pulldown() 191 n->m_next->m_len += hlen; in m_pulldown() 193 n->m_len -= hlen; in m_pulldown() 209 o->m_len = hlen; in m_pulldown() 210 bcopy(mtod(n, caddr_t) + off, mtod(o, caddr_t), hlen); in m_pulldown() [all …]
|
/dragonfly/usr.bin/systat/ |
H A D | swap.c | 53 void showspace(char *header, int hlen, long blocksize); 56 static int hlen; variable 119 header = getbsize(&hlen, &blocksize); in labelswap() 121 "Disk", hlen, header, "Used", in labelswap() 167 hlen, in showswap() 170 _col += hlen; in showswap()
|
/dragonfly/lib/libutil/ |
H A D | login_class.c | 137 substvar(const char * var, const struct passwd * pwd, int hlen, int pch, int nlen) in substvar() argument 155 - dollas + (tildes * (pch+hlen)) in substvar() 173 memmove(p + hlen + v, p + 1, l); /* Subst homedir */ in substvar() 174 memmove(p, pwd->pw_dir, hlen); in substvar() 176 p[hlen] = '/'; in substvar() 177 p += hlen + v; in substvar() 197 int hlen = pwd ? strlen(pwd->pw_dir) : 0; in setclassenvironment() local 201 if (hlen && pwd->pw_dir[hlen-1] != '/') in setclassenvironment() 208 char * np = substvar(var, pwd, hlen, pch, nlen); in setclassenvironment() 234 if ((np = substvar(p, pwd, hlen, pch, nlen)) != NULL) { in setclassenvironment()
|
/dragonfly/contrib/wpa_supplicant/src/tls/ |
H A D | tlsv1_client_write.c | 580 size_t rlen, hlen, clen; in tls_write_client_certificate_verify() local 622 hlen = SHA256_MAC_LEN; in tls_write_client_certificate_verify() 648 hlen += 19; in tls_write_client_certificate_verify() 654 hlen = MD5_MAC_LEN; in tls_write_client_certificate_verify() 667 hlen = SHA1_MAC_LEN; in tls_write_client_certificate_verify() 677 hlen += MD5_MAC_LEN; in tls_write_client_certificate_verify() 785 size_t rlen, hlen; in tls_write_client_finished() local 795 hlen = SHA256_MAC_LEN; in tls_write_client_finished() 808 hlen = MD5_MAC_LEN; in tls_write_client_finished() 819 hlen = SHA1_MAC_LEN; in tls_write_client_finished() [all …]
|
H A D | tlsv1_common.c | 344 size_t hlen; in tlsv12_key_x_server_params_hash() local 351 hlen = SHA256_MAC_LEN; in tlsv12_key_x_server_params_hash() 355 hlen = 48; in tlsv12_key_x_server_params_hash() 359 hlen = 64; in tlsv12_key_x_server_params_hash() 370 if (crypto_hash_finish(ctx, hash, &hlen) < 0) in tlsv12_key_x_server_params_hash() 373 return hlen; in tlsv12_key_x_server_params_hash() 384 size_t hlen; in tls_key_x_server_params_hash() local 395 hlen = MD5_MAC_LEN; in tls_key_x_server_params_hash() 398 hpos += hlen; in tls_key_x_server_params_hash() 406 hlen = hash + sizeof(hash) - hpos; in tls_key_x_server_params_hash() [all …]
|
H A D | tlsv1_server_write.c | 567 int hlen; in tls_write_server_key_exchange() local 587 if (hlen < 0 || end - pos < 2) { in tls_write_server_key_exchange() 609 hlen += 19; in tls_write_server_key_exchange() 626 if (hlen < 0) { in tls_write_server_key_exchange() 633 hash, hlen); in tls_write_server_key_exchange() 637 hash[hlen - 1] ^= 0x80; in tls_write_server_key_exchange() 835 size_t rlen, hlen; in tls_write_server_finished() local 847 hlen = SHA256_MAC_LEN; in tls_write_server_finished() 860 hlen = MD5_MAC_LEN; in tls_write_server_finished() 871 hlen = SHA1_MAC_LEN; in tls_write_server_finished() [all …]
|
/dragonfly/stand/lib/ |
H A D | udp.c | 135 size_t hlen; in readudp() local 182 hlen = ip->ip_hl << 2; in readudp() 183 if (hlen < sizeof(*ip) || in readudp() 184 in_cksum(ip, hlen) != 0) { in readudp() 210 if (hlen != sizeof(*ip)) { in readudp() 211 bcopy(((u_char *)ip) + hlen, uh, len - hlen); in readudp() 213 n -= hlen - sizeof(*ip); in readudp()
|
/dragonfly/lib/libalias/ |
H A D | alias_ftp.c | 109 int hlen, tlen, dlen; in AliasHandleFtpOut() local 116 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleFtpOut() 118 dlen = tlen - hlen; in AliasHandleFtpOut() 122 sptr += hlen; in AliasHandleFtpOut() 475 int slen, hlen, tlen, dlen; in NewFtpMessage() local 485 hlen = (pip->ip_hl + tc->th_off) << 2; in NewFtpMessage() 487 dlen = tlen - hlen; in NewFtpMessage() 540 sptr = (char *) pip; sptr += hlen; in NewFtpMessage() 541 strncpy(sptr, stemp, maxpacketsize-hlen); in NewFtpMessage() 557 new_len = htons(hlen + slen); in NewFtpMessage()
|
H A D | alias_smedia.c | 145 int hlen, tlen, dlen; in alias_rtsp_out() local 159 hlen = (pip->ip_hl + tc->th_off) << 2; in alias_rtsp_out() 161 dlen = tlen - hlen; in alias_rtsp_out() 306 new_len = htons(hlen + new_dlen); in alias_rtsp_out() 371 int hlen, tlen, dlen; in AliasHandleRtspOut() local 380 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleRtspOut() 382 dlen = tlen - hlen; in AliasHandleRtspOut() 385 data += hlen; in AliasHandleRtspOut()
|
/dragonfly/sys/netproto/mpls/ |
H A D | mpls_demux.c | 59 int hlen = hoff + sizeof(struct mpls); in mpls_lengthcheck() local 62 if (m->m_pkthdr.len < hlen) { in mpls_lengthcheck() 70 if (m->m_len < hlen) { in mpls_lengthcheck() 71 m = m_pullup(m, hlen); in mpls_lengthcheck()
|
/dragonfly/contrib/tcsh-6/ |
H A D | sh.hist.c | 108 discardExcess(int hlen) in discardExcess() argument 119 if (eventno - np->Href >= hlen || hlen == 0) in discardExcess() 125 if (eventno - np->Href >= hlen || hlen == 0) in discardExcess() 130 if (histCount - (hlen >> 4) <= (unsigned)hlen) in discardExcess() 134 if (eventno - np->Href >= hlen || hlen == 0) in discardExcess() 724 getHashTableSize(int hlen) in getHashTableSize() argument 742 createHistHashTable(int hlen) in createHistHashTable() argument 744 if (hlen == 0) { in createHistHashTable() 748 if (hlen < 0) { in createHistHashTable() 751 hlen = histlen; in createHistHashTable() [all …]
|