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/ip_auth.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 /*
    2  * Copyright (C) 1997 by Darren Reed & Guido Van Rooij.
    3  *
    4  * Redistribution and use in source and binary forms are permitted
    5  * provided that this notice is preserved and due credit is given
    6  * to the original author and the contributors.
    7  *
    8  * $FreeBSD$
    9  *
   10  */
   11 #ifndef __IP_AUTH_H__
   12 #define __IP_AUTH_H__
   13 
   14 #define FR_NUMAUTH      32
   15 
   16 typedef struct  fr_authstat {
   17         U_QUAD_T        fas_hits;
   18         U_QUAD_T        fas_miss;
   19         u_long          fas_nospace;
   20         u_long          fas_added;
   21         u_long          fas_sendfail;
   22         u_long          fas_sendok;
   23         u_long          fas_queok;
   24         u_long          fas_quefail;
   25         u_long          fas_expire;
   26 } fr_authstat_t;
   27 
   28 typedef struct  frauth {
   29         int     fra_age;
   30         int     fra_index;
   31         u_32_t  fra_pass;
   32         fr_info_t       fra_info;
   33 #if SOLARIS
   34         queue_t *fra_q;
   35 #endif
   36 } frauth_t;
   37 
   38 typedef struct  frauthent  {
   39         struct  frentry fae_fr;
   40         struct  frauthent       *fae_next;
   41         u_long  fae_age;
   42 } frauthent_t;
   43 
   44 
   45 extern  frentry_t       *ipauth;
   46 extern  struct fr_authstat      fr_authstats;
   47 extern  int     fr_defaultauthage;
   48 extern  int     fr_authstart;
   49 extern  int     fr_authend;
   50 extern  int     fr_authsize;
   51 extern  int     fr_authused;
   52 extern  int     fr_checkauth __P((ip_t *, fr_info_t *));
   53 extern  void    fr_authexpire __P((void));
   54 extern  void    fr_authunload __P((void));
   55 extern  mb_t    *fr_authpkts[];
   56 #if defined(_KERNEL) && SOLARIS
   57 extern  int     fr_newauth __P((mb_t *, fr_info_t *, ip_t *, qif_t *));
   58 #else
   59 extern  int     fr_newauth __P((mb_t *, fr_info_t *, ip_t *));
   60 #endif
   61 #if defined(__NetBSD__) || defined(__OpenBSD__) || (__FreeBSD_version >= 300003)
   62 extern  int     fr_auth_ioctl __P((caddr_t, u_long, frentry_t *, frentry_t **));
   63 #else
   64 extern  int     fr_auth_ioctl __P((caddr_t, int, frentry_t *, frentry_t **));
   65 #endif
   66 #endif  /* __IP_AUTH_H__ */

Cache object: e3e01c60b8209da7b6976b7350f6d77a


[ 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.