summaryrefslogtreecommitdiffstats
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1997-08-28 01:17:12 +0000
committerjulian <julian@FreeBSD.org>1997-08-28 01:17:12 +0000
commit6c90e3528c75ea68f2d3c64aa6029c46fa9a701e (patch)
tree936131a84e5e2a9fb9d520c1b4c589af25a536fe /sys/net/if_var.h
parentb687a4a7e7ee5a230c473da88d3339c0dd28356b (diff)
downloadFreeBSD-src-6c90e3528c75ea68f2d3c64aa6029c46fa9a701e.zip
FreeBSD-src-6c90e3528c75ea68f2d3c64aa6029c46fa9a701e.tar.gz
Add a per-interface-address pointer to a function that can be supplied
by a protocol, to detirmine if an address matches the net this address is part of. This is needed by protocols for which netmasks "just don't work", for example appletalk. Also add the code in appletalk to make use of this new feature. Thsi fixes one of the longest standing bugs in appletalk. The inability to talk to machines to which the path is via a router which is on a different net, but the same netrange, as your interface. Protocols that do not supply this function (e.g. IP) should not be affected.
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r--sys/net/if_var.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 00304e9..b344119 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* From: @(#)if.h 8.1 (Berkeley) 6/10/93
- * $Id$
+ * $Id: if_var.h,v 1.5 1997/02/22 09:41:10 peter Exp $
*/
#ifndef _NET_IF_VAR_H_
@@ -254,6 +254,9 @@ struct ifaddr {
#ifdef notdef
struct rtentry *ifa_rt; /* XXXX for ROUTETOIF ????? */
#endif
+ int (*ifa_claim_addr) /* check if an addr goes to this if */
+ __P((struct ifaddr *, struct sockaddr *));
+
};
#define IFA_ROUTE RTF_UP /* route installed */
OpenPOWER on IntegriCloud