6 for(
int i = 0 ; i < 6 ; i++)
10 GnAddr::GnAddr(quint8 manually, quint8 stationType, quint16 stationCountryCode, quint8 *mid)
15 for(
int i = 0 ; i < 6 ; i++)
22 for(
int i = 0 ; i < 6 ; i++)
29 for(
int i = 0 ; i < 6 ; i++)
41 for(
int i = 0 ; i < 6 ; i++)
49 for(
int i=0; i<6; i++)
60 for(
int i=0; i<6; i++)
62 m_mid[i] = *(packet + offset);
72 QDataStream ds(&hex, QIODevice::WriteOnly);
75 for(
int i = 0 ; i < 6 ; i++)
quint8 manually() const
manually Manually field getter (1 bit).
quint16 m_StationType_StationCountryCode
setMID
quint8 * mid()
mid MID field getter.
quint16 MStationTypeCountryCode() const
MStationTypeCountryCode Manually StationType CountryCode field getter.
quint64 extract(uchar *packet)
extract Fill the GnAddr with values contained in the packet.
quint16 stationType_StationCountryCode
QByteArray toHex()
toHex Create a QByteArray containing the hexadecimal format of the GnAddr.
quint64 get_UINT16(u_char *field, quint16 *uint16)
get_INT64 Extract an integer encoded in 64 bits from a byte array.
quint16 stationCountryCode() const
stationCountryCode Station Country Code field getter (10 bits).
quint8 stationType() const
stationType Station Type field getter (5 bits).
GnAddr()
GnAddr Default constructor.
The sniff_gnAddr_t structure is the C style of the class.
bool operator==(const GnAddr &g2) const
operator == Overload of the == operator.