eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

control.h (1485B)


      1 #ifndef EIWD_CONTROL_PROTOCOL_H
      2 #define EIWD_CONTROL_PROTOCOL_H
      3 
      4 /*
      5  * One request a connection, answered by packets of text each ended by a NUL,
      6  * and a packet with nothing in it to end the answer. A request's words are
      7  * separated by a tab, so a network's name may hold spaces.
      8  *
      9  *   ping!                           pong!
     10  *   device list                     a wireless interface a packet
     11  *   status                          "state ssid signal" of the first one,
     12  *                                   state being connected, connecting,
     13  *                                   disconnecting, roaming or disconnected,
     14  *                                   signal in dBm, ssid empty when none
     15  *   networks                        "ssid security signal flag" a packet,
     16  *                                   strongest first; security is open, wep,
     17  *                                   psk or 8021x, flag connected, known or
     18  *                                   empty
     19  *   connect <ssid> [passphrase]     ok, or "error why". a passphrase is
     20  *                                   kept as the network's own once it works
     21  *   disconnect                      ok, or "error why"
     22  */
     23 #define CONTROL_PING "ping!"
     24 #define CONTROL_PONG "pong!"
     25 #define CONTROL_DEVICE_LIST "device list"
     26 #define CONTROL_STATUS "status"
     27 #define CONTROL_NETWORKS "networks"
     28 #define CONTROL_CONNECT "connect"
     29 #define CONTROL_DISCONNECT "disconnect"
     30 #define CONTROL_REQUEST_MAX 512
     31 #define CONTROL_REPLY_MAX 256
     32 
     33 #endif