Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-02-2009, 12:11 AM   #1
Registered: Jun 2009
Location: India, Chennai
Posts: 32

Rep: Reputation: 15
Angry Ping Timestamp tsprespec calculation

In ping coding when the -T option specified with the subcode tsprespec it will store the time stamp when the packet reaches that host. When we get the echo response we need to print the timestamp from the packet, I do not know what they are doing in the following code,

l = *cp++;
l = (l<<8) + *cp++;
l = (l<<8) + *cp++;
l = (l<<8) + *cp++;


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Adaptive ping round-trip time calculation vino87 Linux - Networking 0 07-01-2009 02:58 AM
Ping & timestamp Zeno McDohl Linux - Newbie 4 09-22-2008 02:24 PM
Clients BandWidth Calculation ahmad82pkn Linux - Networking 0 10-22-2005 08:38 AM
c math calculation alaios Programming 3 06-01-2004 01:46 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration