File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / coova-chilli / src / cmdsock.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 22:48:25 2012 UTC (13 years, 1 month ago) by misho
Branches: coova-chilli, MAIN
CVS tags: v1_0_12, HEAD
coova-chilli

    1: #ifndef CMDSOCK
    2: #define CMDSOCK
    3: 
    4: #define  CMDSOCK_DHCP_LIST      0
    5: #define  CMDSOCK_DHCP_RELEASE   1
    6: #define  CMDSOCK_LIST           2
    7: #define  CMDSOCK_SHOW           3
    8: #define  CMDSOCK_AUTHORIZE      4
    9: #define  CMDSOCK_DHCP_DROP      5
   10: #define  CMDSOCK_ROUTE          6
   11: #define  CMDSOCK_ROUTE_SET      7
   12: #define  CMDSOCK_OPT_JSON      (1)
   13: 
   14: #include "pkt.h"
   15: #include "session.h"
   16: 
   17: struct cmdsock_request { 
   18:   uint16_t type;
   19:   uint16_t options;
   20:   union {
   21:     unsigned char mac[PKT_ETH_ALEN];
   22:     struct cmdsock_session {
   23:       struct in_addr ip;
   24:       char username[256];
   25:       char sessionid[17];
   26:       struct session_params params;
   27:     } sess;
   28:   } data;
   29: }  __attribute__((packed));
   30: 
   31: typedef struct cmdsock_request CMDSOCK_REQUEST;
   32: 
   33: #endif /* CMDSOCK */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>