added list stuff
authorhackbard <hackbard>
Thu, 27 Mar 2003 17:06:04 +0000 (17:06 +0000)
committerhackbard <hackbard>
Thu, 27 Mar 2003 17:06:04 +0000 (17:06 +0000)
list.c [new file with mode: 0644]
list.h [new file with mode: 0644]
main.c

diff --git a/list.c b/list.c
new file mode 100644 (file)
index 0000000..0ab3ff0
--- /dev/null
+++ b/list.c
@@ -0,0 +1,10 @@
+/*
+ * list.c - list interface
+ *
+ * author: hackbard@hackdaworld.dyndns.org
+ *
+ */
+
+#include "list.h"
+
+
diff --git a/list.h b/list.h
new file mode 100644 (file)
index 0000000..e036835
--- /dev/null
+++ b/list.h
@@ -0,0 +1,22 @@
+/*
+ * list.h - list header file
+ *
+ * author: hackbard@hackdaworld.dyndns.org
+ *
+ */
+
+#define MAX_BSSID_CHARS 6
+#define MAX_SSID_CHARS 32
+
+struct bssid
+{
+ char bssid[MAX_BSSID_CHARS]; /* the bssid mac address */
+ struct bss *next; /* next bssid */
+}
+
+struct bsslist
+{
+ char ssid[MAX_SSID_CHARS]; /* network name of this bss */
+ char struct *bssid; /* pointer to bssid mac addresses of this bss */
+ struct bsslist *next; /* next sniffed bss */
+}
diff --git a/main.c b/main.c
index 2926a76..9e8258f 100644 (file)
--- a/main.c
+++ b/main.c
@@ -33,7 +33,7 @@ int hop_channel(info_struct *info)
   perror("ioctl");
   return -23;
  }
- ++(info->current_channel;
+ ++(info->current_channel);
  return 23;
 }