about summary refs log tree commit diff stats
path: root/src/libwifi/gen/management/authentication.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libwifi/gen/management/authentication.h')
-rw-r--r--src/libwifi/gen/management/authentication.h31
1 files changed, 19 insertions, 12 deletions
diff --git a/src/libwifi/gen/management/authentication.h b/src/libwifi/gen/management/authentication.h index 75e8dcf..5468c5f 100644 --- a/src/libwifi/gen/management/authentication.h +++ b/src/libwifi/gen/management/authentication.h
@@ -24,7 +24,7 @@
24 * Calculate the length of a given libwifi_auth 24 * Calculate the length of a given libwifi_auth
25 * 25 *
26 * @param auth A libwifi_auth 26 * @param auth A libwifi_auth
27 * @return The length of the given auth 27 * @return The length of the given auth
28 */ 28 */
29size_t libwifi_get_auth_length(struct libwifi_auth *auth); 29size_t libwifi_get_auth_length(struct libwifi_auth *auth);
30 30
@@ -34,23 +34,30 @@ size_t libwifi_get_auth_length(struct libwifi_auth *auth);
34 * A generated libwifi auth can be "dumped" into a buffer for packet injection 34 * A generated libwifi auth can be "dumped" into a buffer for packet injection
35 * via the libwifi_dump_auth. 35 * via the libwifi_dump_auth.
36 * 36 *
37 * @param auth A libwifi_auth 37 * @param auth A libwifi_auth
38 * @param receiver The receiver MAC address, aka address 1 38 * @param receiver The receiver MAC address, aka address 1
39 * @param transmitter The source MAC address, aka address 2 39 * @param transmitter The source MAC address, aka address 2
40 * @param algorithm_number Algorithm type to use 40 * @param address3 The address 3 frame field value, typically the BSSID
41 * 41 * @param algorithm_number Algorithm type to use, as defined in the IEEE802.11 spec
42 * @param transaction_sequence Transaction sequence value to use
43 * @param status_code Status code to use, as defined in the IEEE802.11 spec
44 * @return Zero on success, or negative error
42 */ 45 */
43int libwifi_create_auth(struct libwifi_auth *auth, const unsigned char receiver[6], 46int libwifi_create_auth(struct libwifi_auth *auth,
44 const unsigned char transmitter[6], uint16_t algorithm_number, 47 const unsigned char receiver[6],
45 uint16_t transaction_sequence, uint16_t status_code); 48 const unsigned char transmitter[6],
49 const unsigned char address3[6],
50 uint16_t algorithm_number,
51 uint16_t transaction_sequence,
52 uint16_t status_code);
46 53
47/** 54/**
48 * Dump a libwifi_auth into a raw format for packet injection. 55 * Dump a libwifi_auth into a raw format for packet injection.
49 * 56 *
50 * @param auth A libwifi_auth 57 * @param auth A libwifi_auth
51 * @param buf The output buffer for the frame data 58 * @param buf The output buffer for the frame data
52 * @param buf_len The length of the output buffer 59 * @param buf_len The length of the output buffer
53 * @return The length of the dumped auth 60 * @return The length of the dumped auth, or negative error
54 */ 61 */
55size_t libwifi_dump_auth(struct libwifi_auth *auth, unsigned char *buf, size_t buf_len); 62size_t libwifi_dump_auth(struct libwifi_auth *auth, unsigned char *buf, size_t buf_len);
56 63