inject mode send same frames more than once

Joshua Wright Joshua.Wright
Fri May 23 11:21:17 PDT 2003


I had a similar problem, I think I resolved it by changing the retry value before transmitting the frames:

int hostap_set_retry(char *iface, int limit) {
  struct iwreq iwr;
  memset(&iwr, 0, sizeof(iwr));
  strncpy(iwr.ifr_name, iface, IFNAMSIZ);

  iwr.u.retry.flags = IW_RETRY_LIMIT;
  iwr.u.retry.value = limit;
  iwr.u.retry.disabled = 0;

  if (ioctl(harj->ioctl_sock , SIOCSIWRETRY, &iwr) < 0) {
    perror("ioctl[SIOCSIWRETRY]");
    printf("Failed to set retry limit to %d\n", limit);
    return(1);
  } else 
    return(0);
}

-Joshua Wright
Senior Network and Security Architect
Johnson & Wales University
Joshua.Wright at jwu.edu 
http://home.jwu.edu/jwright/

pgpkey: http://home.jwu.edu/jwright/pgpkey.htm
fingerprint: FDA5 12FC F391 3740 E0AE BDB6 8FE2 FC0A D44B 4A73



-----Original Message-----
From: hostap-admin at shmoo.com [mailto:hostap-admin at shmoo.com]On Behalf Of Kevin Wang
Sent: Friday, May 23, 2003 1:28 PM
To: hostap at shmoo.com
Subject: inject mode send same frames more than once


Hi list:
  I am using inject mode to send frames, but for each frames, it send out more than once which means I capture the same packet in the air for more than 4 or 5 times. Is there any configuration that I can change to send each frame only once.
  thank you.
kevin 




More information about the Hostap mailing list