ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:25.5 GB of 70.42 GB (36.21%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ src/ linux-headers-3.0.0-14/ include/ net/ - drwxr-xr-x

Directory:
Viewing file:     lib80211.h (4.32 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * lib80211.h -- common bits for IEEE802.11 wireless drivers
 *
 * Copyright (c) 2008, John W. Linville <linville@tuxdriver.com>
 *
 * Some bits copied from old ieee80211 component, w/ original copyright
 * notices below:
 *
 * Original code based on Host AP (software wireless LAN access point) driver
 * for Intersil Prism2/2.5/3.
 *
 * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen
 * <j@w1.fi>
 * Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi>
 *
 * Adaption to a generic IEEE 802.11 stack by James Ketrenos
 * <jketreno@linux.intel.com>
 *
 * Copyright (c) 2004, Intel Corporation
 *
 */

#ifndef LIB80211_H
#define LIB80211_H

#include <linux/types.h>
#include <linux/list.h>
#include <linux/module.h>
#include <asm/atomic.h>
#include <linux/if.h>
#include <linux/skbuff.h>
#include <linux/ieee80211.h>
#include <linux/timer.h>
/* print_ssid() is intended to be used in debug (and possibly error)
 * messages. It should never be used for passing ssid to user space. */
const char *print_ssid(char *buf, const char *ssid, u8 ssid_len);
#define DECLARE_SSID_BUF(var) char var[IEEE80211_MAX_SSID_LEN * 4 + 1] __maybe_unused

#define NUM_WEP_KEYS    4

enum {
    IEEE80211_CRYPTO_TKIP_COUNTERMEASURES = (1 << 0),
};

struct lib80211_crypto_ops {
    const char *name;
    struct list_head list;

    /* init new crypto context (e.g., allocate private data space,
     * select IV, etc.); returns NULL on failure or pointer to allocated
     * private data on success */
    void *(*init) (int keyidx);

    /* deinitialize crypto context and free allocated private data */
    void (*deinit) (void *priv);

    /* encrypt/decrypt return < 0 on error or >= 0 on success. The return
     * value from decrypt_mpdu is passed as the keyidx value for
     * decrypt_msdu. skb must have enough head and tail room for the
     * encryption; if not, error will be returned; these functions are
     * called for all MPDUs (i.e., fragments).
     */
    int (*encrypt_mpdu) (struct sk_buff * skb, int hdr_len, void *priv);
    int (*decrypt_mpdu) (struct sk_buff * skb, int hdr_len, void *priv);

    /* These functions are called for full MSDUs, i.e. full frames.
     * These can be NULL if full MSDU operations are not needed. */
    int (*encrypt_msdu) (struct sk_buff * skb, int hdr_len, void *priv);
    int (*decrypt_msdu) (struct sk_buff * skb, int keyidx, int hdr_len,
                 void *priv);

    int (*set_key) (void *key, int len, u8 * seq, void *priv);
    int (*get_key) (void *key, int len, u8 * seq, void *priv);

    /* procfs handler for printing out key information and possible
     * statistics */
    char *(*print_stats) (char *p, void *priv);

    /* Crypto specific flag get/set for configuration settings */
    unsigned long (*get_flags) (void *priv);
    unsigned long (*set_flags) (unsigned long flags, void *priv);

    /* maximum number of bytes added by encryption; encrypt buf is
     * allocated with extra_prefix_len bytes, copy of in_buf, and
     * extra_postfix_len; encrypt need not use all this space, but
     * the result must start at the beginning of the buffer and correct
     * length must be returned */
    int extra_mpdu_prefix_len, extra_mpdu_postfix_len;
    int extra_msdu_prefix_len, extra_msdu_postfix_len;

    struct module *owner;
};

struct lib80211_crypt_data {
    struct list_head list;    /* delayed deletion list */
    struct lib80211_crypto_ops *ops;
    void *priv;
    atomic_t refcnt;
};

struct lib80211_crypt_info {
    char *name;
    /* Most clients will already have a lock,
       so just point to that. */
    spinlock_t *lock;

    struct lib80211_crypt_data *crypt[NUM_WEP_KEYS];
    int tx_keyidx;        /* default TX key index (crypt[tx_keyidx]) */
    struct list_head crypt_deinit_list;
    struct timer_list crypt_deinit_timer;
    int crypt_quiesced;
};

int lib80211_crypt_info_init(struct lib80211_crypt_info *info, char *name,
                                spinlock_t *lock);
void lib80211_crypt_info_free(struct lib80211_crypt_info *info);
int lib80211_register_crypto_ops(struct lib80211_crypto_ops *ops);
int lib80211_unregister_crypto_ops(struct lib80211_crypto_ops *ops);
struct lib80211_crypto_ops *lib80211_get_crypto_ops(const char *name);
void lib80211_crypt_deinit_entries(struct lib80211_crypt_info *, int);
void lib80211_crypt_deinit_handler(unsigned long);
void lib80211_crypt_delayed_deinit(struct lib80211_crypt_info *info,
                    struct lib80211_crypt_data **crypt);
void lib80211_crypt_quiescing(struct lib80211_crypt_info *info);

#endif /* LIB80211_H */
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.5003 seconds