Differences between Berkley 4.2 and 4.3
Mike Marshall
hubcap at hubcap.clemson.edu
Fri Dec 15 01:20:39 AEST 1989
I'm not qualified to talk about the implimentation differences, but one of
the functional differences between 4.2 and 4.3 networking can be seen in
/usr/include/netdb.h:
struct hostent {
char *h_name; /* official name of host */
char **h_aliases; /* alias list */
int h_addrtype; /* host address type */
int h_length; /* length of address */
char **h_addr_list; /* list of addresses from name server */
#define h_addr h_addr_list[0] /* address, for backward compatiblity */
};
In the above structure h_addr_list is a 4.3ism. One of the things that can
end up here is an ordered list of MX hosts. Back in the pre DNS days of 4.2
all they did was look up an address in /etc/hosts and all that was needed
was h_addr.
-Mike hubcap at clemson.edu
More information about the Comp.unix.wizards
mailing list