Click to See Complete Forum and Search --> : Ping size?


smythe
04-07-2003, 08:33 AM
Hello,

Is it possible to change the default ping size from 64b to 32b?

J

Hayl
04-07-2003, 08:38 AM
yes

man ping

chrism01
04-07-2003, 08:39 AM
ping -s <pktsize>
be aware it'll add 8 bytes icmp hdr info

smythe
04-07-2003, 09:11 AM
man ping

yes I am aware.. Thanks, but using the -s option is on a per ping basis... I want to chang the default ..ie ping=32b always.. if your telling me that this is covered in the man ping .. i will look again...

ping -s <pktsize>

thanks.. see above


j

bwkaz
04-07-2003, 09:32 AM
Step 1: Find the netkit-base source package

Step 2: Decompress and configure it (run through the configure script, that is).

Step 3: Edit the ping sources to make the default packet size smaller.

That's the only way I could think of doing it.

Well, wait a minute, you could do alias ping="ping -s 32" if you wanted. This would make it so that every time you typed "ping" into that shell, the shell would replace it with ping -s 32. If you want a larger packet size, then do a "ping -s 64" -- this will get turned into "ping -s 32 -s 64", and the last -s should override the first. Should.

smythe
04-07-2003, 09:46 AM
alias ping="ping -s 32"

Thanks..if going that route, from what you say it sounds like the the alias would only work from the shell that you are working in? and it wouldnt be a constant thing?

..before looking into the netkit option..



j

chrism01
04-07-2003, 04:43 PM
if you want it system wide permanent put it in /etc/profile.