pour
WolPoBox
savoir si une mac répond au "ping"
ip:
https://gist.github.com/pklaus/856268
mac:
http://www.larsen-b.com/Article/206.html
pour info:
http://en.wikipedia.org/wiki/Ping_%28networking_utility%29#ICMP_packet
The payload of the packet is generally filled with ASCII characters, as the output of the tcpdump utility shows:
16:24:47.966461 IP (tos 0x0, ttl 128, id 15103, offset 0, flags [none],
proto: ICMP (1), length: 60) 192.168.146.22 > 192.168.144.5: ICMP echo request,
id 1, seq 38, length 40
0x0000: 4500 003c 3aff 0000 8001 5c55 c0a8 9216 E..<:.....\U....
0x0010: c0a8 9005 0800 4d35 0001 0026 6162 6364 ......M5...&abcd
0x0020: 6566 6768 696a 6b6c 6d6e 6f70 7172 7374 efghijklmnopqrst
0x0030: 7576 7761 6263 6465 6667 6869 uvwabcdefghi
ping capturé par
AnalyZer:
00 24 D4 4E | 41 78 00 24 | 21 07 8E 25 | 08 00 45 00 | 00 3C 2C EF |
<dest. . . . . . .><--source. . . . . . ><VER/TYP. . . ><LEN. . ><TT><PRo>
00 00 80 01 | E4 99 C0 A8 | 00 EB 66 A8 | 00 FD 08 00 | 4D 32 00 01 |
. . . . . . . . . . < source ip ><- dest ip . ><cod/typ><Header data>
00 29 61 62 | 63 64 65 66 | 67 68 69 6A | 6B 6C 6D 6E | 6F 70 71 72 |
<chk><-azerty
73 74 75 76 | 77 61 62 63 | 64 65 66 67 | 68 69