X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fhdw-sniff.git;a=blobdiff_plain;f=list.h;h=e0368355933c14d49487737b2fbc0aeb23f39949;hp=b5549147e1f04f32134456ca1bd22b998edddbd8;hb=cd581a3e864957fdb30ee1987734e8abd8debf8c;hpb=551ef6ebd6cfbf7caf60dd132953fad4b687f107 diff --git a/list.h b/list.h index b554914..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, 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 */ +}