How to ping a node with data? (C source code)

Status
Not open for further replies.

feiutm9898

Full Member level 4
Joined
May 31, 2004
Messages
224
Helped
4
Reputation
8
Reaction score
0
Trophy points
1,296
Location
Singapore
Activity points
2,027
Ping a node with data

Hello

I have search around google about the technique to ping a node with data. But I just get frustrated.

So, anyone can help me at here?

I need the C programming source code.

thanks ah....

regards,
Michael
 

Ping a node with data

from your Linux console you can use:

# ping [ -p pattern ] destination

-p pattern
You may specify up to 16 ``pad'' bytes to fill out
the packet you send. This is useful for diagnosing
data-dependent problems in a network. For example,
-p ff will cause the sent packet to be filled with
all ones.


see man pages for more info

# man ping

for sample source code you can use the source code of ping ))

))
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…