Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'wed,': 0.04; 'subject:Problem': 0.09; 'switches': 0.09; 'configure': 0.11; 'server,': 0.12; 'am,': 0.14; 'wrote:': 0.14; 'around,': 0.16; 'packet': 0.16; 'picks': 0.16; "wouldn't": 0.18; 'device': 0.20; 'header:In-Reply-To:1': 0.22; 'wonder': 0.24; "what's": 0.24; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; 'etc.)': 0.29; 'query': 0.29; 'this.': 0.30; 'protocols': 0.31; 'to:addr:python- list': 0.32; 'another': 0.32; 'that,': 0.35; 'addresses': 0.36; 'received:209.85': 0.37; '20,': 0.38; 'apr': 0.38; 'received:google.com': 0.38; 'set': 0.39; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; 'would': 0.40; 'header:Received:5': 0.40; 'central': 0.60; 'address': 0.61; '2011': 0.62; 'broadcast': 0.68; 'hands.': 0.84; 'received:209.85.210.174': 0.84; 'received:mail- iy0-f174.google.com': 0.84; 'stupid': 0.84; 'edwards': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=eZNVXWqBRIwmn5MWpMYFPUETIkqfL00L22eb/DaPuXg=; b=e/EdSLMQZqCp+1CHEVc4kr39VcwEZKtELqbPcHoKaM4nPLoJ7Pct6N7URwF0LnYhSN VGjDgtWj2h0TCfXMPuFG/8Oiqzm+bGoDoCvDv8e8Q/WlCYswWn7SkjmnRKuQCIoLe7hd 5NLL7hrIk3eKE+ilLoQqIwhgTLMCRpKvrM+Pg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DhZyr/Z0BpWpJdqZQ7qKfLcD07n7I9tHHyTVwwADu3d9EVs0qAE6xQUMnx7EZeBPEi ec4ogNwJXFkyc7mOpObag2XyUnsKV66hNR0EXlqx8M7uO6K6Pfju28QpqURozql8EbjI lJCZHFFr7VwqEKbrCVdZLLjcPYsdPJxo4Jlbo= MIME-Version: 1.0 In-Reply-To: References: <4dae172e$0$65870$e4fe514c@news.xs4all.nl> <4dae1d82$0$81483$e4fe514c@news.xs4all.nl> Date: Wed, 20 Apr 2011 10:53:02 +1000 Subject: Re: Problem receiving UDP broadcast packets. From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 82.94.164.166 X-Trace: 1303260785 news.xs4all.nl 81485 [::ffff:82.94.164.166]:60068 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3622 On Wed, Apr 20, 2011 at 10:09 AM, Grant Edwards wrote: > The management program can then send another broadcast packet to > configure the IP address of a device. After that, the management > program switches over to normal unicast TCP and UDP protocols (HTTP, > TFTP, etc.) to set up the device. > Wonder if it would be possible to (ab)use DHCP for this. If every device registers itself with a central DHCP server, you could query that to find out what's around, and configuring of IP addresses would then be out of your hands. Or can you simply use a stupid netmask like /1 that picks up all the IP ranges? That way, the source-IP check wouldn't fail. Chris Angelico