libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
tag_iterator.h File Reference
#include "../misc/byteswap.h"
#include "frame.h"
#include "tag.h"
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  libwifi_tag_iterator
 A libwifi_tag_iterator is used to iterate through a list of tagged parameters in a wifi frame. More...


int libwifi_tag_iterator_init (struct libwifi_tag_iterator *it, const void *tags_start, size_t data_len)
 Initialise a libwifi frame tag iterator. More...
int libwifi_tag_iterator_next (struct libwifi_tag_iterator *it)
 Iterate towards the next tagged parameter in a libwifi tag iterator. More...

Function Documentation

◆ libwifi_tag_iterator_init()

int libwifi_tag_iterator_init ( struct libwifi_tag_iterator it,
const void *  tags_start,
size_t  data_len 

Initialise a libwifi frame tag iterator.

itA libwifi tag iterator struct
tags_startThe beginning of a frame's tag data
data_lenThe total length of the frame's tag data
negative number on error, zero on success

Definition at line 21 of file tag_iterator.c.

◆ libwifi_tag_iterator_next()

int libwifi_tag_iterator_next ( struct libwifi_tag_iterator it)

Iterate towards the next tagged parameter in a libwifi tag iterator.

Alibwifi tag iterator sturct, after being initalised
The tag number of the next tag

Definition at line 31 of file tag_iterator.c.