Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107767
b: refs/heads/master
c: ff2a79a
h: refs/heads/master
i:
  107765: 53f5aaa
  107763: 1450011
  107759: a4d4160
v: v3
  • Loading branch information
Robert Olsson authored and David S. Miller committed Aug 6, 2008
1 parent a73c425 commit 1cf1e17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 1211a64554065316e02b3c62b320088ad4f63260
refs/heads/master: ff2a79a5a934fe0dbb136ffad61f79b5c6385614
4 changes: 2 additions & 2 deletions trunk/net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2166,7 +2166,7 @@ static void mod_cur_headers(struct pktgen_dev *pkt_dev)
mc = random32() % pkt_dev->src_mac_count;
else {
mc = pkt_dev->cur_src_mac_offset++;
if (pkt_dev->cur_src_mac_offset >
if (pkt_dev->cur_src_mac_offset >=
pkt_dev->src_mac_count)
pkt_dev->cur_src_mac_offset = 0;
}
Expand All @@ -2193,7 +2193,7 @@ static void mod_cur_headers(struct pktgen_dev *pkt_dev)

else {
mc = pkt_dev->cur_dst_mac_offset++;
if (pkt_dev->cur_dst_mac_offset >
if (pkt_dev->cur_dst_mac_offset >=
pkt_dev->dst_mac_count) {
pkt_dev->cur_dst_mac_offset = 0;
}
Expand Down

0 comments on commit 1cf1e17

Please sign in to comment.