if_addrlist in AF_INET domain
Chris Torek
chris at umcp-cs.UUCP
Sat Apr 19 04:10:10 AEST 1986
In article <877 at harvard.UUCP>, dyer at harvard.UUCP (Steve Dyer) writes:
>I'm a little confused by the addition of lists of addresses for each
>network interface in the 4.3BSD (beta) release. [...] Could someone
>describe in a nutshell what additional capabilities this change gives
>us?
In a word: AF_NS.
In more words: the list of addresses holds all the addresses in each
address family. This is because each family may well have a different
address format: e.g., Internet four-byte `dot' numbers vs. Xerox NS
six-byte Ethernet addresses. (I wonder what DECNET uses?)
The structure looks like this:
----------------- ---------------
| AF_INET addrs |----\ | AF_NS addrs |----\
----------------- | --------------- |
| |
---------------- v v
| Ethernet I/F | ------------------ ------------------
| il0 | | if_addr struct | | if_addr struct |
| if_addrlist -+-->| ... if_next -+------>| ... if_next -+---> ...
---------------- ------------------ ------------------
(struct ifnet) | INET dependent | | XNS dependent |
| data | | data |
| .... | | .... |
(struct -> | ia_next | | ia_next | <- (struct
in_ifaddr) ---------+-------- ----------+------- ns_ifaddr)
| |
| |
---------------- v v
| Ethernet I/F | ------------------ ------------------
| il1 | | if_addr struct | | if_addr struct |
| if_addrlist -+-->| ... if_next -+------>| ... if_next -+---> ...
---------------- ------------------ ------------------
| INET dependent | | XNS dependent |
| data | | data |
| .... | | .... |
| ia_next | | ia_next |
---------+-------- ----------+-------
| |
. .
. .
. .
(Obviously I am not an ASCII artist.)
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1415)
UUCP: seismo!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at mimsy.umd.edu
More information about the Comp.unix.wizards
mailing list