Harald Welte | 4f361fc | 2009-02-15 15:32:53 +0000 | [diff] [blame] | 1 | #ifndef _IPACCESS_H |
| 2 | #define _IPACCESS_H |
| 3 | |
| 4 | struct ipaccess_head { |
| 5 | u_int8_t zero; |
| 6 | u_int8_t len; |
| 7 | u_int8_t proto; |
| 8 | u_int8_t data[0]; |
| 9 | } __attribute__ ((packed)); |
| 10 | |
| 11 | enum ipaccess_proto { |
| 12 | IPAC_PROTO_RSL = 0x00, |
| 13 | IPAC_PROTO_IPACCESS = 0xfe, |
| 14 | IPAC_PROTO_OML = 0xff, |
| 15 | }; |
| 16 | |
| 17 | enum ipaccess_msgtype { |
| 18 | IPAC_MSGT_PING = 0x00, |
| 19 | IPAC_MSGT_PONG = 0x01, |
| 20 | IPAC_MSGT_ID_GET = 0x04, |
| 21 | IPAC_MSGT_ID_RESP = 0x05, |
| 22 | IPAC_MSGT_ID_ACK = 0x06, |
| 23 | }; |
| 24 | |
| 25 | enum ipaccess_id_tags { |
| 26 | IPAC_IDTAG_SERNR = 0x00, |
| 27 | IPAC_IDTAG_UNITNAME = 0x01, |
| 28 | IPAC_IDTAG_LOCATION1 = 0x02, |
| 29 | IPAC_IDTAG_LOCATION2 = 0x03, |
| 30 | IPAC_IDTAG_EQUIPVERS = 0x04, |
| 31 | IPAC_IDTAG_SWVERSION = 0x05, |
| 32 | IPAC_IDTAG_IPADDR = 0x06, |
| 33 | IPAC_IDTAG_MACADDR = 0x07, |
| 34 | IPAC_IDTAG_UNIT = 0x08, |
| 35 | }; |
| 36 | |
| 37 | #endif /* _IPACCESS_H */ |