Classes | Defines | Functions | Variables
ndef.c File Reference
#include "includes.h"
#include "common.h"
#include "wps/wps.h"
#include "wps/wps_i.h"
Include dependency graph for ndef.c:

Go to the source code of this file.

Classes

struct  ndef_record

Defines

#define FLAG_CHUNK   (1 << 5)
#define FLAG_ID_LENGTH_PRESENT   (1 << 3)
#define FLAG_MESSAGE_BEGIN   (1 << 7)
#define FLAG_MESSAGE_END   (1 << 6)
#define FLAG_SHORT_RECORD   (1 << 4)
#define FLAG_TNF_RFC2046   (0x02)

Functions

static struct wpabufndef_build_record (u8 flags, void *type, u8 type_length, void *id, u8 id_length, void *payload, u32 payload_length)
struct wpabufndef_build_wifi (struct wpabuf *buf)
static int ndef_parse_record (u8 *data, u32 size, struct ndef_record *record)
static struct wpabufndef_parse_records (struct wpabuf *buf, int(*filter)(struct ndef_record *))
struct wpabufndef_parse_wifi (struct wpabuf *buf)
static int wifi_filter (struct ndef_record *record)

Variables

static char wifi_handover_type [] = "application/vnd.wfa.wsc"

Define Documentation

#define FLAG_CHUNK   (1 << 5)

Definition at line 23 of file ndef.c.

#define FLAG_ID_LENGTH_PRESENT   (1 << 3)

Definition at line 25 of file ndef.c.

#define FLAG_MESSAGE_BEGIN   (1 << 7)

Definition at line 21 of file ndef.c.

#define FLAG_MESSAGE_END   (1 << 6)

Definition at line 22 of file ndef.c.

#define FLAG_SHORT_RECORD   (1 << 4)

Definition at line 24 of file ndef.c.

#define FLAG_TNF_RFC2046   (0x02)

Definition at line 26 of file ndef.c.


Function Documentation

static struct wpabuf* ndef_build_record ( u8  flags,
void *  type,
u8  type_length,
void *  id,
u8  id_length,
void *  payload,
u32  payload_length 
) [static, read]

Definition at line 104 of file ndef.c.

struct wpabuf* ndef_build_wifi ( struct wpabuf buf) [read]

Definition at line 169 of file ndef.c.

static int ndef_parse_record ( u8 *  data,
u32  size,
struct ndef_record record 
) [static]

Definition at line 40 of file ndef.c.

static struct wpabuf* ndef_parse_records ( struct wpabuf buf,
int(*)(struct ndef_record *)  filter 
) [static, read]

Definition at line 81 of file ndef.c.

struct wpabuf* ndef_parse_wifi ( struct wpabuf buf) [read]

Definition at line 163 of file ndef.c.

static int wifi_filter ( struct ndef_record record) [static]

Definition at line 152 of file ndef.c.


Variable Documentation

char wifi_handover_type[] = "application/vnd.wfa.wsc" [static]

Definition at line 38 of file ndef.c.



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:24