Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'socket': 0.05; 'subject:skip:c 10': 0.07; 'subject:How': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:set': 0.09; 'subject:using': 0.09; 'aug': 0.13; 'stack': 0.15; 'inserting': 0.16; 'overriding': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:type': 0.16; 'tcp': 0.16; 'wed,': 0.16; "i've": 0.23; 'header': 0.24; 'ago': 0.27; 'plain': 0.27; 'interface': 0.27; "doesn't": 0.28; 'header:X-Complaints-To:1': 0.28; 'went': 0.28; 'source': 0.29; 'addresses': 0.32; 'programming,': 0.33; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'done': 0.34; 'subject:?': 0.35; 'received:org': 0.36; 'but': 0.36; "wasn't": 0.36; 'charset:us-ascii': 0.36; 'level': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'build': 0.39; 'little': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'real': 0.61; 'lower': 0.61; 'on...': 0.65; 'dennis': 0.91; 'received:108': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: How to set the socket type and the protocol of a socket using create_connection? Date: Wed, 22 Aug 2012 15:18:57 -0400 Organization: > Bestiaria Support Staff < References: <32176aa4-4b9d-44a6-8729-958e3c251955@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-218-57.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1345663132 news.xs4all.nl 6967 [2001:888:2000:d::a6]:48960 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27676 On Wed, 22 Aug 2012 01:43:19 -0700 (PDT), Guillaume Comte declaimed the following in gmane.comp.python.general: > I've managed to build the IP header. I've put the source and destination addresses in this header but it doesn't change the real source address... > For all I know (I've done very little network programming, and that was years ago using plain TCP and UDP -- worse, on a VMS system so it wasn't the "UNIX style" socket interface), your network stack may still be overriding the packet at some lower level and inserting the IP associated with the interface the packet went out on... -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/