🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.internals
1 messages
1 total messages Started by Christophe Wolfhugel Tue, 17 Nov 1992 18:21
IP routing on Unix systems
#2380
Author: Christophe Wolfhugel
Date: Tue, 17 Nov 1992 18:21
25 lines
1733 bytes
I'd like to know how the lookups are done what an IP datagram is to be
sent out on a machine.

The datagram can be either for a station on one of the networks directly
attached to the system, or for a remote device, thus requiring the use
of a gateway.

(following example has a 3 bits subnetting, netmask 0xFFFFFFE0)
In the Unix routing table

Destination          Gateway              Flags    Refcnt Use        Interface
127.0.0.1            127.0.0.1            UH       0      0          lo0
default              192.70.106.62        UG       13     345643     en0
192.70.106.32        192.70.106.33        U        11     73981      en0
192.60.107.0         192.70.106.66        UG       0      0          en1
192.70.106.64        192.70.106.65        U        9      12345      en1

So once the datagram arrives to the IP routing function, do the routes
to the directly attached networks have some particular precedence
(ie parsed first) or are they having exactly the same importance as
other routes (ie those to a remote network, with the G flag).

-- 
Christophe Wolfhugel    |    Email: Christophe.Wolfhugel@grasp.insa-lyon.fr
  "Pour le bien-etre de tous, il est interdit de pisser dans le metro."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads