Searched refs:hlen (Results 26 - 50 of 139) sorted by relevance

123456

/freebsd-9.3-release/crypto/openssh/
H A Dssh-rsa.c210 u_int ret, rsasize, oidlen = 0, hlen = 0; local
220 hlen = 20;
225 if (hashlen != hlen) {
241 if (len < 0 || (u_int)len != hlen + oidlen) {
242 error("bad decrypted len: %d != %d + %d", len, hlen, oidlen);
246 hashmatch = timingsafe_bcmp(decrypted + oidlen, hash, hlen) == 0;
/freebsd-9.3-release/sys/netinet/
H A Dip6.h272 #define IP6_EXTHDR_CHECK(m, off, hlen, ret) \
276 ((m)->m_len < (off) + (hlen)) && \
277 (((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \
281 if ((m)->m_len < (off) + (hlen)) { \
287 if ((m)->m_len < (off) + (hlen)) { \
294 if ((m)->m_len < (off) + (hlen)) { \
H A Dip_fastfwd.c169 int hlen, mtu; local
217 hlen = ip->ip_hl << 2;
218 if (hlen < sizeof(struct ip)) { /* minimum header length */
222 if (hlen > m->m_len) {
223 if ((m = m_pullup(m, hlen)) == NULL) {
236 if (hlen == sizeof(struct ip))
239 sum = in_cksum(m, hlen);
H A Dip_input.c382 int checkif, hlen = 0; local
397 hlen = ip->ip_hl << 2;
418 hlen = ip->ip_hl << 2;
419 if (hlen < sizeof(struct ip)) { /* minimum header length */
423 if (hlen > m->m_len) {
424 if ((m = m_pullup(m, hlen)) == NULL) {
444 if (hlen == sizeof(struct ip)) {
447 sum = in_cksum(m, hlen);
465 if (ip->ip_len < hlen) {
542 if (hlen > sizeo
846 int i, hlen, next; local
[all...]
H A Dip_icmp.c363 int hlen = off; local
385 i = hlen + min(icmplen, ICMP_ADVLENMIN);
391 m->m_len -= hlen;
392 m->m_data += hlen;
398 m->m_len += hlen;
399 m->m_data -= hlen;
598 ip->ip_len += hlen; /* since ip_input deducts this */
896 register int hlen; local
899 hlen = ip->ip_hl << 2;
900 m->m_data += hlen;
[all...]
/freebsd-9.3-release/sys/netipsec/
H A Dxform_esp.c275 int plen, alen, hlen; local
302 hlen = sizeof (struct esp) + sav->ivlen;
304 hlen = sizeof (struct newesp) + sav->ivlen;
328 plen = m->m_pkthdr.len - (skip + hlen + alen);
352 ESPSTAT_ADD(esps_ibytes, m->m_pkthdr.len - (skip + hlen + alen));
438 crde->crd_skip = skip + hlen;
439 crde->crd_len = m->m_pkthdr.len - (skip + hlen + alen);
440 crde->crd_inject = skip + hlen - sav->ivlen;
461 int hlen, skip, protoff, error, alen; local
589 hlen
681 int hlen, rlen, plen, padding, blks, alen, i, roff; local
[all...]
H A Dxform_ipip.c163 int hlen; local
172 hlen = sizeof(struct ip);
177 hlen = sizeof(struct ip6_hdr);
187 if (m->m_len < hlen) {
188 if ((m = m_pullup(m, hlen)) == NULL) {
227 hlen = sizeof(struct ip);
233 hlen = sizeof(struct ip6_hdr);
245 if (m->m_len < hlen) {
246 if ((m = m_pullup(m, hlen)) == NULL) {
H A Dxform_ipcomp.c147 int hlen = IPCOMP_HLENGTH; local
154 if (m->m_len < skip + hlen && (m = m_pullup(m, skip + hlen)) == NULL) {
187 crdc->crd_skip = skip + hlen;
188 crdc->crd_len = m->m_pkthdr.len - (skip + hlen);
197 crp->crp_ilen = m->m_pkthdr.len - (skip + hlen);
229 int hlen = IPCOMP_HLENGTH, error, clen; local
280 m->m_pkthdr.len = clen + hlen + skip;
282 if (m->m_len < skip + hlen && (m = m_pullup(m, skip + hlen))
[all...]
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/
H A Dip_log.c258 register size_t hlen; local
279 hlen = (char *)fin->fin_dp - (char *)fin->fin_ip;
281 hlen = fin->fin_hlen;
288 hlen += MIN(sizeof(tcphdr_t), fin->fin_dlen);
290 hlen += MIN(sizeof(udphdr_t), fin->fin_dlen);
308 hlen += MIN(sizeof(struct icmp) + 8,
312 hlen += MIN(sizeof(struct icmp),
329 hlen += MIN(sizeof(struct icmp6_hdr) + 8,
332 hlen += MIN(sizeof(struct icmp6_hdr),
365 mlen = fin->fin_plen - hlen;
[all...]
/freebsd-9.3-release/contrib/ipfilter/ipsend/
H A Dipsend.c371 int hlen; local
375 hlen = sizeof(*ip) + olen;
376 IP_HL_A(ip, hlen >> 2);
387 bcopy(ip + 1, p + hlen, ip->ip_len - hlen);
391 tcp = (tcphdr_t *)(p + hlen);
393 udp = (udphdr_t *)(p + hlen);
/freebsd-9.3-release/contrib/netcat/
H A Dsocks.c132 size_t hlen, wlen; local
184 hlen = strlen(host);
185 if (hlen > 255)
191 buf[4] = hlen;
192 memcpy(buf + 5, host, hlen);
193 memcpy(buf + 5 + hlen, &serverport, sizeof serverport);
194 wlen = 7 + hlen;
/freebsd-9.3-release/contrib/wpa/src/tls/
H A Dtlsv1_client_write.c434 size_t rlen, hlen, clen; local
476 hlen = MD5_MAC_LEN;
478 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0)
492 hlen = SHA1_MAC_LEN;
494 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) {
503 hlen += MD5_MAC_LEN;
505 wpa_hexdump(MSG_MSGDUMP, "TLSv1: CertificateVerify hash", hash, hlen);
522 crypto_private_key_sign_pkcs1(conn->cred->key, hash, hlen,
590 size_t rlen, hlen; local
600 hlen
[all...]
H A Dtlsv1_record.c249 size_t i, rlen, hlen; local
383 hlen = sizeof(hash);
384 if (crypto_hash_finish(hmac, hash, &hlen) < 0) {
389 if (hlen != rl->hash_size ||
390 os_memcmp(hash, out_data + *out_len, hlen) != 0) {
/freebsd-9.3-release/contrib/wpa/src/ap/
H A Diapp.c323 int len, hlen; local
352 hlen = be_to_host16(hdr->length);
357 be_to_host16(hdr->identifier), hlen);
363 if (hlen > len) {
364 printf("Underflow IAPP frame (hlen=%d len=%d)\n", hlen, len);
367 if (hlen < len) {
369 len - hlen);
370 len = hlen;
375 iapp_process_add_notify(iapp, &from, hdr, hlen
[all...]
/freebsd-9.3-release/libexec/bootpd/
H A Dhwaddr.c218 haddrtoa(haddr, hlen)
220 int hlen;
225 if (hlen > MAXHADDRLEN)
226 hlen = MAXHADDRLEN;
229 while (hlen > 0) {
232 hlen--;
/freebsd-9.3-release/sys/netinet/libalias/
H A Dalias_irc.c173 int hlen, tlen, dlen; local
182 hlen = (pip->ip_hl + tc->th_off) << 2;
184 dlen = tlen - hlen;
195 sptr += hlen;
196 maxsize -= hlen; /* We're interested in maximum size of
452 new_len = htons(hlen + iCopy + copyat);
H A Dalias_smedia.c240 int hlen, tlen, dlen; local
254 hlen = (pip->ip_hl + tc->th_off) << 2;
256 dlen = tlen - hlen;
412 new_len = htons(hlen + new_dlen);
484 int hlen, tlen, dlen; local
495 hlen = (pip->ip_hl + tc->th_off) << 2;
497 dlen = tlen - hlen;
500 data += hlen;
/freebsd-9.3-release/sys/net/
H A Dif_spppfr.c173 int dlci, hlen, proto; local
244 hlen = 10;
249 hlen = 4;
254 m_adj (m, hlen);
303 int type, hlen; local
306 hlen = (family == AF_INET) ? 4 : 10;
307 M_PREPEND (m, hlen, M_DONTWAIT);
335 struct ip *ip = (struct ip*) (h + hlen);
H A Dif_loop.c296 * This function expects the packet to include the media header of length hlen.
299 if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen) argument
321 if (hlen > 0) {
340 if (hlen > 0) {
341 m_adj(m, hlen);
348 KASSERT(hlen >= 3, ("if_simloop: hlen too small"));
/freebsd-9.3-release/sys/netgraph/
H A Dng_vjc.c445 u_int hlen; local
468 &priv->slc, &hdr, &hlen);
486 if (hlen > MHLEN) { /* unlikely, but can happen */
496 bcopy(hdr, mtod(hm, u_char *), hlen);
497 hm->m_len = hlen;
501 hm->m_pkthdr.len = hlen + m->m_pkthdr.len;
506 u_int hlen; local
524 &priv->slc, &hdr, &hlen) < 0) {
/freebsd-9.3-release/usr.sbin/pstat/
H A Dpstat.c470 int hlen; local
474 header = getbsize(&hlen, &blocksize);
477 "Device", hlen, header,
487 int hlen, pagesize; local
491 getbsize(&hlen, &blocksize);
493 printf("%-15s %*jd ", swdevname, hlen, CONVERT(nblks));
524 int hlen, pagesize; local
528 getbsize(&hlen, &blocksize);
/freebsd-9.3-release/contrib/tcpdump/
H A Dprint-ip.c530 u_int hlen; local
552 hlen = IP_HL(ipds->ip) * 4;
553 if (hlen < sizeof (struct ip)) {
554 (void)printf("bad-hlen %u", hlen);
562 if (ipds->len < hlen) {
585 ipds->len -= hlen;
623 if ((hlen - sizeof(struct ip)) > 0) {
625 ip_optprint((u_char *)(ipds->ip + 1), hlen - sizeof(struct ip));
629 if (!Kflag && (u_char *)ipds->ip + hlen <
[all...]
/freebsd-9.3-release/sbin/ping/
H A Dping.c1020 int dupflag, hlen, i, j, recv_len, seq; local
1026 hlen = ip->ip_hl << 2;
1028 if (cc < hlen + ICMP_MINLEN) {
1036 cc -= hlen;
1037 icp = (struct icmp *)(buf + hlen);
1185 for (; hlen > (int)sizeof(struct ip); --hlen, ++cp)
1188 hlen = 0;
1195 hlen -= 2;
1198 j <= hlen
1572 int hlen; local
1623 int hlen; local
[all...]
/freebsd-9.3-release/sys/netpfil/ipfw/
H A Dip_fw2.c573 send_reject6(struct ip_fw_args *args, int code, u_int hlen, struct ip6_hdr *ip6) argument
580 tcp = (struct tcphdr *)((char *)ip6 + hlen);
912 * hlen The length of the IP header.
914 u_int hlen = 0; /* hlen >0 means we have an IP pkt */ local
1018 hlen = sizeof(struct ip6_hdr);
1025 PULLUP_TO(hlen, ulp, struct icmp6_hdr);
1030 PULLUP_TO(hlen, ulp, struct tcphdr);
1038 PULLUP_TO(hlen, ulp, struct sctphdr);
1044 PULLUP_TO(hlen, ul
2453 int hlen; local
[all...]
H A Dip_fw_log.c160 ipfw_log(struct ip_fw *f, u_int hlen, struct ip_fw_args *args, argument
336 if (hlen == 0) { /* non-ip */
368 tcp = (struct tcphdr *)(((char *)ip) + hlen);
369 udp = (struct udphdr *)(((char *)ip) + hlen);
416 icmp6 = (struct icmp6_hdr *)(((char *)ip) + hlen);
440 ntohs(ip6->ip6_plen) - hlen,

Completed in 159 milliseconds

123456