1
0

experiment3.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef CFUZZ_H_
  2. #define CFUZZ_H_
  3. //the int len_* fields are only used for copying the data to a packet,
  4. //so no fuzzing on those fields! Fuzzing should only be done on u_char datatypes
  5. //Information element
  6. typedef struct {
  7. u_char id;
  8. u_char len;
  9. int len_data;
  10. u_char *data;
  11. } infoElem;
  12. //Probe response frame
  13. typedef struct {
  14. int len_radioTapHdr; //usually 32 bytes
  15. u_char *radioTapHdr;
  16. int len_type; //1 byte
  17. u_char *type; //Protocol version, type and subtype
  18. int len_flags; //1 byte
  19. u_char *flags; //to DS, from DS, more Frag, Retry, Pwr Mgt, more Data, WEP, Order
  20. int len_duration; //2 bytes
  21. u_char *duration;
  22. int len_destAddr; //6 bytes
  23. u_char *destAddr;
  24. int len_sourceAddr; //6 bytes
  25. u_char *sourceAddr;
  26. int len_bssAddr; //6 bytes
  27. u_char *bssAddr;
  28. int len_seqNr; //2 bytes
  29. u_char *seqNr;
  30. int len_timeStamp; //8 bytes
  31. u_char *timeStamp;
  32. int len_beaconInterval; //2 bytes
  33. u_char *beaconInterval;
  34. int len_capabInfo; //2 bytes
  35. u_char *capabInfo;
  36. int len_taggedParams; //variable size
  37. infoElem *taggedParams;
  38. int len_fsc; //4 bytes
  39. u_char *fsc;
  40. } probeResponse;
  41. #endif