Kaydet (Commit) 81aec4bb authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Patch #984654: Add more address family constants.

üst 5e4a3b86
...@@ -3832,6 +3832,10 @@ init_socket(void) ...@@ -3832,6 +3832,10 @@ init_socket(void)
/* Multiprotocol bridge */ /* Multiprotocol bridge */
PyModule_AddIntConstant(m, "AF_BRIDGE", AF_BRIDGE); PyModule_AddIntConstant(m, "AF_BRIDGE", AF_BRIDGE);
#endif #endif
#ifdef AF_ATMPVC
/* ATM PVCs */
PyModule_AddIntConstant(m, "AF_ATMPVC", AF_ATMPVC);
#endif
#ifdef AF_AAL5 #ifdef AF_AAL5
/* Reserved for Werner's ATM */ /* Reserved for Werner's ATM */
PyModule_AddIntConstant(m, "AF_AAL5", AF_AAL5); PyModule_AddIntConstant(m, "AF_AAL5", AF_AAL5);
...@@ -3847,6 +3851,62 @@ init_socket(void) ...@@ -3847,6 +3851,62 @@ init_socket(void)
/* Amateur Radio X.25 PLP */ /* Amateur Radio X.25 PLP */
PyModule_AddIntConstant(m, "AF_ROSE", AF_ROSE); PyModule_AddIntConstant(m, "AF_ROSE", AF_ROSE);
#endif #endif
#ifdef AF_DECnet
/* Reserved for DECnet project */
PyModule_AddIntConstant(m, "AF_DECnet", AF_DECnet);
#endif
#ifdef AF_NETBEUI
/* Reserved for 802.2LLC project */
PyModule_AddIntConstant(m, "AF_NETBEUI", AF_NETBEUI);
#endif
#ifdef AF_SECURITY
/* Security callback pseudo AF */
PyModule_AddIntConstant(m, "AF_SECURITY", AF_SECURITY);
#endif
#ifdef AF_KEY
/* PF_KEY key management API */
PyModule_AddIntConstant(m, "AF_KEY", AF_KEY);
#endif
#ifdef AF_NETLINK
/* */
PyModule_AddIntConstant(m, "AF_NETLINK", AF_NETLINK);
#endif
#ifdef AF_ROUTE
/* Alias to emulate 4.4BSD */
PyModule_AddIntConstant(m, "AF_ROUTE", AF_ROUTE);
#endif
#ifdef AF_ASH
/* Ash */
PyModule_AddIntConstant(m, "AF_ASH", AF_ASH);
#endif
#ifdef AF_ECONET
/* Acorn Econet */
PyModule_AddIntConstant(m, "AF_ECONET", AF_ECONET);
#endif
#ifdef AF_ATMSVC
/* ATM SVCs */
PyModule_AddIntConstant(m, "AF_ATMSVC", AF_ATMSVC);
#endif
#ifdef AF_SNA
/* Linux SNA Project (nutters!) */
PyModule_AddIntConstant(m, "AF_SNA", AF_SNA);
#endif
#ifdef AF_IRDA
/* IRDA sockets */
PyModule_AddIntConstant(m, "AF_IRDA", AF_IRDA);
#endif
#ifdef AF_PPPOX
/* PPPoX sockets */
PyModule_AddIntConstant(m, "AF_PPPOX", AF_PPPOX);
#endif
#ifdef AF_WANPIPE
/* Wanpipe API Sockets */
PyModule_AddIntConstant(m, "AF_WANPIPE", AF_WANPIPE);
#endif
#ifdef AF_LLC
/* Linux LLC */
PyModule_AddIntConstant(m, "AF_LLC", AF_LLC);
#endif
#ifdef USE_BLUETOOTH #ifdef USE_BLUETOOTH
PyModule_AddIntConstant(m, "AF_BLUETOOTH", AF_BLUETOOTH); PyModule_AddIntConstant(m, "AF_BLUETOOTH", AF_BLUETOOTH);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment