X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fhdw-sniff.git;a=blobdiff_plain;f=list.h;h=e0368355933c14d49487737b2fbc0aeb23f39949;hp=075bc509ff9f2f28c574e962bd4113e51bdaa089;hb=cd581a3e864957fdb30ee1987734e8abd8debf8c;hpb=f495a11c9e880f1f55aa8e6c44c065228e55e5c5 diff --git a/list.h b/list.h index 075bc50..e036835 100644 --- 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,unsigned short cap, 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 */ +}