Lines Matching defs:packlen
342 static int packlen; /* total length of packet */
614 packlen = minpacket; /* minimum sized packet */
617 packlen = *mtuptr++;
623 packlen = str2val(argv[optind + 1],
649 outip = malloc((unsigned)packlen);
652 memset(outip, 0, packlen);
658 outip->ip_len = htons(packlen);
661 outip->ip_len = packlen;
706 htons((u_int16_t)(packlen - (sizeof(*outip) + optlen)));
804 if (prog_setsockopt(sndsock, SOL_SOCKET, SO_SNDBUF, (char *)&packlen,
805 sizeof(packlen)) < 0)
926 Fprintf(stderr, ", %d hops max, %d byte packets\n", max_ttl, packlen);
1227 i < packlen - (sizeof(*outip) + optlen); i++)
1229 for (p = (u_char *)outip, i = 0; i < packlen; i++)
1244 int oldmtu = packlen;
1249 outip->ip_len = htons(packlen);
1251 outip->ip_len = packlen;
1286 packlen - (sizeof(*outip) + optlen));
1301 outudp->uh_sum = in_cksum((u_short *)ui, packlen);
1313 nshorts = (u_int)packlen / sizeof(u_int16_t);
1315 Printf("[ %d bytes", packlen);
1321 if (packlen & 1) {
1339 packlen - (sizeof(*outip) + optlen), 0, &whereto, sizeof(whereto));
1344 packlen, 0, &whereto, sizeof(whereto));
1346 if (cc < 0 || cc != packlen) {
1358 packlen = *mtuptr++;
1366 prog, hostname, packlen, cc);
1369 if (oldmtu != packlen) {
1371 "trying new MTU = %d\n", packlen);
1501 packlen - (sizeof(*outip) + optlen));
1506 htons((u_int16_t)(packlen - (sizeof(*outip) + optlen)));
1775 if (nextmtu > 0 && nextmtu < packlen) {
1779 packlen = nextmtu;
1790 nextmtu, packlen);
1791 packlen = *mtuptr++;
1792 Printf("Trying new MTU = %d\n", packlen);