146 | | The function, \texttt{int mac\_append\_params (struct mac\_ifinfo\_list *if\_ptr, unsigned char direction, int argc, ...)}, is used to request the driver to append interface parameter information, specified by the fourth argument onwards. The first argument is the pointer to the struct mac\_ifinfo\_list that specifies the interface to which, a call to this function, applies. All outgoing/incoming frames on the specified interface will have the specified parameters appended to them. The appending of parameters can also be turned off. The second argument is a variable, direction, that indicates whether parameters should be appended on outgoing and/or incoming frames. The third argument is the number of arguments that follow after this one. Each argument that follows corresponds to the key of a parameter that needs to be appended. |
| 146 | The function, int mac_append_params (struct mac_ifinfo_list *if_ptr, unsigned char direction, int argc, ...), is used to request the driver to append interface parameter information, specified by the fourth argument onwards. The first argument is the pointer to the struct mac_ifinfo_list that specifies the interface to which, a call to this function, applies. All outgoing/incoming frames on the specified interface will have the specified parameters appended to them. The appending of parameters can also be turned off. The second argument is a variable, direction, that indicates whether parameters should be appended on outgoing and/or incoming frames. The third argument is the number of arguments that follow after this one. Each argument that follows corresponds to the key of a parameter that needs to be appended. |
150 | | The function, \texttt{int mac\_promisc\_recv (unsigned char **frame, unsigned short |
151 | | *frame\_len, unsigned char **send\_params, unsigned char **recv\_params, struct mac\_ |
152 | | ifinfo\_list *q)}, is used to receive an 802.11 frame, in RFMON mode, on an interface |
153 | | specified by the user, and retrieve pointers to the frame, length and parameters. |
154 | | Its arguments include pointers to store the entire frame, length of the frame, sending side |
155 | | parameters that have been appended, receiving side parameters that have been appended |
156 | | and the structure that specifies the interface to which a call to this function applies. \newline |
| 150 | The function, int mac_promisc_recv (unsigned char **frame, unsigned short *frame_len, unsigned char **send_params, unsigned char **recv_params, struct mac_ifinfo_list *q)}, is used to receive an 802.11 frame, in RFMON mode, on an interface specified by the user, and retrieve pointers to the frame, length and parameters. Its arguments include pointers to store the entire frame, length of the frame, sending side |
| 151 | parameters that have been appended, receiving side parameters that have been appended and the structure that specifies the interface to which a call to this function applies. |