Lines Matching full:sizeof
76 if (length < sizeof(struct shorthdr)) {
81 TCHECK2(*ap, sizeof(short));
83 if (pktlen < sizeof(struct shorthdr)) {
93 rhp = (const union routehdr *)&(ap[sizeof(short)]);
106 TCHECK2(ap[sizeof(short)], padlen);
110 rhp = (const union routehdr *)&(ap[sizeof(short)]);
129 if (length < sizeof(struct longhdr)) {
139 nspp = &(ap[sizeof(short) + sizeof(struct longhdr)]);
140 nsplen = length - sizeof(struct longhdr);
147 nspp = &(ap[sizeof(short) + sizeof(struct shorthdr)]);
148 nsplen = length - sizeof(struct shorthdr);
192 if (length < sizeof(struct initmsg))
211 if (length < sizeof(struct verifmsg))
221 if (length < sizeof(struct testmsg))
231 if (length < sizeof(struct l1rout))
236 ret = print_l1_routes(&(rhpx[sizeof(struct l1rout)]),
237 length - sizeof(struct l1rout));
241 if (length < sizeof(struct l2rout))
246 ret = print_l2_routes(&(rhpx[sizeof(struct l2rout)]),
247 length - sizeof(struct l2rout));
251 if (length < sizeof(struct rhellomsg))
258 sizeof(srcea));
269 ret = print_elist(&(rhpx[sizeof(struct rhellomsg)]),
270 length - sizeof(struct rhellomsg));
274 if (length < sizeof(struct ehellomsg))
281 sizeof(srcea));
287 sizeof(rtea));
335 while (len > (3 * sizeof(short))) {
336 TCHECK2(*rp, 3 * sizeof(short));
340 rp += sizeof(short);
341 len -= sizeof(short);
343 rp += sizeof(short);
344 len -= sizeof(short);
346 rp += sizeof(short);
347 len -= sizeof(short);
365 while (len > (3 * sizeof(short))) {
366 TCHECK2(*rp, 3 * sizeof(short));
370 rp += sizeof(short);
371 len -= sizeof(short);
373 rp += sizeof(short);
374 len -= sizeof(short);
376 rp += sizeof(short);
377 len -= sizeof(short);
418 if (nsplen < sizeof(struct nsphdr))
439 u_int data_off = sizeof(struct minseghdr);
450 data_off += sizeof(short);
460 data_off += sizeof(short);
485 u_int data_off = sizeof(struct minseghdr);
496 data_off += sizeof(short);
506 data_off += sizeof(short);
528 (struct lsmsg *)&(nspp[sizeof(struct seghdr)]);
532 if (nsplen < sizeof(struct seghdr) + sizeof(struct lsmsg))
595 if (nsplen < sizeof(struct ackmsg))
620 if (nsplen < sizeof(struct ackmsg))
664 if (nsplen < sizeof(struct cimsg))
700 if (nsplen > sizeof(struct cimsg)) {
701 dp = &(nspp[sizeof(struct cimsg)]);
702 TCHECK2(*dp, nsplen - sizeof(struct cimsg));
703 pdata(dp, nsplen - sizeof(struct cimsg));
718 if (nsplen < sizeof(struct ccmsg))
757 if (optlen > nsplen - sizeof(struct ccmsg))
759 dp = &(nspp[sizeof(struct ccmsg)]);
776 if (nsplen < sizeof(struct dimsg))
786 if (optlen > nsplen - sizeof(struct dimsg))
788 dp = &(nspp[sizeof(struct dimsg)]);
862 str = (char *)malloc(siz = sizeof("00.0000"));
875 dna.a_len = sizeof(short);
876 memcpy((char *)dna.a_addr, (char *)&dnaddr, sizeof(short));