[BACK]Return to ip_input.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / netinet

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/netinet/ip_input.c between version 1.224.2.3 and 1.224.2.5

version 1.224.2.3, 2006/08/11 15:46:33 version 1.224.2.5, 2006/09/14 12:31:55
Line 121  __KERNEL_RCSID(0, "$NetBSD$");
Line 121  __KERNEL_RCSID(0, "$NetBSD$");
 #include <sys/kernel.h>  #include <sys/kernel.h>
 #include <sys/pool.h>  #include <sys/pool.h>
 #include <sys/sysctl.h>  #include <sys/sysctl.h>
   #include <sys/kauth.h>
   
 #include <net/if.h>  #include <net/if.h>
 #include <net/if_dl.h>  #include <net/if_dl.h>
Line 445  ip_init(void)
Line 446  ip_init(void)
 #endif /* MBUFTRACE */  #endif /* MBUFTRACE */
 }  }
   
 struct  sockaddr_in ipaddr = { sizeof(ipaddr), AF_INET };  struct  sockaddr_in ipaddr = {
           .sin_len = sizeof(ipaddr),
           .sin_family = AF_INET,
   };
 struct  route ipforward_rt;  struct  route ipforward_rt;
   
 /*  /*
Line 2108  sysctl_net_inet_ip_forwsrcrt(SYSCTLFN_AR
Line 2112  sysctl_net_inet_ip_forwsrcrt(SYSCTLFN_AR
         if (error || newp == NULL)          if (error || newp == NULL)
                 return (error);                  return (error);
   
         if (securelevel > 0)          if (kauth_authorize_network(l->l_cred, KAUTH_NETWORK_FORWSRCRT,
               NULL, NULL, NULL, NULL))
                 return (EPERM);                  return (EPERM);
   
         ip_forwsrcrt = tmp;          ip_forwsrcrt = tmp;

Legend:
Removed from v.1.224.2.3  
changed lines
  Added in v.1.224.2.5

CVSweb <webmaster@jp.NetBSD.org>