Skip to content

Commit

Permalink
Fixing again "Error Wrote 39 out of 30" error message from wesside-ng (
Browse files Browse the repository at this point in the history
…#303).

git-svn-id: http://svn.aircrack-ng.org/trunk@1394 28c6078b-6c39-48e3-add9-af49d547ecab
  • Loading branch information
Mister-X- committed Feb 10, 2009
1 parent 7f4bd43 commit 4afe5a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/easside-ng.c
Original file line number Diff line number Diff line change
Expand Up @@ -1492,8 +1492,8 @@ void send_frame(struct east_state *es, void *buf, int len)
rc = wi_write(es->es_wi, buf, len, NULL);
if(rc == -1)
err(1, "wi_write()");
if (rc != len) {
printf("Error Wrote %d out of %d\n", rc, len);
if (rc != len && rc != len + 3 /* packet length increases by 9 on Radiotap interfaces - this is normal */) {
printf("ERROR: Packet length changed while transmitting (%d instead of %d).\n", rc, len);
exit(1);
}

Expand Down
4 changes: 2 additions & 2 deletions src/wesside-ng.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ static void inject(struct wif *wi, void *buf, int len)
perror("writev()");
exit(1);
}
if (rc != len) {
time_print("Error Wrote %d out of %d\n", rc, len);
if (rc != len && rc != len + 3 /* packet length increases by 9 on Radiotap interfaces - this is normal */) {
time_print("ERROR: Packet length changed while transmitting (%d instead of %d).\n", rc, len);
exit(1);
}
}
Expand Down

0 comments on commit 4afe5a2

Please sign in to comment.