<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.asyd.net/home/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.asyd.net/home/feed.php">
        <title>asyd.net geeklog:2006:05:01</title>
        <description></description>
        <link>http://www.asyd.net/home/</link>
        <image rdf:resource="http://www.asyd.net/home/lib/images/favicon.ico" />
       <dc:date>2011-06-19T00:28:04+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.asyd.net/home/geeklog/2006/05/01/linux_edit_routing_table"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.asyd.net/home/lib/images/favicon.ico">
        <title>asyd.net</title>
        <link>http://www.asyd.net/home/</link>
        <url>http://www.asyd.net/home/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.asyd.net/home/geeklog/2006/05/01/linux_edit_routing_table">
        <dc:format>text/html</dc:format>
        <dc:date>2006-06-14T11:58:49+02:00</dc:date>
        <title>geeklog:2006:05:01:linux_edit_routing_table</title>
        <link>http://www.asyd.net/home/geeklog/2006/05/01/linux_edit_routing_table</link>
        <description>How to add/del route in C


#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;netinet/in.h&gt;
#include &lt;arpa/inet.h&gt;
#include &lt;unistd.h&gt;

#include &lt;sys/ioctl.h&gt;
#include &lt;linux/route.h&gt;

#define ROUTE_ADD SIOCADDRT
#define ROUTE_DEL SIOCDELRT

int route_edit(int action, struct sockaddr_in destination, struct sockaddr_in gateway);

int
main (int argc, char *argv[])
{
  struct sockaddr_in dest, gw;

  /* Fill structures with 0 */
  memset (&amp;dest, 0, sizeof(…</description>
    </item>
</rdf:RDF>
