From owner-freebsd-python@FreeBSD.ORG Sat May 9 03:27:48 2015 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0C1AB618 for ; Sat, 9 May 2015 03:27:48 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA58217C4 for ; Sat, 9 May 2015 03:27:47 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t493RlKN063061 for ; Sat, 9 May 2015 03:27:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 200060] [lang/python34] Missing network-related constants Date: Sat, 09 May 2015 03:27:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yuri@rawbw.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2015 03:27:48 -0000 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.