Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a0f1734

Browse files
committed
Patch #813445: Add missing socket.IPPROTO_IPV6. Backported to 2.3.
1 parent 76bafc6 commit a0f1734

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Modules/socketmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3749,6 +3749,9 @@ init_socket(void)
37493749
#ifdef IPPROTO_IPV4
37503750
PyModule_AddIntConstant(m, "IPPROTO_IPV4", IPPROTO_IPV4);
37513751
#endif
3752+
#ifdef IPPROTO_IPV6
3753+
PyModule_AddIntConstant(m, "IPPROTO_IPV6", IPPROTO_IPV6);
3754+
#endif
37523755
#ifdef IPPROTO_IPIP
37533756
PyModule_AddIntConstant(m, "IPPROTO_IPIP", IPPROTO_IPIP);
37543757
#endif

0 commit comments

Comments
 (0)