Search found 1 match

by alban read
Sat Apr 30, 2005 12:36 pm
Forum: Linux
Topic: simple ping on Linux uses raw sockets
Replies: 2
Views: 3533

simple ping on Linux uses raw sockets

This example works but still needs improvement.
I thought I would post it anyway.


; Simple ping for linux (in pure basic.)
; Alban Read. 2005.
; beware that the time in milliseconds does not seem accurate

#AF_INET=2
#SOCK_RAW=3
#EPERM =1
#ICMP_ECHO=8
#SOL_SOCKET=1

#F_VERBOSE=$100
#IP_HEADER ...