[New-bugs-announce] [issue27702] [Patch] Only use SOCK_RAW when defined

Ed Schouten report at bugs.python.org
Sun Aug 7 06:37:13 EDT 2016


New submission from Ed Schouten:

POSIX only requires socket types SOCK_STREAM, SOCK_DGRAM and SOCK_SEQPACKET to be present. SOCK_RAW is optional, as it is placed between [RS] tags in the specification:

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html

It looks like Python's socketmodule.c does try to use it unconditionally. Comply to POSIX by only exposing it optionally, just like we do for some of the other socket types (SOCK_RDM, etc).

----------
components: Extension Modules
files: sock_raw.diff
keywords: patch
messages: 272117
nosy: EdSchouten
priority: normal
severity: normal
status: open
title: [Patch] Only use SOCK_RAW when defined
versions: Python 3.6
Added file: http://bugs.python.org/file44034/sock_raw.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27702>
_______________________________________


More information about the New-bugs-announce mailing list