The Network Kit
and
Network Add-ons
Developer Release Notes
BeOS Release 4
getservbyname() now looks in
the /etc/services file for "extra" services. (It always returns the
ftp and telnet services data in addition to anything it finds in the file.)
A service entry in the file looks like this:
serviceName portNumber/protocol
For example...
smtp 25/tcp
smtp 25/udp
nsw-fe 27/tcp
nsw-fe 27/udp |
New structure and function in add-ons/net_server/NetDevice.h:
typedef struct nic_info {
net_device_type nic_type;
char netcard_addr[255];
} netcard_info_t;
status_t get_nth_netcard_info(int16 n, netcard_info_t *ni);
|
get_nth_netcard_info()
retrieves information about the n'th network
interface card:
-
netcard_info_t.netcard_type
is one of the net_device_type
constants
(B_PPP_NET_DEVICE,
B_ETHER_NET_DEVICE,
B_LOOP_NET_DEVICE).
-
netcard_info_t.netcard_addr
is the card's IP address. The address
format depends on the card's device type.
A return of B_OK means the information
was successfully retrieved; B_ERROR
indicates failure.
BeOS Release 4
Copyright © 1998 Be, Inc. All rights reserved.