-rw-r--r-- | libopie2/opienet/opcap.cpp | 13 | ||||
-rw-r--r-- | libopie2/opienet/opcap.h | 2 | ||||
-rw-r--r-- | libopie2/opienet/opienet.pro | 2 |
3 files changed, 13 insertions, 4 deletions
diff --git a/libopie2/opienet/opcap.cpp b/libopie2/opienet/opcap.cpp index 012c0a3..4d786f5 100644 --- a/libopie2/opienet/opcap.cpp +++ b/libopie2/opienet/opcap.cpp | |||
@@ -735,200 +735,209 @@ OWaveLanManagementPacket::OWaveLanManagementPacket( const unsigned char* end, co | |||
735 | case E_DS: new OWaveLanManagementDS( end, (struct ds_t*) ptr, this ); break; | 735 | case E_DS: new OWaveLanManagementDS( end, (struct ds_t*) ptr, this ); break; |
736 | case E_RATES: new OWaveLanManagementRates( end, (struct rates_t*) ptr, this ); break; | 736 | case E_RATES: new OWaveLanManagementRates( end, (struct rates_t*) ptr, this ); break; |
737 | case E_CF: new OWaveLanManagementCF( end, (struct cf_t*) ptr, this ); break; | 737 | case E_CF: new OWaveLanManagementCF( end, (struct cf_t*) ptr, this ); break; |
738 | case E_TIM: new OWaveLanManagementTim( end, (struct tim_t*) ptr, this ); break; | 738 | case E_TIM: new OWaveLanManagementTim( end, (struct tim_t*) ptr, this ); break; |
739 | case E_IBSS: new OWaveLanManagementIBSS( end, (struct ibss_t*) ptr, this ); break; | 739 | case E_IBSS: new OWaveLanManagementIBSS( end, (struct ibss_t*) ptr, this ); break; |
740 | case E_CHALLENGE: new OWaveLanManagementChallenge( end, (struct challenge_t*) ptr, this ); break; | 740 | case E_CHALLENGE: new OWaveLanManagementChallenge( end, (struct challenge_t*) ptr, this ); break; |
741 | } | 741 | } |
742 | ptr+= ( ( struct ssid_t* ) ptr )->length; // skip length of tagged value | 742 | ptr+= ( ( struct ssid_t* ) ptr )->length; // skip length of tagged value |
743 | ptr+= 2; // skip tag ID and length | 743 | ptr+= 2; // skip tag ID and length |
744 | } | 744 | } |
745 | } | 745 | } |
746 | 746 | ||
747 | 747 | ||
748 | OWaveLanManagementPacket::~OWaveLanManagementPacket() | 748 | OWaveLanManagementPacket::~OWaveLanManagementPacket() |
749 | { | 749 | { |
750 | } | 750 | } |
751 | 751 | ||
752 | 752 | ||
753 | QString OWaveLanManagementPacket::managementType() const | 753 | QString OWaveLanManagementPacket::managementType() const |
754 | { | 754 | { |
755 | switch ( FC_SUBTYPE( EXTRACT_LE_16BITS( &_header->fc ) ) ) | 755 | switch ( FC_SUBTYPE( EXTRACT_LE_16BITS( &_header->fc ) ) ) |
756 | { | 756 | { |
757 | case ST_ASSOC_REQUEST: return "AssociationRequest"; break; | 757 | case ST_ASSOC_REQUEST: return "AssociationRequest"; break; |
758 | case ST_ASSOC_RESPONSE: return "AssociationResponse"; break; | 758 | case ST_ASSOC_RESPONSE: return "AssociationResponse"; break; |
759 | case ST_REASSOC_REQUEST: return "ReassociationRequest"; break; | 759 | case ST_REASSOC_REQUEST: return "ReassociationRequest"; break; |
760 | case ST_REASSOC_RESPONSE: return "ReassociationResponse"; break; | 760 | case ST_REASSOC_RESPONSE: return "ReassociationResponse"; break; |
761 | case ST_PROBE_REQUEST: return "ProbeRequest"; break; | 761 | case ST_PROBE_REQUEST: return "ProbeRequest"; break; |
762 | case ST_PROBE_RESPONSE: return "ProbeResponse"; break; | 762 | case ST_PROBE_RESPONSE: return "ProbeResponse"; break; |
763 | case ST_BEACON: return "Beacon"; break; | 763 | case ST_BEACON: return "Beacon"; break; |
764 | case ST_ATIM: return "Atim"; break; | 764 | case ST_ATIM: return "Atim"; break; |
765 | case ST_DISASSOC: return "Disassociation"; break; | 765 | case ST_DISASSOC: return "Disassociation"; break; |
766 | case ST_AUTH: return "Authentication"; break; | 766 | case ST_AUTH: return "Authentication"; break; |
767 | case ST_DEAUTH: return "Deathentication"; break; | 767 | case ST_DEAUTH: return "Deathentication"; break; |
768 | default: owarn << "OWaveLanManagementPacket::managementType(): unhandled subtype " << FC_SUBTYPE( EXTRACT_LE_16BITS( &_header->fc ) ) << oendl; return "Unknown"; | 768 | default: owarn << "OWaveLanManagementPacket::managementType(): unhandled subtype " << FC_SUBTYPE( EXTRACT_LE_16BITS( &_header->fc ) ) << oendl; return "Unknown"; |
769 | } | 769 | } |
770 | } | 770 | } |
771 | 771 | ||
772 | 772 | ||
773 | int OWaveLanManagementPacket::beaconInterval() const | 773 | int OWaveLanManagementPacket::beaconInterval() const |
774 | { | 774 | { |
775 | return EXTRACT_LE_16BITS( &_body->beacon_interval ); | 775 | return EXTRACT_LE_16BITS( &_body->beacon_interval ); |
776 | } | 776 | } |
777 | 777 | ||
778 | 778 | ||
779 | int OWaveLanManagementPacket::capabilities() const | 779 | int OWaveLanManagementPacket::capabilities() const |
780 | { | 780 | { |
781 | return EXTRACT_LE_16BITS( &_body->capability_info ); | 781 | return EXTRACT_LE_16BITS( &_body->capability_info ); |
782 | } | 782 | } |
783 | 783 | ||
784 | 784 | ||
785 | bool OWaveLanManagementPacket::canESS() const | 785 | bool OWaveLanManagementPacket::canESS() const |
786 | { | 786 | { |
787 | return CAPABILITY_ESS( EXTRACT_LE_16BITS( &_body->capability_info ) ); | 787 | return CAPABILITY_ESS( EXTRACT_LE_16BITS( &_body->capability_info ) ); |
788 | } | 788 | } |
789 | 789 | ||
790 | 790 | ||
791 | bool OWaveLanManagementPacket::canIBSS() const | 791 | bool OWaveLanManagementPacket::canIBSS() const |
792 | { | 792 | { |
793 | return CAPABILITY_IBSS( EXTRACT_LE_16BITS( &_body->capability_info ) ); | 793 | return CAPABILITY_IBSS( EXTRACT_LE_16BITS( &_body->capability_info ) ); |
794 | } | 794 | } |
795 | 795 | ||
796 | 796 | ||
797 | bool OWaveLanManagementPacket::canCFP() const | 797 | bool OWaveLanManagementPacket::canCFP() const |
798 | { | 798 | { |
799 | return CAPABILITY_CFP( EXTRACT_LE_16BITS( &_body->capability_info ) ); | 799 | return CAPABILITY_CFP( EXTRACT_LE_16BITS( &_body->capability_info ) ); |
800 | } | 800 | } |
801 | 801 | ||
802 | 802 | ||
803 | bool OWaveLanManagementPacket::canCFP_REQ() const | 803 | bool OWaveLanManagementPacket::canCFP_REQ() const |
804 | { | 804 | { |
805 | return CAPABILITY_CFP_REQ( EXTRACT_LE_16BITS( &_body->capability_info ) ); | 805 | return CAPABILITY_CFP_REQ( EXTRACT_LE_16BITS( &_body->capability_info ) ); |
806 | } | 806 | } |
807 | 807 | ||
808 | 808 | ||
809 | bool OWaveLanManagementPacket::canPrivacy() const | 809 | bool OWaveLanManagementPacket::canPrivacy() const |
810 | { | 810 | { |
811 | return CAPABILITY_PRIVACY( EXTRACT_LE_16BITS( &_body->capability_info ) ); | 811 | return CAPABILITY_PRIVACY( EXTRACT_LE_16BITS( &_body->capability_info ) ); |
812 | } | 812 | } |
813 | 813 | ||
814 | 814 | ||
815 | /*====================================================================================== | 815 | /*====================================================================================== |
816 | * OWaveLanManagementSSID | 816 | * OWaveLanManagementSSID |
817 | *======================================================================================*/ | 817 | *======================================================================================*/ |
818 | 818 | ||
819 | OWaveLanManagementSSID::OWaveLanManagementSSID( const unsigned char* end, const struct ssid_t* data, QObject* parent ) | 819 | OWaveLanManagementSSID::OWaveLanManagementSSID( const unsigned char* end, const struct ssid_t* data, QObject* parent ) |
820 | :QObject( parent, "802.11 SSID" ), _data( data ) | 820 | :QObject( parent, "802.11 SSID" ), _data( data ) |
821 | { | 821 | { |
822 | odebug << "OWaveLanManagementSSID()" << oendl; | 822 | odebug << "OWaveLanManagementSSID()" << oendl; |
823 | } | 823 | } |
824 | 824 | ||
825 | 825 | ||
826 | OWaveLanManagementSSID::~OWaveLanManagementSSID() | 826 | OWaveLanManagementSSID::~OWaveLanManagementSSID() |
827 | { | 827 | { |
828 | } | 828 | } |
829 | 829 | ||
830 | 830 | ||
831 | QString OWaveLanManagementSSID::ID() const | 831 | QString OWaveLanManagementSSID::ID( bool decloak ) const |
832 | { | 832 | { |
833 | int length = _data->length; | 833 | int length = _data->length; |
834 | if ( length > 32 ) length = 32; | 834 | if ( length > 32 ) length = 32; |
835 | char essid[length+1]; | 835 | char essid[length+1]; |
836 | memcpy( &essid, &_data->ssid, length ); | 836 | memcpy( &essid, &_data->ssid, length ); |
837 | essid[length] = 0x0; | 837 | essid[length] = 0x0; |
838 | return essid; | 838 | if ( !decloak || length < 2 || essid[0] != '\0' ) return essid; |
839 | odebug << "OWaveLanManagementSSID:ID(): SSID is cloaked - decloaking..." << oendl; | ||
840 | |||
841 | QString decloakedID; | ||
842 | for ( int i = 1; i < length; ++i ) | ||
843 | { | ||
844 | if ( essid[i] >= 32 && essid[i] <= 126 ) decloakedID.append( essid[i] ); | ||
845 | else decloakedID.append( '.' ); | ||
846 | } | ||
847 | return decloakedID; | ||
839 | } | 848 | } |
840 | 849 | ||
841 | 850 | ||
842 | /*====================================================================================== | 851 | /*====================================================================================== |
843 | * OWaveLanManagementRates | 852 | * OWaveLanManagementRates |
844 | *======================================================================================*/ | 853 | *======================================================================================*/ |
845 | 854 | ||
846 | OWaveLanManagementRates::OWaveLanManagementRates( const unsigned char* end, const struct rates_t* data, QObject* parent ) | 855 | OWaveLanManagementRates::OWaveLanManagementRates( const unsigned char* end, const struct rates_t* data, QObject* parent ) |
847 | :QObject( parent, "802.11 Rates" ), _data( data ) | 856 | :QObject( parent, "802.11 Rates" ), _data( data ) |
848 | { | 857 | { |
849 | odebug << "OWaveLanManagementRates()" << oendl; | 858 | odebug << "OWaveLanManagementRates()" << oendl; |
850 | } | 859 | } |
851 | 860 | ||
852 | 861 | ||
853 | OWaveLanManagementRates::~OWaveLanManagementRates() | 862 | OWaveLanManagementRates::~OWaveLanManagementRates() |
854 | { | 863 | { |
855 | } | 864 | } |
856 | 865 | ||
857 | /*====================================================================================== | 866 | /*====================================================================================== |
858 | * OWaveLanManagementCF | 867 | * OWaveLanManagementCF |
859 | *======================================================================================*/ | 868 | *======================================================================================*/ |
860 | 869 | ||
861 | OWaveLanManagementCF::OWaveLanManagementCF( const unsigned char* end, const struct cf_t* data, QObject* parent ) | 870 | OWaveLanManagementCF::OWaveLanManagementCF( const unsigned char* end, const struct cf_t* data, QObject* parent ) |
862 | :QObject( parent, "802.11 CF" ), _data( data ) | 871 | :QObject( parent, "802.11 CF" ), _data( data ) |
863 | { | 872 | { |
864 | odebug << "OWaveLanManagementCF()" << oendl; | 873 | odebug << "OWaveLanManagementCF()" << oendl; |
865 | } | 874 | } |
866 | 875 | ||
867 | 876 | ||
868 | OWaveLanManagementCF::~OWaveLanManagementCF() | 877 | OWaveLanManagementCF::~OWaveLanManagementCF() |
869 | { | 878 | { |
870 | } | 879 | } |
871 | 880 | ||
872 | /*====================================================================================== | 881 | /*====================================================================================== |
873 | * OWaveLanManagementFH | 882 | * OWaveLanManagementFH |
874 | *======================================================================================*/ | 883 | *======================================================================================*/ |
875 | 884 | ||
876 | OWaveLanManagementFH::OWaveLanManagementFH( const unsigned char* end, const struct fh_t* data, QObject* parent ) | 885 | OWaveLanManagementFH::OWaveLanManagementFH( const unsigned char* end, const struct fh_t* data, QObject* parent ) |
877 | :QObject( parent, "802.11 FH" ), _data( data ) | 886 | :QObject( parent, "802.11 FH" ), _data( data ) |
878 | { | 887 | { |
879 | odebug << "OWaveLanManagementFH()" << oendl; | 888 | odebug << "OWaveLanManagementFH()" << oendl; |
880 | } | 889 | } |
881 | 890 | ||
882 | 891 | ||
883 | OWaveLanManagementFH::~OWaveLanManagementFH() | 892 | OWaveLanManagementFH::~OWaveLanManagementFH() |
884 | { | 893 | { |
885 | } | 894 | } |
886 | 895 | ||
887 | /*====================================================================================== | 896 | /*====================================================================================== |
888 | * OWaveLanManagementDS | 897 | * OWaveLanManagementDS |
889 | *======================================================================================*/ | 898 | *======================================================================================*/ |
890 | 899 | ||
891 | OWaveLanManagementDS::OWaveLanManagementDS( const unsigned char* end, const struct ds_t* data, QObject* parent ) | 900 | OWaveLanManagementDS::OWaveLanManagementDS( const unsigned char* end, const struct ds_t* data, QObject* parent ) |
892 | :QObject( parent, "802.11 DS" ), _data( data ) | 901 | :QObject( parent, "802.11 DS" ), _data( data ) |
893 | { | 902 | { |
894 | odebug << "OWaveLanManagementDS()" << oendl; | 903 | odebug << "OWaveLanManagementDS()" << oendl; |
895 | } | 904 | } |
896 | 905 | ||
897 | 906 | ||
898 | OWaveLanManagementDS::~OWaveLanManagementDS() | 907 | OWaveLanManagementDS::~OWaveLanManagementDS() |
899 | { | 908 | { |
900 | } | 909 | } |
901 | 910 | ||
902 | 911 | ||
903 | int OWaveLanManagementDS::channel() const | 912 | int OWaveLanManagementDS::channel() const |
904 | { | 913 | { |
905 | return _data->channel; | 914 | return _data->channel; |
906 | } | 915 | } |
907 | 916 | ||
908 | /*====================================================================================== | 917 | /*====================================================================================== |
909 | * OWaveLanManagementTim | 918 | * OWaveLanManagementTim |
910 | *======================================================================================*/ | 919 | *======================================================================================*/ |
911 | 920 | ||
912 | OWaveLanManagementTim::OWaveLanManagementTim( const unsigned char* end, const struct tim_t* data, QObject* parent ) | 921 | OWaveLanManagementTim::OWaveLanManagementTim( const unsigned char* end, const struct tim_t* data, QObject* parent ) |
913 | :QObject( parent, "802.11 Tim" ), _data( data ) | 922 | :QObject( parent, "802.11 Tim" ), _data( data ) |
914 | { | 923 | { |
915 | odebug << "OWaveLanManagementTim()" << oendl; | 924 | odebug << "OWaveLanManagementTim()" << oendl; |
916 | } | 925 | } |
917 | 926 | ||
918 | 927 | ||
919 | OWaveLanManagementTim::~OWaveLanManagementTim() | 928 | OWaveLanManagementTim::~OWaveLanManagementTim() |
920 | { | 929 | { |
921 | } | 930 | } |
922 | 931 | ||
923 | /*====================================================================================== | 932 | /*====================================================================================== |
924 | * OWaveLanManagementIBSS | 933 | * OWaveLanManagementIBSS |
925 | *======================================================================================*/ | 934 | *======================================================================================*/ |
926 | 935 | ||
927 | OWaveLanManagementIBSS::OWaveLanManagementIBSS( const unsigned char* end, const struct ibss_t* data, QObject* parent ) | 936 | OWaveLanManagementIBSS::OWaveLanManagementIBSS( const unsigned char* end, const struct ibss_t* data, QObject* parent ) |
928 | :QObject( parent, "802.11 IBSS" ), _data( data ) | 937 | :QObject( parent, "802.11 IBSS" ), _data( data ) |
929 | { | 938 | { |
930 | odebug << "OWaveLanManagementIBSS()" << oendl; | 939 | odebug << "OWaveLanManagementIBSS()" << oendl; |
931 | } | 940 | } |
932 | 941 | ||
933 | 942 | ||
934 | OWaveLanManagementIBSS::~OWaveLanManagementIBSS() | 943 | OWaveLanManagementIBSS::~OWaveLanManagementIBSS() |
diff --git a/libopie2/opienet/opcap.h b/libopie2/opienet/opcap.h index b373c56..f5dc5c0 100644 --- a/libopie2/opienet/opcap.h +++ b/libopie2/opienet/opcap.h | |||
@@ -156,193 +156,193 @@ class OEthernetPacket : public QObject | |||
156 | OMacAddress destinationAddress() const; | 156 | OMacAddress destinationAddress() const; |
157 | int type() const; | 157 | int type() const; |
158 | 158 | ||
159 | private: | 159 | private: |
160 | const struct ether_header* _ether; | 160 | const struct ether_header* _ether; |
161 | }; | 161 | }; |
162 | 162 | ||
163 | /*====================================================================================== | 163 | /*====================================================================================== |
164 | * OPrismHeaderPacket - DLT_PRISM_HEADER frame | 164 | * OPrismHeaderPacket - DLT_PRISM_HEADER frame |
165 | *======================================================================================*/ | 165 | *======================================================================================*/ |
166 | 166 | ||
167 | class OPrismHeaderPacket : public QObject | 167 | class OPrismHeaderPacket : public QObject |
168 | { | 168 | { |
169 | Q_OBJECT | 169 | Q_OBJECT |
170 | 170 | ||
171 | public: | 171 | public: |
172 | OPrismHeaderPacket( const unsigned char*, const struct prism_hdr*, QObject* parent = 0 ); | 172 | OPrismHeaderPacket( const unsigned char*, const struct prism_hdr*, QObject* parent = 0 ); |
173 | virtual ~OPrismHeaderPacket(); | 173 | virtual ~OPrismHeaderPacket(); |
174 | 174 | ||
175 | unsigned int signalStrength() const; | 175 | unsigned int signalStrength() const; |
176 | 176 | ||
177 | private: | 177 | private: |
178 | const struct prism_hdr* _header; | 178 | const struct prism_hdr* _header; |
179 | }; | 179 | }; |
180 | 180 | ||
181 | /*====================================================================================== | 181 | /*====================================================================================== |
182 | * OWaveLanPacket - DLT_IEEE802_11 frame | 182 | * OWaveLanPacket - DLT_IEEE802_11 frame |
183 | *======================================================================================*/ | 183 | *======================================================================================*/ |
184 | 184 | ||
185 | class OWaveLanPacket : public QObject | 185 | class OWaveLanPacket : public QObject |
186 | { | 186 | { |
187 | Q_OBJECT | 187 | Q_OBJECT |
188 | 188 | ||
189 | public: | 189 | public: |
190 | OWaveLanPacket( const unsigned char*, const struct ieee_802_11_header*, QObject* parent = 0 ); | 190 | OWaveLanPacket( const unsigned char*, const struct ieee_802_11_header*, QObject* parent = 0 ); |
191 | virtual ~OWaveLanPacket(); | 191 | virtual ~OWaveLanPacket(); |
192 | 192 | ||
193 | int duration() const; | 193 | int duration() const; |
194 | bool fromDS() const; | 194 | bool fromDS() const; |
195 | bool toDS() const; | 195 | bool toDS() const; |
196 | virtual OMacAddress macAddress1() const; | 196 | virtual OMacAddress macAddress1() const; |
197 | virtual OMacAddress macAddress2() const; | 197 | virtual OMacAddress macAddress2() const; |
198 | virtual OMacAddress macAddress3() const; | 198 | virtual OMacAddress macAddress3() const; |
199 | virtual OMacAddress macAddress4() const; | 199 | virtual OMacAddress macAddress4() const; |
200 | bool usesPowerManagement() const; | 200 | bool usesPowerManagement() const; |
201 | int type() const; | 201 | int type() const; |
202 | int subType() const; | 202 | int subType() const; |
203 | int version() const; | 203 | int version() const; |
204 | bool usesWep() const; | 204 | bool usesWep() const; |
205 | 205 | ||
206 | private: | 206 | private: |
207 | const struct ieee_802_11_header* _wlanhdr; | 207 | const struct ieee_802_11_header* _wlanhdr; |
208 | }; | 208 | }; |
209 | 209 | ||
210 | 210 | ||
211 | /*====================================================================================== | 211 | /*====================================================================================== |
212 | * OWaveLanManagementPacket - type: management (T_MGMT) | 212 | * OWaveLanManagementPacket - type: management (T_MGMT) |
213 | *======================================================================================*/ | 213 | *======================================================================================*/ |
214 | 214 | ||
215 | class OWaveLanManagementPacket : public QObject | 215 | class OWaveLanManagementPacket : public QObject |
216 | { | 216 | { |
217 | Q_OBJECT | 217 | Q_OBJECT |
218 | 218 | ||
219 | public: | 219 | public: |
220 | OWaveLanManagementPacket( const unsigned char*, const struct ieee_802_11_mgmt_header*, OWaveLanPacket* parent = 0 ); | 220 | OWaveLanManagementPacket( const unsigned char*, const struct ieee_802_11_mgmt_header*, OWaveLanPacket* parent = 0 ); |
221 | virtual ~OWaveLanManagementPacket(); | 221 | virtual ~OWaveLanManagementPacket(); |
222 | 222 | ||
223 | QString managementType() const; | 223 | QString managementType() const; |
224 | 224 | ||
225 | int beaconInterval() const; | 225 | int beaconInterval() const; |
226 | int capabilities() const; // generic | 226 | int capabilities() const; // generic |
227 | 227 | ||
228 | bool canESS() const; | 228 | bool canESS() const; |
229 | bool canIBSS() const; | 229 | bool canIBSS() const; |
230 | bool canCFP() const; | 230 | bool canCFP() const; |
231 | bool canCFP_REQ() const; | 231 | bool canCFP_REQ() const; |
232 | bool canPrivacy() const; | 232 | bool canPrivacy() const; |
233 | 233 | ||
234 | private: | 234 | private: |
235 | const struct ieee_802_11_mgmt_header* _header; | 235 | const struct ieee_802_11_mgmt_header* _header; |
236 | const struct ieee_802_11_mgmt_body* _body; | 236 | const struct ieee_802_11_mgmt_body* _body; |
237 | }; | 237 | }; |
238 | 238 | ||
239 | 239 | ||
240 | /*====================================================================================== | 240 | /*====================================================================================== |
241 | * OWaveLanManagementSSID | 241 | * OWaveLanManagementSSID |
242 | *======================================================================================*/ | 242 | *======================================================================================*/ |
243 | 243 | ||
244 | class OWaveLanManagementSSID : public QObject | 244 | class OWaveLanManagementSSID : public QObject |
245 | { | 245 | { |
246 | Q_OBJECT | 246 | Q_OBJECT |
247 | 247 | ||
248 | public: | 248 | public: |
249 | OWaveLanManagementSSID( const unsigned char*, const struct ssid_t*, QObject* parent = 0 ); | 249 | OWaveLanManagementSSID( const unsigned char*, const struct ssid_t*, QObject* parent = 0 ); |
250 | virtual ~OWaveLanManagementSSID(); | 250 | virtual ~OWaveLanManagementSSID(); |
251 | 251 | ||
252 | QString ID() const; | 252 | QString ID( bool decloak = false ) const; |
253 | 253 | ||
254 | private: | 254 | private: |
255 | const struct ssid_t* _data; | 255 | const struct ssid_t* _data; |
256 | }; | 256 | }; |
257 | 257 | ||
258 | /*====================================================================================== | 258 | /*====================================================================================== |
259 | * OWaveLanManagementRates | 259 | * OWaveLanManagementRates |
260 | *======================================================================================*/ | 260 | *======================================================================================*/ |
261 | 261 | ||
262 | class OWaveLanManagementRates : public QObject | 262 | class OWaveLanManagementRates : public QObject |
263 | { | 263 | { |
264 | Q_OBJECT | 264 | Q_OBJECT |
265 | 265 | ||
266 | public: | 266 | public: |
267 | OWaveLanManagementRates( const unsigned char*, const struct rates_t*, QObject* parent = 0 ); | 267 | OWaveLanManagementRates( const unsigned char*, const struct rates_t*, QObject* parent = 0 ); |
268 | virtual ~OWaveLanManagementRates(); | 268 | virtual ~OWaveLanManagementRates(); |
269 | 269 | ||
270 | private: | 270 | private: |
271 | const struct rates_t* _data; | 271 | const struct rates_t* _data; |
272 | }; | 272 | }; |
273 | 273 | ||
274 | /*====================================================================================== | 274 | /*====================================================================================== |
275 | * OWaveLanManagementCF | 275 | * OWaveLanManagementCF |
276 | *======================================================================================*/ | 276 | *======================================================================================*/ |
277 | 277 | ||
278 | class OWaveLanManagementCF : public QObject | 278 | class OWaveLanManagementCF : public QObject |
279 | { | 279 | { |
280 | Q_OBJECT | 280 | Q_OBJECT |
281 | 281 | ||
282 | public: | 282 | public: |
283 | OWaveLanManagementCF( const unsigned char*, const struct cf_t*, QObject* parent = 0 ); | 283 | OWaveLanManagementCF( const unsigned char*, const struct cf_t*, QObject* parent = 0 ); |
284 | virtual ~OWaveLanManagementCF(); | 284 | virtual ~OWaveLanManagementCF(); |
285 | 285 | ||
286 | private: | 286 | private: |
287 | const struct cf_t* _data; | 287 | const struct cf_t* _data; |
288 | }; | 288 | }; |
289 | 289 | ||
290 | /*====================================================================================== | 290 | /*====================================================================================== |
291 | * OWaveLanManagementFH | 291 | * OWaveLanManagementFH |
292 | *======================================================================================*/ | 292 | *======================================================================================*/ |
293 | 293 | ||
294 | class OWaveLanManagementFH : public QObject | 294 | class OWaveLanManagementFH : public QObject |
295 | { | 295 | { |
296 | Q_OBJECT | 296 | Q_OBJECT |
297 | 297 | ||
298 | public: | 298 | public: |
299 | OWaveLanManagementFH( const unsigned char*, const struct fh_t*, QObject* parent = 0 ); | 299 | OWaveLanManagementFH( const unsigned char*, const struct fh_t*, QObject* parent = 0 ); |
300 | virtual ~OWaveLanManagementFH(); | 300 | virtual ~OWaveLanManagementFH(); |
301 | 301 | ||
302 | private: | 302 | private: |
303 | const struct fh_t* _data; | 303 | const struct fh_t* _data; |
304 | }; | 304 | }; |
305 | 305 | ||
306 | /*====================================================================================== | 306 | /*====================================================================================== |
307 | * OWaveLanManagementDS | 307 | * OWaveLanManagementDS |
308 | *======================================================================================*/ | 308 | *======================================================================================*/ |
309 | 309 | ||
310 | class OWaveLanManagementDS : public QObject | 310 | class OWaveLanManagementDS : public QObject |
311 | { | 311 | { |
312 | Q_OBJECT | 312 | Q_OBJECT |
313 | 313 | ||
314 | public: | 314 | public: |
315 | OWaveLanManagementDS( const unsigned char*, const struct ds_t*, QObject* parent = 0 ); | 315 | OWaveLanManagementDS( const unsigned char*, const struct ds_t*, QObject* parent = 0 ); |
316 | virtual ~OWaveLanManagementDS(); | 316 | virtual ~OWaveLanManagementDS(); |
317 | 317 | ||
318 | int channel() const; | 318 | int channel() const; |
319 | 319 | ||
320 | private: | 320 | private: |
321 | const struct ds_t* _data; | 321 | const struct ds_t* _data; |
322 | }; | 322 | }; |
323 | 323 | ||
324 | /*====================================================================================== | 324 | /*====================================================================================== |
325 | * OWaveLanManagementTim | 325 | * OWaveLanManagementTim |
326 | *======================================================================================*/ | 326 | *======================================================================================*/ |
327 | 327 | ||
328 | class OWaveLanManagementTim : public QObject | 328 | class OWaveLanManagementTim : public QObject |
329 | { | 329 | { |
330 | Q_OBJECT | 330 | Q_OBJECT |
331 | 331 | ||
332 | public: | 332 | public: |
333 | OWaveLanManagementTim( const unsigned char*, const struct tim_t*, QObject* parent = 0 ); | 333 | OWaveLanManagementTim( const unsigned char*, const struct tim_t*, QObject* parent = 0 ); |
334 | virtual ~OWaveLanManagementTim(); | 334 | virtual ~OWaveLanManagementTim(); |
335 | 335 | ||
336 | private: | 336 | private: |
337 | const struct tim_t* _data; | 337 | const struct tim_t* _data; |
338 | }; | 338 | }; |
339 | 339 | ||
340 | /*====================================================================================== | 340 | /*====================================================================================== |
341 | * OWaveLanManagementIBSS | 341 | * OWaveLanManagementIBSS |
342 | *======================================================================================*/ | 342 | *======================================================================================*/ |
343 | 343 | ||
344 | class OWaveLanManagementIBSS : public QObject | 344 | class OWaveLanManagementIBSS : public QObject |
345 | { | 345 | { |
346 | Q_OBJECT | 346 | Q_OBJECT |
347 | 347 | ||
348 | public: | 348 | public: |
diff --git a/libopie2/opienet/opienet.pro b/libopie2/opienet/opienet.pro index 2027481..cab6da6 100644 --- a/libopie2/opienet/opienet.pro +++ b/libopie2/opienet/opienet.pro | |||
@@ -1,34 +1,34 @@ | |||
1 | TEMPLATE = lib | 1 | TEMPLATE = lib |
2 | CONFIG += qt warn_on debug | 2 | CONFIG += qt warn_on debug |
3 | DESTDIR = $(OPIEDIR)/lib | 3 | DESTDIR = $(OPIEDIR)/lib |
4 | HEADERS = 802_11_user.h \ | 4 | HEADERS = 802_11_user.h \ |
5 | dhcp.h \ | 5 | dhcp.h \ |
6 | udp_ports.h \ | 6 | udp_ports.h \ |
7 | wireless.h \ | 7 | wireless.h \ |
8 | odebugmapper.h \ | 8 | odebugmapper.h \ |
9 | omanufacturerdb.h \ | 9 | omanufacturerdb.h \ |
10 | onetutils.h \ | 10 | onetutils.h \ |
11 | onetwork.h \ | 11 | onetwork.h \ |
12 | opcap.h \ | 12 | opcap.h \ |
13 | ostation.h | 13 | ostation.h |
14 | SOURCES = odebugmapper.cpp \ | 14 | SOURCES = odebugmapper.cpp \ |
15 | omanufacturerdb.cpp \ | 15 | omanufacturerdb.cpp \ |
16 | onetutils.cpp \ | 16 | onetutils.cpp \ |
17 | onetwork.cpp \ | 17 | onetwork.cpp \ |
18 | opcap.cpp \ | 18 | opcap.cpp \ |
19 | ostation.cpp | 19 | ostation.cpp |
20 | INTERFACES = | 20 | INTERFACES = |
21 | TARGET = opienet2 | 21 | TARGET = opienet2 |
22 | VERSION = 1.8.2 | 22 | VERSION = 1.8.3 |
23 | INCLUDEPATH += $(OPIEDIR)/include | 23 | INCLUDEPATH += $(OPIEDIR)/include |
24 | DEPENDPATH += $(OPIEDIR)/include | 24 | DEPENDPATH += $(OPIEDIR)/include |
25 | LIBS += -lpcap | 25 | LIBS += -lpcap |
26 | 26 | ||
27 | 27 | ||
28 | !contains( platform, x11 ) { | 28 | !contains( platform, x11 ) { |
29 | include ( $(OPIEDIR)/include.pro ) | 29 | include ( $(OPIEDIR)/include.pro ) |
30 | } | 30 | } |
31 | 31 | ||
32 | contains( platform, x11 ) { | 32 | contains( platform, x11 ) { |
33 | LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib | 33 | LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib |
34 | } | 34 | } |