From 728bc5f9cd9f3ded02efba8352fffef843095ee2 Mon Sep 17 00:00:00 2001 From: hackbard Date: Thu, 27 Mar 2003 17:06:04 +0000 Subject: [PATCH] added list stuff --- list.c | 10 ++++++++++ list.h | 22 ++++++++++++++++++++++ main.c | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 list.c create mode 100644 list.h 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; } -- 2.39.2