The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/netinet/in_selsrc.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #ifndef _NETINET_IN_SELSRC_H
    2 #define _NETINET_IN_SELSRC_H
    3 
    4 #define IN_SELECTSRC_LEN        128
    5 #define IN_SCORE_SRC_MAX        8
    6 
    7 typedef int (*in_score_src_t)(const struct in_addr *src,
    8                               int preference, int idx,
    9                               const struct in_addr *dst);
   10 
   11 struct in_ifselsrc {
   12         uint32_t                iss_seqno;
   13         in_score_src_t          iss_score_src[IN_SCORE_SRC_MAX];
   14 };
   15 
   16 struct in_ifsysctl {
   17         struct ifnet            *isc_ifp;
   18         struct sysctllog        *isc_log;
   19         struct in_ifselsrc      *isc_selsrc;
   20 };
   21 
   22 enum in_category {
   23         IN_CATEGORY_LINKLOCAL = 0,
   24         IN_CATEGORY_PRIVATE,
   25         IN_CATEGORY_OTHER
   26 };
   27 
   28 struct ifaddr *in_getifa(struct ifaddr *, const struct sockaddr *);
   29 
   30 void    *in_selsrc_domifattach(struct ifnet *ifp);
   31 void    in_selsrc_domifdetach(struct ifnet *ifp, void *aux);
   32 
   33 #endif /* _NETINET_IN_SELSRC_H */

Cache object: a955989d41d296d3a01fafcb59abd060


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.