Date: Sat, 09 May 2015 03:27:47 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 200060] [lang/python34] Missing network-related constants Message-ID: <bug-200060-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200060 Bug ID: 200060 Summary: [lang/python34] Missing network-related constants Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: yuri@rawbw.com Flags: maintainer-feedback?(python@FreeBSD.org) Assignee: python@FreeBSD.org Both python 2 and 3 are missing some setsockopt values, for example in the code below: They all come from /usr/include/netinet/in.h, but IP_MULTICAST_LOOP=11 is still in python, but IP_ADD_MEMBERSHIP=12 isn't. Additionally, IPPROTO_DIVERT is also missing, so I have to use: > socket_IPPROTO_DIVERT=258 Example: > import socket > sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) > sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_VIF, 1) > sock.setsockopt(socket.IPPROTO_IP, socket.IP_RSVP_ON, 1) > sock.setsockopt(socket.IPPROTO_IP, socket.IP_PORTRANGE, 1) > sock.setsockopt(socket.IPPROTO_IP, socket.IP_RECVIF, 1) -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200060-21822>