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:
parent
516a76f46c
commit
96a73cdcc5
1
gtp.c
1
gtp.c
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue