Home
last modified time | relevance | path

Searched refs:hlen (Results 1 – 25 of 122) sorted by relevance

12345

/dragonfly/contrib/tcpdump/
HDprint-mobility.c210 unsigned mhlen, hlen; in mobility_print() local
247 hlen = IP6M_MINLEN; in mobility_print()
251 hlen = IP6M_MINLEN; in mobility_print()
255 GET_BE_U_4(bp + hlen), in mobility_print()
256 GET_BE_U_4(bp + hlen + 4)); in mobility_print()
258 hlen += 8; in mobility_print()
263 hlen = IP6M_MINLEN; in mobility_print()
267 GET_BE_U_4(bp + hlen), in mobility_print()
268 GET_BE_U_4(bp + hlen + 4)); in mobility_print()
270 hlen += 8; in mobility_print()
[all …]
HDprint-sl.c116 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()
HDprint-ip.c325 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()
438 if (!ndo->ndo_Kflag && (const u_char *)ip + hlen <= ndo->ndo_snapend) { in ip_print()
440 vec[0].len = hlen; in ip_print()
[all …]
HDprint-dccp.c277 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 …]
HDprint-tcp.c167 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()
242 ND_PRINT("tcp %u", length - hlen); in tcp_print()
243 if (hlen > length) { in tcp_print()
245 hlen, length); in tcp_print()
381 if (hlen > length) { in tcp_print()
383 hlen, length); in tcp_print()
419 length -= hlen; in tcp_print()
[all …]
/dragonfly/sys/net/ppp_layer/
HDslcompress.c158 u_int hlen = ip->ip_hl; in sl_compress_tcp() local
175 th = (struct tcphdr *)&((int32_t *)ip)[hlen]; in sl_compress_tcp()
224 hlen += th->th_off; in sl_compress_tcp()
225 hlen <<= 2; in sl_compress_tcp()
226 if (hlen > m->m_len) in sl_compress_tcp()
254 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen]; in sl_compress_tcp()
255 deltaS = hlen; in sl_compress_tcp()
256 hlen += th->th_off; in sl_compress_tcp()
257 hlen <<= 2; in sl_compress_tcp()
258 if (hlen > m->m_len) in sl_compress_tcp()
[all …]
/dragonfly/usr.sbin/ppp/
HDslcompress.c148 u_int hlen = ip->ip_hl; in sl_compress_tcp() local
167 th = (struct tcphdr *) & ((int *) ip)[hlen]; in sl_compress_tcp()
219 hlen += th->th_off; in sl_compress_tcp()
220 hlen <<= 2; in sl_compress_tcp()
221 if (hlen > m->m_len) in sl_compress_tcp()
249 oth = (struct tcphdr *) & ((int *) &cs->cs_ip)[hlen]; 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()
[all …]
HDtcpmss.c102 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/
HDip_icmp.c243 int hlen = msg->hlen; in icmp_ctlinput_done_handler() local
245 rip_input(&m, &hlen, msg->proto); in icmp_ctlinput_done_handler()
259 icmp_mtudisc(struct mbuf *m, int hlen) in icmp_mtudisc() argument
267 icp = mtodoff(m, struct icmp *, hlen); in icmp_mtudisc()
324 icmp_mtudisc(msg->m, msg->hlen); in icmp_mtudisc_handler()
334 icmp_mtudisc_start(struct mbuf *m, int hlen, int proto) in icmp_mtudisc_start() argument
340 icmp_mtudisc(m, hlen); in icmp_mtudisc_start()
352 msg->hlen = hlen; in icmp_mtudisc_start()
360 icmp_ctlinput(struct mbuf *m, int cmd, int hlen) in icmp_ctlinput() argument
367 icp = mtodoff(m, struct icmp *, hlen); in icmp_ctlinput()
[all …]
HDip_gre.c130 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()
HDip6.h277 #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, )
HDip_output.c110 ip_localforward(struct mbuf *m, const struct sockaddr_in *dst, int hlen) in ip_localforward() argument
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
242 hlen = IP_VHL_HL(ip->ip_vhl) << 2 ; in ip_output()
252 hlen = len; in ip_output()
260 ip->ip_vhl = IP_MAKE_VHL(IPVERSION, hlen >> 2); in ip_output()
268 hlen = IP_VHL_HL(ip->ip_vhl) << 2; in ip_output()
403 ip_mloopback(ifp, m, dst, hlen); in ip_output()
552 if (ip_localforward(m, next_hop, hlen)) in ip_output()
[all …]
/dragonfly/sbin/swapon/
HDswapon.c407 sizetobuf(char *buf, size_t bufsize, int hflag, long long val, int hlen, in sizetobuf() argument
415 snprintf(buf, bufsize, "%*s", hlen, tmp); in sizetobuf()
417 snprintf(buf, bufsize, "%*lld", hlen, val / blocksize); 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()
[all …]
/dragonfly/sys/net/ipfw3_basic/
HDip_fw3_basic.c281 u_int hlen = 0; in check_from() local
289 hlen = ip->ip_hl << 2; in check_from()
291 *cmd_val = (hlen > 0 && in check_from()
328 u_int hlen = 0; in check_from_me() local
336 hlen = ip->ip_hl << 2; in check_from_me()
339 if (hlen > 0) { in check_from_me()
352 u_int hlen = 0; in check_from_mask() local
360 hlen = ip->ip_hl << 2; in check_from_mask()
364 *cmd_val = (hlen > 0 && in check_from_mask()
374 u_int hlen = 0; in check_to() local
[all …]
/dragonfly/sys/kern/
HDuipc_mbuf2.c93 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()
192 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen); in m_pulldown()
193 n->m_len -= hlen; in m_pulldown()
209 o->m_len = hlen; in m_pulldown()
[all …]
/dragonfly/usr.bin/systat/
HDswap.c53 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/
HDlogin_class.c137 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/
HDtlsv1_client_write.c580 size_t rlen, hlen, clen; in tls_write_client_certificate_verify() local
622 hlen = SHA256_MAC_LEN; in tls_write_client_certificate_verify()
624 crypto_hash_finish(conn->verify.sha256_cert, hpos, &hlen) < in tls_write_client_certificate_verify()
647 os_memmove(hash + 19, hash, hlen); 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()
656 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) { in tls_write_client_certificate_verify()
667 hlen = SHA1_MAC_LEN; in tls_write_client_certificate_verify()
669 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { in tls_write_client_certificate_verify()
677 hlen += MD5_MAC_LEN; in tls_write_client_certificate_verify()
[all …]
HDtlsv1_common.c344 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()
396 if (crypto_hash_finish(ctx, hash, &hlen) < 0) in tls_key_x_server_params_hash()
398 hpos += hlen; in tls_key_x_server_params_hash()
[all …]
HDtlsv1_server_write.c567 int hlen; in tls_write_server_key_exchange() local
571 hlen = tlsv12_key_x_server_params_hash( in tls_write_server_key_exchange()
587 if (hlen < 0 || end - pos < 2) { in tls_write_server_key_exchange()
609 hlen += 19; in tls_write_server_key_exchange()
620 hlen = tls_key_x_server_params_hash( 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()
657 crypto_private_key_sign_pkcs1(conn->cred->key, hash, hlen, in tls_write_server_key_exchange()
835 size_t rlen, hlen; in tls_write_server_finished() local
[all …]
/dragonfly/stand/lib/
HDudp.c135 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/
HDalias_ftp.c109 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()
HDalias_smedia.c145 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/
HDmpls_demux.c59 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/
HDsh.hist.c108 discardExcess(int hlen) in discardExcess() argument
118 while (histCount > (unsigned)hlen && (np = Histlist.Hnext)) { in discardExcess()
119 if (eventno - np->Href >= hlen || hlen == 0) in discardExcess()
124 while (histCount > (unsigned)hlen && (np = histTail) != &Histlist) { in discardExcess()
125 if (eventno - np->Href >= hlen || hlen == 0) in discardExcess()
130 if (histCount - (hlen >> 4) <= (unsigned)hlen) in discardExcess()
132 for (hp = &Histlist; histCount > (unsigned)hlen && in discardExcess()
134 if (eventno - np->Href >= hlen || hlen == 0) in discardExcess()
724 getHashTableSize(int hlen) in getHashTableSize() argument
726 unsigned target = hlen * 2; in getHashTableSize()
[all …]

12345