Hi

I am unable to create RAW sockets using python.

Traceback (most recent call last):
  File "getsockopt_handler.py", line 6, in ?
    send = socket(AF_INET,SOCK_RAW,IPPROTO_IP)
socket.error: (94, 'Socket type not supported')

I've tried changing the type from IPPROTO_IP to IPPROTO_RAW but the I
get the below error

Traceback (most recent call last):
  File "getsockopt_handler.py", line 7, in ?
    send.bind((gethostbyname(gethostname()),50000))
socket.error: (99, 'Cannot assign requested address')

I am running this on python 2.2 .Do I need to change any system
settings or do I need to use a newer python version.Also,please
suggest further reading.

thanks
moijes12
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to