• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/net/

Lines Matching refs:in

7  * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
32 * Redistribution and use in source and binary forms, with or without
37 * 2. Redistributions in binary form must reproduce the above copyright
38 * notice, this list of conditions and the following disclaimer in the
78 #include <netinet/in.h>
106 int rttrash = 0; /* routes not in table but not freed */
116 #define RTE_ZONE_MAX 65536 /* maximum elements in zone */
119 #define RTD_INUSE 0xFEEDFACE /* entry is in use */
131 u_int32_t rtd_inuse; /* in use pattern */
194 * to keep track of scoped route entries in the routing table. The
195 * fact that such a scope is embedded in the structure is an artifact
196 * of the current implementation which could change in future.
207 * in sockaddr_inarp.
229 * specific but can be expanded in future to include other search filters.
259 * a separate place when rt is in the process of being created.
291 /* Caller must pass in sockaddr_in */
303 /* Caller must pass in sockaddr_in */
335 * the destination mask in addition to extending the length
338 * inserting or looking up the mask in the mask tree.
491 * Find the longest prefix or exact (in the scoped case) address match;
502 * We are apparently adding (report = 0 in delete).
576 * Note: in the case of igmp packets, there might not be an rnh
619 * so it is represented in rttrash.. remove that now.
830 /* Embed scope in src for comparison against rt_gateway below */
894 * add the key and gateway (in one malloc'd chunk).
987 * Just in case the sockaddr passed in by the caller
1043 * routing table has a static entry in place for the gateway,
1046 * interfaces in this matter. Must be careful not to stomp
1110 * Embedding the scope in the radix key is an internal job that should be
1111 * left to routines in this module. Callers should specify the scope value
1118 * derived from the routing message itself, in which case the caller must
1143 * a netmask in the tree
1151 * in the RTM_RESOLVE handler since the caller does not normally
1152 * specify such a flag during a resolve; instead it passes in the
1154 * Note also that in the case of RTM_DELETE, the address passed in
1194 * with 0 reference. If the caller is interested in this route,
1214 * This might result in another rtentry being freed if
1224 * give the protocol a chance to keep things in sync.
1350 /* XXX mtu manipulation will be done in rnh_addaddr -- itojun */
1357 * Uh-oh, we already have one of these in the tree.
1481 * the late parent (passed in as VP here) are themselves deleted.
1502 * adds and changes. There is the added complication in this case of a
1506 * against the (mask, value) of the new route (passed as before in vp)
1577 * will interfere with keeping LLINFO in the routing
1595 * to the next-hop gateway and store it in rt_gwroute.
1610 * it is possible to get stuck in bottomless mutual recursion
1617 * the gateway must already be present in the system in order
1641 * primary ifscope. Also done in rt_setif() to take care
1650 * if we are in a transient state before the non-scoped
1652 * was behaving in the past). In future, it would be good
1663 * Prepare to store the gateway in rt_gateway. Both dst and gateway
1664 * are stored one after the other in the same malloc'd chunk. If we
1683 * here to initialize a newly allocated route entry, in
1746 * value passed in by the caller (IFSCOPE_NONE implies non-scoped).
1801 * the same destination (but not necessarily the same gateway) to exist in
1805 * exist along with the regular, non-scoped entries in the same radix tree
1810 * the best match that would result in a route using the same interface as the
1861 * 2) The route uses the loopback interface, in which case the
1887 * result and return it it in case the scoped
1898 * in searching for the longest prefix scoped match.
1987 * Get an rtentry that is in the routing tree and
2002 * If the interface in the rtentry doesn't match
2064 * Ask that the protocol in question
2075 * And substitute in references to the ifaddr
2082 * any special processing in its new form.
2095 * reference. This will result in a route that's added