LORCON(3) Library Functions Manual LORCON(3)

LORCON - 802.11 Wireless Packet Injection Library

#include <lorcon2/lorcon.h>
#include <lorcon2/lorcon_packet.h>
typedef void (*lorcon_handler)(lorcon_t *, lorcon_packet_t *, u_char *user);
const char *lorcon_get_error(lorcon_t *context)
lorcon_driver_t *lorcon_list_drivers()
lorcon_driver_t *lorcon_find_driver(const char *driver)
lorcon_driver_t *lorcon_auto_driver(const char *interface)
void lorcon_free_driver_list(lorcon_driver_t *listhead)
lorcon_t *lorcon_create(const char *interface, lorcon_driver_t *driver)
voir lorcon_close(lorcon_t *context)
void lorcon_free(lorcon_t *context)
int lorcon_open_inject(lorcon_t *context)
int lorcon_open_monitor(lorcon_t *context)
int lorcon_open_injmon(lorcon_t *context)
void lorcon_set_vap(lorcon-t *context, const char *vap)
const char *lorcon_et_vap(lorcon_t *context)
const char *lorcon_get_capiface(lorcon_t *context)
const char *lorcon_get_driver_name(lorcon_t *context)
int lorcon_get_datalink(lorcon_t *context)
int lorcon_set_datalink(lorcon_t *context, int dlt)
int lorcon_get_channel(lorcon_t *context)
int lorcon_set_channel(lorcon_t *context, int channel)
pcap_t *lorcon_get_pcap(lorcon_t *context)
int lorcon_get_selectable_fd(lorcon_t *context)
int lorcon_next_ex(lorcon_t *context, lorcon_packet_t **packet)
int lorcon_set_filter(lorcon_t *context, const char *filter)
int lorcon_loop(lorcon_t *context, int count, lorcon_handler callback, u_char *user)
int lorcon_dispatch(lorcon_t *context, int count, lorcon_handler callback, u_char *user)
void lorcon_breakloop(lorcon_t *context);
int lorcon_send_bytes(lotcon_t *context, int length, u_char *bytes)
int lorcon_inject(lorcon_t *context, lorcon_packet_t *packet)
lorcon_packet_t *lorcon_packet_from_pcap(struct lorcon *context, const struct pcap_pkthdr *h, const u_char *bytes)
lorcon_packet_t *lorcon_packet_from_dot3(u_char *bssid, int dot11_direction, u_char *data, int length)

LORCON - Loss Of Radio CONnectivity

The LORCON packet library provides a higher-level interface to transmit and process wireless packets.

Joshua Wright <jwright@hasborg.com>

Mike Kershaw <dragorn@kismetwireless.net>

Please send problems, bugs, questions, desirable enhancements, patches and source code contributions to:

lorcon@802.11ninja.net

Please see http://802.11ninja.net/lorcon for updates to LORCON, documentation and the bug database.

12 Sep 2009