From: hackbard Date: Thu, 27 Mar 2003 17:06:04 +0000 (+0000) Subject: added list stuff X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=728bc5f9cd9f3ded02efba8352fffef843095ee2;p=my-code%2Fhdw-sniff.git added list stuff --- diff --git a/list.c b/list.c new file mode 100644 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 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 --- 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; }