From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18101 invoked by alias); 1 Sep 2009 13:59:47 -0000 Received: (qmail 18093 invoked by uid 22791); 1 Sep 2009 13:59:46 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 Sep 2009 13:59:40 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MiTtX-0007Ry-LG for ecos-discuss@sources.redhat.com; Tue, 01 Sep 2009 15:59:35 +0200 Received: from pro1.proekspert.ee ([212.47.207.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Sep 2009 15:59:35 +0200 Received: from tarmo.kuuse by pro1.proekspert.ee with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Sep 2009 15:59:35 +0200 To: ecos-discuss@sources.redhat.com From: Tarmo Kuuse Date: Tue, 01 Sep 2009 13:59:00 -0000 Message-ID: References: <4A9C0111.70300@gmail.com> <4A9CF045.4060107@meduna.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) In-Reply-To: <4A9CF045.4060107@meduna.org> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: How to deconfigure an interface? X-SW-Source: 2009-09/txt/msg00024.txt.bz2 Stanislav Meduna wrote: > Tarmo Kuuse wrote: >> Another task which needs doing is clearing the routes table. There >> exists a function "cyg_route_reinit()" which simply flushes all routes. >> Unfortunately it also deletes routes for the local loopback and all >> other interfaces you may have. I haven't yet figured out how to delete >> the routes only for a given interface. > > I added such a function, it seems to work. Thank you, that was a very handy piece of code. -- Kind regards, Tarmo Kuuse -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss