Lines Matching refs:sockaddr
86 struct sockaddr ro_dst;
138 #define rt_key(r) ((struct sockaddr *)((r)->rt_nodes->rn_key))
139 #define rt_mask(r) ((struct sockaddr *)((r)->rt_nodes->rn_mask))
140 struct sockaddr *rt_gateway; /* value */
146 struct sockaddr *rt_genmask; /* for generation of cloned routes */
151 struct sockaddr *, struct rtentry *);
165 struct sockaddr rt_dst; /* key */
166 struct sockaddr rt_gateway; /* value */
293 #define RTA_DST 0x1 /* destination sockaddr present */
294 #define RTA_GATEWAY 0x2 /* gateway sockaddr present */
295 #define RTA_NETMASK 0x4 /* netmask sockaddr present */
296 #define RTA_GENMASK 0x8 /* cloning mask sockaddr present */
297 #define RTA_IFP 0x10 /* interface name sockaddr present */
298 #define RTA_IFA 0x20 /* interface addr sockaddr present */
299 #define RTA_AUTHOR 0x40 /* sockaddr for author of redirect */
303 * Index offsets for sockaddr array for alternate internal encoding.
305 #define RTAX_DST 0 /* destination sockaddr present */
306 #define RTAX_GATEWAY 1 /* gateway sockaddr present */
307 #define RTAX_NETMASK 2 /* netmask sockaddr present */
308 #define RTAX_GENMASK 3 /* cloning mask sockaddr present */
309 #define RTAX_IFP 4 /* interface name sockaddr present */
310 #define RTAX_IFA 5 /* interface addr sockaddr present */
311 #define RTAX_AUTHOR 6 /* sockaddr for author of redirect */
317 struct sockaddr *rti_info[RTAX_MAX];
349 extern int rt_setgate(struct rtentry *, struct sockaddr *, struct sockaddr *);
352 extern boolean_t rt_inet_default(struct rtentry *, struct sockaddr *);
353 extern struct rtentry *rt_lookup(boolean_t, struct sockaddr *,
354 struct sockaddr *, struct radix_node_head *, unsigned int);
359 extern struct rtentry *rtalloc1(struct sockaddr *, int, u_long);
360 extern struct rtentry *rtalloc1_locked(struct sockaddr *, int, u_long);
361 extern struct rtentry *rtalloc1_scoped_locked(struct sockaddr *, int,
376 extern void rtredirect(struct ifnet *, struct sockaddr *, struct sockaddr *,
377 struct sockaddr *, int, struct sockaddr *, struct rtentry **);
378 extern int rtrequest(int, struct sockaddr *,
379 struct sockaddr *, struct sockaddr *, int, struct rtentry **);
380 extern int rtrequest_locked(int, struct sockaddr *,
381 struct sockaddr *, struct sockaddr *, int, struct rtentry **);
382 extern int rtrequest_scoped_locked(int, struct sockaddr *, struct sockaddr *,
383 struct sockaddr *, int, struct rtentry **, unsigned int);
386 extern unsigned int sa_get_ifscope(struct sockaddr *);