Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327713
b: refs/heads/master
c: ee13040
h: refs/heads/master
i:
  327711: 47b832a
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Aug 30, 2012
1 parent 2a627c4 commit 38eb86c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6549dd43c04327071571edf7aea4465b16539422
refs/heads/master: ee13040901c11b016d996ab5a946acaaa3461737
3 changes: 2 additions & 1 deletion trunk/net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len)
struct udphdr *udph;
struct iphdr *iph;
struct ethhdr *eth;
static atomic_t ip_ident;

udp_len = len + sizeof(*udph);
ip_len = udp_len + sizeof(*iph);
Expand Down Expand Up @@ -423,7 +424,7 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len)
put_unaligned(0x45, (unsigned char *)iph);
iph->tos = 0;
put_unaligned(htons(ip_len), &(iph->tot_len));
iph->id = 0;
iph->id = htons(atomic_inc_return(&ip_ident));
iph->frag_off = 0;
iph->ttl = 64;
iph->protocol = IPPROTO_UDP;
Expand Down

0 comments on commit 38eb86c

Please sign in to comment.