author | mjm <mjm> | 2002-12-27 16:58:31 (UTC) |
---|---|---|
committer | mjm <mjm> | 2002-12-27 16:58:31 (UTC) |
commit | 8b18617fb0c11a6a9febee429f546a76181b0935 (patch) (unidiff) | |
tree | af23e2d3819397b09f5a1d2bb472b5b3f2ea1578 | |
parent | 66b657ed956fecdfeb82956b444d75b0c028a060 (diff) | |
download | opie-8b18617fb0c11a6a9febee429f546a76181b0935.zip opie-8b18617fb0c11a6a9febee429f546a76181b0935.tar.gz opie-8b18617fb0c11a6a9febee429f546a76181b0935.tar.bz2 |
pre-version
3 files changed, 57 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/docs/wl_log.8 b/noncore/net/wellenreiter/libwellenreiter/docs/wl_log.8 new file mode 100644 index 0000000..00262bd --- a/dev/null +++ b/noncore/net/wellenreiter/libwellenreiter/docs/wl_log.8 | |||
@@ -0,0 +1,12 @@ | |||
1 | wl_log | ||
2 | |||
3 | #include <wellenreiter/wl_log.hh> | ||
4 | |||
5 | void wl_loginfo(const char *string, ...) | ||
6 | void wl_logerr(const char *string, ...) | ||
7 | |||
8 | wl_loginfo() and wl_err() write string to syslog(), | ||
9 | either to INFO or to ERR. | ||
10 | |||
11 | no return values | ||
12 | |||
diff --git a/noncore/net/wellenreiter/libwellenreiter/docs/wl_sniff.8 b/noncore/net/wellenreiter/libwellenreiter/docs/wl_sniff.8 new file mode 100644 index 0000000..9a65223 --- a/dev/null +++ b/noncore/net/wellenreiter/libwellenreiter/docs/wl_sniff.8 | |||
@@ -0,0 +1,21 @@ | |||
1 | sniff.cc | ||
2 | |||
3 | #include <wellenreiter/sniff.hh> | ||
4 | |||
5 | void process_packets(const struct pcap_pkthdr *pkthdr, | ||
6 | const unsigned char *packet, | ||
7 | char *guihost, | ||
8 | int guiport) | ||
9 | |||
10 | The function process_packets() will use libpcap to get the | ||
11 | informations for a 802.11b packet. When it finds a valid | ||
12 | network it calls the wl_send function and sends a found | ||
13 | network packet to the guiport on the guihost. | ||
14 | |||
15 | |||
16 | Return value | ||
17 | |||
18 | none | ||
19 | |||
20 | NOTE: process_packets() is void at the moment because there | ||
21 | will be alot of non-critical and annoying errors. | ||
diff --git a/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 b/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 new file mode 100644 index 0000000..ebecd82 --- a/dev/null +++ b/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 | |||
@@ -0,0 +1,24 @@ | |||
1 | wl_sock | ||
2 | |||
3 | #include <wellenreiter/wl_sock.hh> | ||
4 | |||
5 | int wl_setupsock(const char *host, int port) | ||
6 | int wl_send(const char *host, int port, const char *string, ...) | ||
7 | int wl_recv(int *socket, char *out, int len) | ||
8 | |||
9 | |||
10 | wl_setupsock() returns the number of the activated udp socket. | ||
11 | |||
12 | wl_send() sends string to the given host. | ||
13 | |||
14 | wl_recv() checks for incoming data on a socket (created using | ||
15 | wl_setupsock()). It writes the incoming data to out with a | ||
16 | maxlen of len. | ||
17 | |||
18 | |||
19 | wl_setupsock() returns -1 on error and the number of socket on | ||
20 | success. | ||
21 | wl_send() returns -1 on error and 0 on success. | ||
22 | wl_recv() returns -1 on error and the type of the received packet | ||
23 | on success. | ||
24 | |||