Logo Search packages:      
Sourcecode: wireshark version File versions

BOOL AirpcapWrite ( PAirpcapHandle  AdapterHandle,
PCHAR  TxPacket,
ULONG  PacketLen 
)

Transmits a packet.

Parameters:
AdapterHandle Handle to the adapter.
TxPacket Pointer to a buffer that contains the packet to be transmitted.
PacketLen Length of the buffer pointed by the TxPacket argument, in bytes.
Returns:
TRUE on success.
The packet will be transmitted on the channel the device is currently set. To change the device adapter, use the AirpcapSetDeviceChannel() function.

If the linktype of the adapter is AIRPCAP_LT_802_11, the buffer pointed by TxPacket should contain just the 802.11 packet, without additional information. The packet will be transmitted at 1Mbps.

If the linktype of the adapter is AIRPCAP_LT_802_11_PLUS_RADIO, the buffer pointed by TxPacket should contain a radiotap header followed by the 802.11 packet. AirpcapWrite will use the rate information in the radiotap header when transmitting the packet.


Generated by  Doxygen 1.6.0   Back to index