[pypy-svn] r76928 - pypy/trunk/pypy/rlib

fijal at codespeak.net fijal at codespeak.net
Wed Sep 8 08:50:18 CEST 2010


Author: fijal
Date: Wed Sep  8 08:50:16 2010
New Revision: 76928

Modified:
   pypy/trunk/pypy/rlib/_rsocket_rffi.py
Log:
on posix, define sockaddr_ll


Modified: pypy/trunk/pypy/rlib/_rsocket_rffi.py
==============================================================================
--- pypy/trunk/pypy/rlib/_rsocket_rffi.py	(original)
+++ pypy/trunk/pypy/rlib/_rsocket_rffi.py	Wed Sep  8 08:50:16 2010
@@ -32,6 +32,7 @@
                 'arpa/inet.h',
                 'stdint.h', 
                 'errno.h',
+                'netpacket/packet.h'
                 )
     cond_includes = [('AF_NETLINK', 'linux/netlink.h')]
     libraries = ()
@@ -273,7 +274,7 @@
                                               ('nl_pid', rffi.INT),
                                               ('nl_groups', rffi.INT)],
                                              ifdef='AF_NETLINK')
-                                             
+
 CConfig.addrinfo = platform.Struct('struct addrinfo',
                                      [('ai_flags', rffi.INT),
                                       ('ai_family', rffi.INT),
@@ -309,6 +310,15 @@
                                             [('fd', socketfd_type),
                                              ('events', rffi.SHORT),
                                              ('revents', rffi.SHORT)])
+
+    CConfig.sockaddr_ll = platform.Struct('struct sockaddr_ll',
+                                          [('sll_protocol', rffi.INT),
+                                           ('sll_pkttype', rffi.INT),
+                                           ('sll_hatype', rffi.INT),
+                                           ('sll_addr', CCHARP),
+                                           ('sll_halen', rffi.INT)],
+                                          )
+
 if _WIN32:
     CConfig.WSAEVENT = platform.SimpleType('WSAEVENT', rffi.VOIDP)
     CConfig.WSANETWORKEVENTS = platform.Struct(



More information about the Pypy-commit mailing list