libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
common.h
Go to the documentation of this file.
1/* Copyright 2021 The libwifi Authors
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#ifndef LIBWIFI_PARSE_MGMT_COMMON_H
17#define LIBWIFI_PARSE_MGMT_COMMON_H
18
19#include "../../core/frame/management/common.h"
20#include "../../core/frame/tag_iterator.h"
21#include "../../core/misc/security.h"
22
32void libwifi_handle_ssid_tag(void *target, int target_type, const char *ssid, int ssid_len);
33
41int libwifi_bss_handle_rsn_tag(struct libwifi_bss *bss, const unsigned char *rsn_data, int rsn_len);
42
50int libwifi_bss_handle_msft_tag(struct libwifi_bss *bss, const unsigned char *msft_data, int msft_len);
51
60
69
70#endif /* LIBWIFI_PARSE_MGMT_COMMON_H */
int libwifi_bss_handle_rsn_tag(struct libwifi_bss *bss, const unsigned char *rsn_data, int rsn_len)
A helper function to handle the parsing of the RSN IE.
Definition: common.c:68
int libwifi_bss_tag_parser(struct libwifi_bss *bss, struct libwifi_tag_iterator *it)
A helper function to iterate through common tags found in a libwifi_bss.
Definition: common.c:139
int libwifi_sta_tag_parser(struct libwifi_sta *sta, struct libwifi_tag_iterator *it)
A helper function to iterate through common tags found in a libwifi_sta.
Definition: common.c:177
int libwifi_bss_handle_msft_tag(struct libwifi_bss *bss, const unsigned char *msft_data, int msft_len)
A helper function to handle the parsing of the Microsoft Vendor IE.
Definition: common.c:102
void libwifi_handle_ssid_tag(void *target, int target_type, const char *ssid, int ssid_len)
A helper function to set the SSID of a libwifi_bss, as well as check if it is hidden or not.
Definition: common.c:31
A libwifi_tag_iterator is used to iterate through a list of tagged parameters in a wifi frame.
Definition: tag_iterator.h:28