Diff for /embedaddon/sudo/plugins/sudoers/interfaces.h between versions 1.1.1.2 and 1.1.1.4

version 1.1.1.2, 2012/05/29 12:26:49 version 1.1.1.4, 2014/06/15 16:12:54
Line 1 Line 1
 /*  /*
 * Copyright (c) 1996, 1998-2005, 2007, 2010 * Copyright (c) 1996, 1998-2005, 2007, 2010-2013
  *      Todd C. Miller <Todd.Miller@courtesan.com>   *      Todd C. Miller <Todd.Miller@courtesan.com>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
Line 19 Line 19
  * Materiel Command, USAF, under agreement number F39502-99-1-0512.   * Materiel Command, USAF, under agreement number F39502-99-1-0512.
  */   */
   
#ifndef _SUDO_INTERFACES_H#ifndef _SUDOERS_INTERFACES_H
#define _SUDO_INTERFACES_H#define _SUDOERS_INTERFACES_H
   
 /*  /*
  * Union to hold either strucr in_addr or in6_add   * Union to hold either strucr in_addr or in6_add
Line 36  union sudo_in_addr_un { Line 36  union sudo_in_addr_un {
  * IP address and netmask pairs for checking against local interfaces.   * IP address and netmask pairs for checking against local interfaces.
  */   */
 struct interface {  struct interface {
    int family; /* AF_INET or AF_INET6 */    SLIST_ENTRY(interface) entries;
     unsigned int family;    /* AF_INET or AF_INET6 */
     union sudo_in_addr_un addr;      union sudo_in_addr_un addr;
     union sudo_in_addr_un netmask;      union sudo_in_addr_un netmask;
     struct interface *next;  
 };  };
   
   SLIST_HEAD(interface_list, interface);
   
 /*  /*
  * Prototypes for external functions.   * Prototypes for external functions.
  */   */
 int get_net_ifs(char **addrinfo);  int get_net_ifs(char **addrinfo);
 void dump_interfaces(const char *);  void dump_interfaces(const char *);
 void set_interfaces(const char *);  void set_interfaces(const char *);
   struct interface_list *get_interfaces(void);
   
/*#endif /* _SUDOERS_INTERFACES_H */
 * Definitions for external variables. 
 */ 
#ifndef _SUDO_MAIN 
extern struct interface *interfaces; 
#endif 
 
#endif /* _SUDO_INTERFACES_H */ 

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>