projects
/
my-code
/
hdw-sniff.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added ignore file
[my-code/hdw-sniff.git]
/
list.h
diff --git
a/list.h
b/list.h
index
b554914
..
e036835
100644
(file)
--- a/
list.h
+++ b/
list.h
@@
-1,13
+1,22
@@
/*
/*
- * list header file
+ * list.h - list header file
+ *
+ * author: hackbard@hackdaworld.dyndns.org
*
*/
*
*/
-/* data structures */
-struct list {
- char ssid[32]; /* ssid */
- struct list *next; /* pointer to next list */
-};
+#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 */
+}
-/* prototypes */
-int add_ssid_2_list(char *ssid, struct list *my_list);
+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 */
+}