gtp: set UDP header checksum to zero

UDP header checksum is optional. Let's set this to zero by now
so wireshark doesn't complain. Let's revisit this later.
This commit is contained in:
Pablo Neira Ayuso 2014-01-31 23:59:22 +01:00 committed by Pablo Neira Ayuso
parent 516a76f46c
commit 96a73cdcc5
1 changed files with 1 additions and 0 deletions

1
gtp.c
View File

@ -581,6 +581,7 @@ static netdev_tx_t gtp_dev_xmit(struct sk_buff *skb, struct net_device *dev)
uh->source = uh->dest = htons(GTP1U_PORT);
uh->len = htons(sizeof(struct udphdr) + payload_len);
uh->check = 0;
pr_info("gtp -> UDP src: %u dst: %u (len %u)\n",
ntohs(uh->source), ntohs(uh->dest), ntohs(uh->len));