]> git.neil.brown.name Git - history.git/commitdiff
[NET]: More network layer static funcs and data.
authorStephen Hemminger <shemminger@osdl.org>
Thu, 29 Apr 2004 09:26:49 +0000 (02:26 -0700)
committerStephen Hemminger <shemminger@osdl.org>
Thu, 29 Apr 2004 09:26:49 +0000 (02:26 -0700)
net/core/neighbour.c
net/ipv4/route.c
net/ipv6/af_inet6.c
net/ipv6/ndisc.c

index c5b4cddcd2eafdbd6bc4ee20de99216cf0abd7a7..ee410cb7d87851e96abed4de367459910c908178 100644 (file)
@@ -1479,7 +1479,7 @@ static void neigh_app_notify(struct neighbour *n)
 
 #ifdef CONFIG_SYSCTL
 
-struct neigh_sysctl_table {
+static struct neigh_sysctl_table {
        struct ctl_table_header *sysctl_header;
        ctl_table               neigh_vars[17];
        ctl_table               neigh_dev[2];
index d2a5685c468c719824750358ce36e1be98a2e2e2..0c6d85976333423897bddd29a1411e711d89cf4a 100644 (file)
@@ -144,7 +144,7 @@ static void          ip_rt_update_pmtu(struct dst_entry *dst, u32 mtu);
 static int rt_garbage_collect(void);
 
 
-struct dst_ops ipv4_dst_ops = {
+static struct dst_ops ipv4_dst_ops = {
        .family =               AF_INET,
        .protocol =             __constant_htons(ETH_P_IP),
        .gc =                   rt_garbage_collect,
@@ -1525,7 +1525,7 @@ e_inval:
  *     2. IP spoofing attempts are filtered with 100% of guarantee.
  */
 
-int ip_route_input_slow(struct sk_buff *skb, u32 daddr, u32 saddr,
+static int ip_route_input_slow(struct sk_buff *skb, u32 daddr, u32 saddr,
                        u8 tos, struct net_device *dev)
 {
        struct fib_result res;
@@ -1910,7 +1910,7 @@ int ip_route_input(struct sk_buff *skb, u32 daddr, u32 saddr,
  * Major route resolver routine.
  */
 
-int ip_route_output_slow(struct rtable **rp, const struct flowi *oldflp)
+static int ip_route_output_slow(struct rtable **rp, const struct flowi *oldflp)
 {
        u32 tos = oldflp->fl4_tos & (IPTOS_RT_MASK | RTO_ONLINK);
        struct flowi fl = { .nl_u = { .ip4_u =
index eba2cec0d81ad55c52542d1a76651a1ae6f5958d..24ca03a62f6b0bc23a39787678649d42162e13a7 100644 (file)
@@ -539,7 +539,7 @@ struct proto_ops inet6_dgram_ops = {
        .sendpage =     sock_no_sendpage,
 };
 
-struct net_proto_family inet6_family_ops = {
+static struct net_proto_family inet6_family_ops = {
        .family = PF_INET6,
        .create = inet6_create,
        .owner  = THIS_MODULE,
index b12511a138beb649b15d4d4232683d88be00c4a1..6b34ed27fca47284ba10dd7f00bfe883fdd73196 100644 (file)
@@ -1418,7 +1418,7 @@ static int ndisc_netdev_event(struct notifier_block *this, unsigned long event,
        return NOTIFY_DONE;
 }
 
-struct notifier_block ndisc_netdev_notifier = {
+static struct notifier_block ndisc_netdev_notifier = {
        .notifier_call = ndisc_netdev_event,
 };