Home | History | Annotate | Download | only in scapy

Lines Matching refs:socket

14 import socket
21 _INET6_PTON_EXC = socket.error("illegal IP address string passed to inet_pton")
25 used when socket.inet_pton is not available.
50 # we have to do this since socket.inet_aton('1.2') ==
54 result += socket.inet_aton(part)
55 except socket.error:
75 socket.AF_INET: socket.inet_aton,
76 socket.AF_INET6: _inet6_pton,
86 return socket.inet_pton(af, addr)
91 raise socket.error("Address family not supported by protocol")
96 used when socket.inet_pton is not available.
121 socket.AF_INET: socket.inet_ntoa,
122 socket.AF_INET6: _inet6_ntop,
131 return socket.inet_ntop(af, addr)