~ubuntu-branches/ubuntu/precise/knemo/precise

« back to all changes in this revision

Viewing changes to src/knemod/backends/bsdbackend.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell, Pino Toscano, Mark Purcell
  • Date: 2010-02-11 14:53:44 UTC
  • mfrom: (1.1.10 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100211145344-3l3zu2q7fda55t1u
Tags: 0.6.1-1
* New upstream release

[ Pino Toscano ]
* net-tools and wireless-tools are no more used, so remove them from
  Build-Depends, Depends and Recommends.
* Exclude libiw-dev, and libnl-dev from Build-Depends for kFreeBSD and Hurd.
* Remove autotools-dev Build-Depends (knemo uses CMake as build system).
* Slightly adapt description to the usage of command line applications,
  no more done now.
* Enable the "as needed" linking.

[ Mark Purcell ]
* Remove obsolete debian/README.Debian & debian/dirs
* Add comment only debian/watch 
* Update to Standards 3.8.3 - no changes needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <QStringList>
25
25
 
26
26
#include "backendbase.h"
 
27
#include <sys/types.h>
 
28
#include <net/if.h>
 
29
#include <net80211/ieee80211_ioctl.h>
27
30
 
28
31
/**
29
32
 * This backend uses getifaddrs() and friends.
48
51
    virtual QString getDefaultRouteIface( int afInet );
49
52
 
50
53
private:
 
54
    int s;
51
55
    void updateInterfaceData( const QString& ifName, BackendData* data );
52
 
    void updateWirelessData( int fd, const QString& ifName, BackendData* data );
 
56
    void updateWirelessData( const QString& ifName, BackendData* data );
53
57
    QString formattedAddr( struct sockaddr * addr );
54
58
    QString getAddr( struct ifaddrs *ifa, AddrData& addrData );
55
59
    int getSubnet( struct ifaddrs *ifa );
56
60
    struct ifaddrs *ifaddr;
57
61
    QHash<QByteArray, QStringList>ipv6Hash;
58
62
    QStringList mProcIfInet6;
 
63
 
 
64
    int get80211( const QString &ifName, int type, void *data, int len );
 
65
    int get80211len( const QString &ifName, int type, void *data, int len, int *plen);
 
66
    int get80211id( const QString &ifName, int ix, void *data, size_t len, int *plen, int mesh );
 
67
    int get80211val( const QString &ifName, int type, int *val );
 
68
    enum ieee80211_opmode get80211opmode( const QString &ifName );
59
69
};
60
70
 
61
71
#endif // BSDBACKEND_H