From 8b18617fb0c11a6a9febee429f546a76181b0935 Mon Sep 17 00:00:00 2001 From: mjm Date: Fri, 27 Dec 2002 16:58:31 +0000 Subject: pre-version --- (limited to 'noncore/net/wellenreiter/libwellenreiter') 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 @@ +wl_log + +#include + +void wl_loginfo(const char *string, ...) +void wl_logerr(const char *string, ...) + +wl_loginfo() and wl_err() write string to syslog(), +either to INFO or to ERR. + +no return values + 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 @@ +sniff.cc + +#include + +void process_packets(const struct pcap_pkthdr *pkthdr, + const unsigned char *packet, + char *guihost, + int guiport) + +The function process_packets() will use libpcap to get the +informations for a 802.11b packet. When it finds a valid +network it calls the wl_send function and sends a found +network packet to the guiport on the guihost. + + +Return value + +none + +NOTE: process_packets() is void at the moment because there +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 @@ +wl_sock + +#include + +int wl_setupsock(const char *host, int port) +int wl_send(const char *host, int port, const char *string, ...) +int wl_recv(int *socket, char *out, int len) + + +wl_setupsock() returns the number of the activated udp socket. + +wl_send() sends string to the given host. + +wl_recv() checks for incoming data on a socket (created using +wl_setupsock()). It writes the incoming data to out with a +maxlen of len. + + +wl_setupsock() returns -1 on error and the number of socket on +success. +wl_send() returns -1 on error and 0 on success. +wl_recv() returns -1 on error and the type of the received packet +on success. + -- cgit v0.9.0.2