diff options
author | paul <paul> | 2004-05-08 05:00:31 +0000 |
---|---|---|
committer | paul <paul> | 2004-05-08 05:00:31 +0000 |
commit | 4a7aac1bc609ee147492b228af9222f526e2ca2f (patch) | |
tree | 4f764b16562766422bca65ff2f6668a51757b9ec /lib/if.h | |
parent | 5bd4189c17bad7a9e115ef573c0324c4b969a641 (diff) |
2004-05-08 Sowmini Varadhan <sowmini.varadhan@sun.com>
* if.h: Add mtu6 field to struct interface, IPv6 MTU may differ
from IPv4, and Solaris treats the MTU's differently.
Add connected_add_by_prefix, for use by later patch.
* if.c: (connected_add_by_prefix) Add prefix to connected list.
(if_flag_dump) Solaris: Dump IFF_IPv4/6 flag
(if_dump) Dump mtu6 flag, for HAVE_IPV6.
Diffstat (limited to 'lib/if.h')
-rw-r--r-- | lib/if.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -94,7 +94,8 @@ struct interface int metric; /* Interface MTU. */ - int mtu; + int mtu; /* IPv4 MTU */ + int mtu6; /* IPv6 MTU - probably, but not neccessarily same as mtu */ /* Hardware address. */ #ifdef HAVE_SOCKADDR_DL @@ -205,8 +206,13 @@ char *ifindex2ifname (unsigned int); struct connected *connected_new (); void connected_free (struct connected *); void connected_add (struct interface *, struct connected *); -struct connected *connected_delete_by_prefix (struct interface *, struct prefix *); -struct connected *connected_lookup_address (struct interface *, struct in_addr); +struct connected *connected_add_by_prefix (struct interface *, + struct prefix *, + struct prefix *); +struct connected *connected_delete_by_prefix (struct interface *, + struct prefix *); +struct connected *connected_lookup_address (struct interface *, + struct in_addr); #ifndef HAVE_IF_NAMETOINDEX unsigned int if_nametoindex (const char *); |