
4 Mar
2002
4 Mar
'02
11:24 a.m.
It looks like you want SOCK_RAW, not AF_RAW. GHC does support this, with the 'Raw' socket type, something like this:
proto <- getProtocolByName "icmp" s <- socket AF_INT Raw proto
should be: s <- socket AF_INET Raw (protoNumber proto) and of course you have to be root to send raw packets to the network. Cheers, Simon
8479
Age (days ago)
8479
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow