Dnia Tue, 12 Aug 2008 07:21:15 -0700 (PDT), Tzury Bar Yochay napisa�(a):
> I changed as instructed:
> server = socket.socket(socket.AF_PACKET, socket.SOCK_RAW,
> socket.getprotobyname('ip'))
>
> now I am getting:
>
> Traceback (most recent call last):
> File "tcpsrv.py", line 15, in
> serve
> When using SOCK_RAW, the family should be AF_PACKET,
> not AF_INET. Note that you need root privileges to do so.
I changed as instructed:
server = socket.socket(socket.AF_PACKET, socket.SOCK_RAW,
socket.getprotobyname('ip'))
now I am getting:
Traceback (most recent call last):
File "tcpsrv.
Dnia Tue, 12 Aug 2008 05:40:36 -0700 (PDT), Tzury Bar Yochay napisa�(a):
Hi,
> server = socket.socket(socket.AF_INET, socket.SOCK_RAW,
> socket.getprotobyname('ip'))
...
> Does anybody have used socket.SOCK_RAW in the past?
When using SOCK_RAW, the family should be AF_PACKET,
not AF_INET. Note t
I am trying to create raw socket:
server = socket.socket(socket.AF_INET, socket.SOCK_RAW,
socket.getprotobyname('ip'))
As a result I get the following error:
Traceback (most recent call last):
File "tcpsrv.py", line 14, in
server = socket.socket(socket.AF_INET, socket.SOCK_RAW,
socket.get