/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-mobility.c | 175 int mhlen, hlen, type; local 207 hlen = IP6M_MINLEN; 213 hlen = IP6M_MINLEN; 215 TCHECK2(*mh, hlen + 8); 218 EXTRACT_32BITS(&bp[hlen]), 219 EXTRACT_32BITS(&bp[hlen + 4])); 221 hlen += 8; 229 hlen = IP6M_MINLEN; 231 TCHECK2(*mh, hlen + 8); 234 EXTRACT_32BITS(&bp[hlen]), [all...] |
H A D | print-sl.c | 119 u_int hlen; local 147 hlen = IP_HL(ip); 148 hlen += TH_OFF((struct tcphdr *)&((int *)ip)[hlen]); 149 lastlen[dir][lastconn] = length - (hlen << 2); 197 register u_int flags, hlen; local 233 * 'hlen' is the length of the uncompressed TCP/IP header (in words). 235 * 'length - hlen' is the amount of data in the packet. 237 hlen = IP_HL(ip); 238 hlen [all...] |
H A D | print-tcp.c | 143 register u_int hlen; local 172 hlen = TH_OFF(tp) * 4; 180 if (!qflag && hlen >= sizeof(*tp) && hlen <= length && 181 (length - hlen) >= 4) { 187 fraglenp = (u_char *)tp + hlen; 190 if (fraglen > (length - hlen) - 4) 191 fraglen = (length - hlen) - 4; 237 if (hlen < sizeof(*tp)) { 239 length - hlen, hle [all...] |
H A D | print-dccp.c | 177 u_int hlen; local 203 hlen = dh->dccph_doff * 4; 220 (void)printf(" %d", len - hlen); 221 if (hlen > len) { 223 hlen, len); 323 if (hlen > dccp_basic_hdr_len(dh) + extlen){ 329 hlen -= dccp_basic_hdr_len(dh) + extlen; 334 if (hlen <= optlen) break; 335 hlen -= optlen;
|
H A D | print-icmp.c | 349 u_int hlen, dport, mtu, obj_tlen, obj_class_num, obj_ctype; local 386 hlen = IP_HL(oip) * 4; 387 ouh = (struct udphdr *)(((u_char *)oip) + hlen); 627 hlen = plen - ICMP_EXTD_MINLEN; 629 vec[0].len = hlen; 633 hlen); 635 hlen -= 4; /* subtract common header size */ 638 while (hlen > sizeof(struct icmp_mpls_ext_object_header_t)) { 653 hlen-=sizeof(struct icmp_mpls_ext_object_header_t); /* length field includes tlv header */ 687 if (hlen < obj_tle [all...] |
/freebsd-9.3-release/libexec/bootpd/ |
H A D | hwaddr.h | 14 * length of the network hardware address is stored in "hlen". 18 unsigned int hlen; member in struct:hwinfo 33 #define haddrlength(type) ((hwinfolist[(int) (type)]).hlen)
|
/freebsd-9.3-release/usr.sbin/ppp/ |
H A D | tcpmss.c | 101 size_t hlen, olen, optlen; local 106 hlen = tc->th_off << 2; 109 if (hlen <= sizeof(struct tcphdr) || hlen > pktlen) 116 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1); 147 size_t hlen, plen; local 155 hlen = pip->ip_hl << 2; 162 ntohs(pip->ip_len) == plen && hlen <= plen && 163 plen >= sizeof(struct tcphdr) + hlen) 164 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), ple [all...] |
H A D | slcompress.c | 164 register u_int hlen = ip->ip_hl; local 183 th = (struct tcphdr *) & ((int *) ip)[hlen]; 235 hlen += th->th_off; 236 hlen <<= 2; 237 if (hlen > m->m_len) 265 oth = (struct tcphdr *) & ((int *) &cs->cs_ip)[hlen]; 266 deltaS = hlen; 267 hlen += th->th_off; 268 hlen <<= 2; 269 if (hlen > 434 register u_int hlen, changes; local [all...] |
/freebsd-9.3-release/sys/net/ |
H A D | slcompress.c | 162 register u_int hlen = ip->ip_hl; local 179 th = (struct tcphdr *)&((int32_t *)ip)[hlen]; 228 hlen += th->th_off; 229 hlen <<= 2; 230 if (hlen > m->m_len) 258 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen]; 259 deltaS = hlen; 260 hlen += th->th_off; 261 hlen <<= 2; 262 if (hlen > 422 int hlen, vjlen; local 472 register u_int hlen, changes; local [all...] |
/freebsd-9.3-release/sys/netipsec/ |
H A D | ipsec_mbuf.c | 48 * Make space for a new header of length hlen at skip bytes 56 m_makespace(struct mbuf *m0, int skip, int hlen, int *off) argument 62 IPSEC_ASSERT(hlen < MHLEN, ("hlen too big: %u", hlen)); 77 if (hlen > M_TRAILINGSPACE(m)) { 109 if (hlen <= M_TRAILINGSPACE(m) + remain) { 110 m->m_len = skip + hlen; 132 n->m_len = hlen; 145 mtod(m, caddr_t) + skip + hlen, remai 231 m_striphdr(struct mbuf *m, int skip, int hlen) argument 282 bcopy(mtod(m1, u_char *) + roff + hlen, local [all...] |
/freebsd-9.3-release/sbin/swapon/ |
H A D | swapon.c | 230 sizetobuf(char *buf, size_t bufsize, int hflag, long long val, int hlen, argument 239 snprintf(buf, bufsize, "%*s", hlen, tmp); 241 snprintf(buf, bufsize, "%*lld", hlen, val / blocksize); 250 int hlen, mib[16], n, pagesize; local 263 hlen = 10; 268 hlen = 10; 273 hlen = 10; 278 hlen = 10; 281 getbsize(&hlen, &blocksize); 293 hlen, bu [all...] |
/freebsd-9.3-release/contrib/ipfilter/ipsend/ |
H A D | ip.c | 168 int i, sent = 0, ts, hlen, olen; local 170 hlen = IP_HL(ip) << 2; 171 if (mtu < (hlen + 8)) { 173 mtu, hlen); 208 s = (char *)ip + hlen; 209 iplen = ntohs(ip->ip_len) - hlen; 214 if ((sent + (mtu - hlen)) >= iplen) 220 ts = (mtu - hlen); 223 ts += hlen; 226 ip->ip_sum = chksum((u_short *)ip, hlen); 259 int thlen, i, iplen, hlen; local [all...] |
/freebsd-9.3-release/usr.bin/systat/ |
H A D | swap.c | 62 static int hlen; variable 124 header = getbsize(&hlen, &blocksize); 167 -dlen, "Disk", hlen, header, ulen, "Used", 200 dlen + hlen + ulen + 1, 208 wprintw(wnd, "%*d", hlen, CONVERT(kvmsw[i].ksw_total));
|
/freebsd-9.3-release/sys/i386/ibcs2/ |
H A D | ibcs2_socksys.c | 175 int error, sctl[2], hlen; local 195 hlen = strlen(hname); 196 ptr = hname + hlen; 197 if ((u_int)uap->len > (sizeof (hname) - hlen - 1)) 208 hlen = strlen(hname) + 1; 209 return (kernel_sysctl(td, sctl, 2, 0, 0, hname, hlen, 0, 0));
|
/freebsd-9.3-release/sys/kern/ |
H A D | uipc_mbuf2.c | 98 int hlen, tlen, olen; local 188 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>, 190 * note that hlen + tlen == len, and tlen > 0. 192 hlen = n->m_len - off; 193 tlen = len - hlen; 202 if (hlen + olen < len) { 218 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen 220 n->m_next->m_data -= hlen; 221 n->m_next->m_len += hlen; 222 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen); [all...] |
/freebsd-9.3-release/sys/netinet/ |
H A D | ip_gre.c | 125 gre_input2(struct mbuf *m ,int hlen, u_char proto) argument 150 hlen += sizeof(struct gre_h); 157 hlen += 4; 162 hlen += 4; 164 hlen += 4; 169 hlen += 4; 197 if (hlen > m->m_pkthdr.len) { 202 m_adj(m, hlen); 229 gre_mobile_input(struct mbuf *m, int hlen) argument
|
H A D | ip_output.c | 122 int hlen = sizeof (struct ip); local 172 hlen = len; /* ip->ip_hl is updated above */ 189 ip->ip_hl = hlen >> 2; 193 /* Header already set, fetch hlen from there */ 194 hlen = ip->ip_hl << 2; 374 ip_mloopback(ifp, m, dst, hlen); 495 hlen = ip->ip_hl << 2; 606 ip->ip_sum = in_cksum(m, hlen); 699 int hlen = ip->ip_hl << 2; local 700 int len = (mtu - hlen) 1268 ip_mloopback(struct ifnet *ifp, struct mbuf *m, struct sockaddr_in *dst, int hlen) argument [all...] |
/freebsd-9.3-release/lib/libstand/ |
H A D | udp.c | 144 size_t hlen; local 191 hlen = ip->ip_hl << 2; 192 if (hlen < sizeof(*ip) || 193 in_cksum(ip, hlen) != 0) { 219 if (hlen != sizeof(*ip)) { 220 bcopy(((u_char *)ip) + hlen, uh, len - hlen); 222 n -= hlen - sizeof(*ip);
|
/freebsd-9.3-release/sys/netinet/libalias/ |
H A D | alias_ftp.c | 229 int hlen, tlen, dlen, pflags; local 236 hlen = (pip->ip_hl + tc->th_off) << 2; 238 dlen = tlen - hlen; 242 sptr += hlen; 294 int hlen, tlen, dlen, pflags; local 300 hlen = (pip->ip_hl + tc->th_off) << 2; 302 dlen = tlen - hlen; 306 sptr += hlen; 666 int slen, hlen, tlen, dlen; local 676 hlen [all...] |
/freebsd-9.3-release/sbin/dhclient/ |
H A D | parse.c | 157 int token, hlen; local 186 hlen = 0; 187 t = parse_numeric_aggregate(cfile, NULL, &hlen, COLON, 16, 8); 190 if (hlen > sizeof(hardware->haddr)) { 194 hardware->hlen = hlen; 196 hardware->hlen); 197 if (hlen < sizeof(hardware->haddr)) 198 memset(&hardware->haddr[hlen], 0, 199 sizeof(hardware->haddr) - hlen); [all...] |
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_fil_freebsd.c | 162 int (*fr_checkp) __P((ip_t *ip, int hlen, void *ifp, int out, mb_t **mp)); 555 int tlen = 0, hlen; local 574 hlen = (fin->fin_v == 6) ? sizeof(ip6_t) : sizeof(ip_t); 576 hlen = sizeof(ip_t); 585 if (sizeof(*tcp2) + hlen > MLEN) { 593 m->m_len = sizeof(*tcp2) + hlen; 600 bzero((char *)ip, hlen); 604 tcp2 = (struct tcphdr *)((char *)ip + hlen); 642 tcp2->th_sum = in_cksum(m, hlen + sizeof(*tcp2)); 643 ip->ip_len = hlen 654 int hlen; local 715 int err, hlen, xtra, iclen, ohlen, avail, code; local 911 int len, off, error = 0, hlen, code; local [all...] |
/freebsd-9.3-release/sys/contrib/octeon-sdk/ |
H A D | cvmx-bootloader.h | 94 uint16_t hlen; /* Length of header in bytes */ member in struct:bootloader_header
|
H A D | cvmip.h | 102 uint32_t hlen :4; member in struct:__anon6316 140 uint32_t hlen :4; member in struct:__anon6317::__anon6321
|
/freebsd-9.3-release/lib/libutil/ |
H A D | login_class.c | 139 substvar(const char * var, const struct passwd * pwd, int hlen, int pch, int nlen) argument 157 - dollas + (tildes * (pch+hlen)) 175 memmove(p + hlen + v, p + 1, l); /* Subst homedir */ 176 memmove(p, pwd->pw_dir, hlen); 178 p[hlen] = '/'; 179 p += hlen + v; 199 int hlen = pwd ? strlen(pwd->pw_dir) : 0; local 203 if (hlen && pwd->pw_dir[hlen-1] != '/') 210 char * np = substvar(var, pwd, hlen, pc [all...] |
/freebsd-9.3-release/contrib/libarchive/libarchive/ |
H A D | archive_read_support_compression_rpm.c | 43 size_t hlen; member in struct:rpm 195 rpm->hlen = 0; 228 rpm->hlen = 16 + section * 16 + bytes; 234 n = rpm->hlen - rpm->hpos; 240 if (rpm->hpos == rpm->hlen) 249 rpm->hlen = 0;
|