summaryrefslogtreecommitdiff
path: root/proto_ipv4.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-09 15:40:47 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-09 15:40:47 +0100
commitb2eaec6671ff7ff44bb2f93881ad30e6d6ba0d24 (patch)
tree0c4ddb694da06af1ded2fcd26acf29529c714477 /proto_ipv4.c
parent66e558ed51ff7d3d7bebb5f5d56114df5eb77e96 (diff)
csum: Remove unused parameter from calc_csum()
The `ccsum' parameter to calc_csum() is never used and is set to 0 by all callers. There's no reason to keep it, so remove it. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proto_ipv4.c')
-rw-r--r--proto_ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto_ipv4.c b/proto_ipv4.c
index cefc6ba..9b9e915 100644
--- a/proto_ipv4.c
+++ b/proto_ipv4.c
@@ -48,7 +48,7 @@ static void ipv4(struct pkt_buff *pkt)
frag_off = ntohs(ip->h_frag_off);
h_tot_len = ntohs(ip->h_tot_len);
- csum = calc_csum(ip, ip->h_ihl * 4, 0);
+ csum = calc_csum(ip, ip->h_ihl * 4);
inet_ntop(AF_INET, &ip->h_saddr, src_ip, sizeof(src_ip));
inet_ntop(AF_INET, &ip->h_daddr, dst_ip, sizeof(dst_ip));