Daniel Willmann | 4bcc1c3 | 2011-01-06 09:31:14 +0100 | [diff] [blame] | 1 | The protocol for the control interface is wrapped inside the ip.access header |
| 2 | with the IPAC_PROTO_OSMO protocol ID (0xee). Inside the ip.access header is |
| 3 | a struct ipaccess_head_ext with protocol ID 0x00 which indicates the control |
| 4 | interface. |
| 5 | |
| 6 | After that the actual protocol is text based: |
| 7 | |
| 8 | * Getting the value of a variable |
| 9 | -> GET <id> <var> |
| 10 | <- GET_REPLY <id> <var> <val> |
| 11 | or ERROR <id> <reason> |
| 12 | |
| 13 | * Setting the value of a variable |
| 14 | -> SET <id> <var> <val> |
| 15 | <- SET_REPLY <id> <var> <val> |
| 16 | or ERROR <id> <reason> |
| 17 | |
| 18 | * A value changes which triggers a trap |
| 19 | <- TRAP <var> <val> |
| 20 | |
| 21 | <id> needs to be unique within a connection. '0' is not allowed |