Lines Matching refs:optlen
84 int optlen = 0; variable
436 optlen = 40; in main()
461 optlen = 40; in main()
478 optlen = 40; in main()
484 hold += ((hold+511)/512)*(optlen + 20 + 16 + 64 + 160); in main()
517 if (datalen > 0xFFFF - 8 - optlen - 20) { in main()
519 …printf(stderr, "Error: packet size %d is too large. Maximum is %d\n", datalen, 0xFFFF-8-20-optlen); in main()
523 …intf(stderr, "WARNING: packet size %d is too large. Maximum is %d\n", datalen, 0xFFFF-8-20-optlen); in main()
537 printf("%d(%d) bytes of data.\n", datalen, datalen+8+optlen+20); in main()
730 int optlen; in parse_reply() local
744 optlen = hlen - sizeof(struct iphdr); in parse_reply()
749 optlen = 0; in parse_reply()
759 optlen = cmsg->cmsg_len; in parse_reply()
858 pr_options(opts, optlen + sizeof(struct iphdr)); in parse_reply()
1026 int optlen, totlen; in pr_options() local
1044 optlen = optptr[1]; in pr_options()
1045 if (optlen < 2 || optlen > totlen) in pr_options()
1166 totlen -= optlen; in pr_options()
1167 optptr += optlen; in pr_options()