[Planetlab-users] Raw sockets & TCP

Vitaliy Gleyzer vit at cmu.edu
Fri Apr 27 12:40:31 EDT 2007


Just a follow up on the issue:

I've downloaded 
   vnet/examples/rawping.c

from PlanetLab CVS server, and modified the probe packet to send a SYN, ACK, SYN/ACK, RST, RST/ACK and FIN packets.  It seems the only ones that do not generate an "Operation not permitted" errors are SYN and ACK.

After reading the VNET documentation and restriction, these packet should be perfectly legitimate packets to be sent using the raw socket interface (at least from my understanding).

Could anyone offer any suggestion or experience?

Vitaliy



>> I have been trying to send different types TCP packets from a planet
>> lab node using this socket:
>> 
>> socket(PF_INET, SOCK_RAW, IPPROTO_TCP);
>> 
>> The code is functional during local testing. When deployed on the
>> planetlab nodes though, it seems to work fine for sending SYN packets,
>> but for any other TCP packet, it fails with an error "Operation not
>> permitted".
>> 
>> If anyone has ran into this problem, or has some functional sample
>> code, help would be much appreciated!
>> 
>> Thanks,
>> 
>> Vitaliy



More information about the Users mailing list