diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-11-04 14:52:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-04 15:13:18 -0500 |
commit | 436f7c206860729d543a457aca5887e52039a5f4 (patch) | |
tree | 5799479558a14eda21e9d056da52a959e4078af6 | |
parent | c18450a52a10a5c4cea3dc426c40447a7152290f (diff) |
igmp: remove camel case definitions
use standard uppercase for definitions
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/igmp.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index fb70e3ecc3e4..3f8051358202 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c | |||
@@ -112,17 +112,17 @@ | |||
112 | #ifdef CONFIG_IP_MULTICAST | 112 | #ifdef CONFIG_IP_MULTICAST |
113 | /* Parameter names and values are taken from igmp-v2-06 draft */ | 113 | /* Parameter names and values are taken from igmp-v2-06 draft */ |
114 | 114 | ||
115 | #define IGMP_V1_Router_Present_Timeout (400*HZ) | 115 | #define IGMP_V1_ROUTER_PRESENT_TIMEOUT (400*HZ) |
116 | #define IGMP_V2_Router_Present_Timeout (400*HZ) | 116 | #define IGMP_V2_ROUTER_PRESENT_TIMEOUT (400*HZ) |
117 | #define IGMP_V2_Unsolicited_Report_Interval (10*HZ) | 117 | #define IGMP_V2_UNSOLICITED_REPORT_INTERVAL (10*HZ) |
118 | #define IGMP_V3_Unsolicited_Report_Interval (1*HZ) | 118 | #define IGMP_V3_UNSOLICITED_REPORT_INTERVAL (1*HZ) |
119 | #define IGMP_Query_Response_Interval (10*HZ) | 119 | #define IGMP_QUERY_RESPONSE_INTERVAL (10*HZ) |
120 | #define IGMP_Query_Robustness_Variable 2 | 120 | #define IGMP_QUERY_ROBUSTNESS_VARIABLE 2 |
121 | 121 | ||
122 | 122 | ||
123 | #define IGMP_Initial_Report_Delay (1) | 123 | #define IGMP_INITIAL_REPORT_DELAY (1) |
124 | 124 | ||
125 | /* IGMP_Initial_Report_Delay is not from IGMP specs! | 125 | /* IGMP_INITIAL_REPORT_DELAY is not from IGMP specs! |
126 | * IGMP specs require to report membership immediately after | 126 | * IGMP specs require to report membership immediately after |
127 | * joining a group, but we delay the first report by a | 127 | * joining a group, but we delay the first report by a |
128 | * small interval. It seems more natural and still does not | 128 | * small interval. It seems more natural and still does not |
@@ -879,15 +879,15 @@ static bool igmp_heard_query(struct in_device *in_dev, struct sk_buff *skb, | |||
879 | if (ih->code == 0) { | 879 | if (ih->code == 0) { |
880 | /* Alas, old v1 router presents here. */ | 880 | /* Alas, old v1 router presents here. */ |
881 | 881 | ||
882 | max_delay = IGMP_Query_Response_Interval; | 882 | max_delay = IGMP_QUERY_RESPONSE_INTERVAL; |
883 | in_dev->mr_v1_seen = jiffies + | 883 | in_dev->mr_v1_seen = jiffies + |
884 | IGMP_V1_Router_Present_Timeout; | 884 | IGMP_V1_ROUTER_PRESENT_TIMEOUT; |
885 | group = 0; | 885 | group = 0; |
886 | } else { | 886 | } else { |
887 | /* v2 router present */ | 887 | /* v2 router present */ |
888 | max_delay = ih->code*(HZ/IGMP_TIMER_SCALE); | 888 | max_delay = ih->code*(HZ/IGMP_TIMER_SCALE); |
889 | in_dev->mr_v2_seen = jiffies + | 889 | in_dev->mr_v2_seen = jiffies + |
890 | IGMP_V2_Router_Present_Timeout; | 890 | IGMP_V2_ROUTER_PRESENT_TIMEOUT; |
891 | } | 891 | } |
892 | /* cancel the interface change timer */ | 892 | /* cancel the interface change timer */ |
893 | in_dev->mr_ifc_count = 0; | 893 | in_dev->mr_ifc_count = 0; |
@@ -899,7 +899,7 @@ static bool igmp_heard_query(struct in_device *in_dev, struct sk_buff *skb, | |||
899 | return true; /* ignore bogus packet; freed by caller */ | 899 | return true; /* ignore bogus packet; freed by caller */ |
900 | } else if (IGMP_V1_SEEN(in_dev)) { | 900 | } else if (IGMP_V1_SEEN(in_dev)) { |
901 | /* This is a v3 query with v1 queriers present */ | 901 | /* This is a v3 query with v1 queriers present */ |
902 | max_delay = IGMP_Query_Response_Interval; | 902 | max_delay = IGMP_QUERY_RESPONSE_INTERVAL; |
903 | group = 0; | 903 | group = 0; |
904 | } else if (IGMP_V2_SEEN(in_dev)) { | 904 | } else if (IGMP_V2_SEEN(in_dev)) { |
905 | /* this is a v3 query with v2 queriers present; | 905 | /* this is a v3 query with v2 queriers present; |
@@ -1218,7 +1218,7 @@ static void igmp_group_added(struct ip_mc_list *im) | |||
1218 | return; | 1218 | return; |
1219 | if (IGMP_V1_SEEN(in_dev) || IGMP_V2_SEEN(in_dev)) { | 1219 | if (IGMP_V1_SEEN(in_dev) || IGMP_V2_SEEN(in_dev)) { |
1220 | spin_lock_bh(&im->lock); | 1220 | spin_lock_bh(&im->lock); |
1221 | igmp_start_timer(im, IGMP_Initial_Report_Delay); | 1221 | igmp_start_timer(im, IGMP_INITIAL_REPORT_DELAY); |
1222 | spin_unlock_bh(&im->lock); | 1222 | spin_unlock_bh(&im->lock); |
1223 | return; | 1223 | return; |
1224 | } | 1224 | } |
@@ -1541,7 +1541,7 @@ static struct in_device *ip_mc_find_dev(struct net *net, struct ip_mreqn *imr) | |||
1541 | int sysctl_igmp_max_memberships __read_mostly = IP_MAX_MEMBERSHIPS; | 1541 | int sysctl_igmp_max_memberships __read_mostly = IP_MAX_MEMBERSHIPS; |
1542 | int sysctl_igmp_max_msf __read_mostly = IP_MAX_MSF; | 1542 | int sysctl_igmp_max_msf __read_mostly = IP_MAX_MSF; |
1543 | #ifdef CONFIG_IP_MULTICAST | 1543 | #ifdef CONFIG_IP_MULTICAST |
1544 | int sysctl_igmp_qrv __read_mostly = IGMP_Query_Robustness_Variable; | 1544 | int sysctl_igmp_qrv __read_mostly = IGMP_QUERY_ROBUSTNESS_VARIABLE; |
1545 | #endif | 1545 | #endif |
1546 | 1546 | ||
1547 | static int ip_mc_del1_src(struct ip_mc_list *pmc, int sfmode, | 1547 | static int ip_mc_del1_src(struct ip_mc_list *pmc, int sfmode, |