~glyph/enie

d6a52d8811f4968ef23cfa7cd78adff05243255c — mycognosist 1 year, 2 months ago 84df4d5 master
Reformat examples and add license type
1 files changed, 16 insertions(+), 10 deletions(-)

M README.md
M README.md => README.md +16 -10
@@ 21,20 21,22 @@ Events are prefixed by an integer denoting event type and followed by the interf
States:

```
 0 - UP_CONNECTED
 1 - UP_DISCONNECTED
 2 - DOWN
 3 - IP_ASSIGNED
 4 - IP_DELETED
0 - UP_CONNECTED
1 - UP_DISCONNECTED
2 - DOWN
3 - IP_ASSIGNED
4 - IP_DELETED
```

Examples:

`0_wlan0_UP_CONNECTED`  
`1_wlan0_UP_DISCONNECTED`  
`2_wlan0_DOWN`  
`3_wlan0_IP_ASSIGNED_192.168.1.12`  
`4_wlan0_IP_DELETED`
```
0_wlan0_UP_CONNECTED
1_wlan0_UP_DISCONNECTED
2_wlan0_DOWN
3_wlan0_IP_ASSIGNED_192.168.1.12
4_wlan0_IP_DELETED
```

### Rationale



@@ 45,3 47,7 @@ I've been thinking about network interface state and the most efficient way to a
 - [Monitoring Linux networking state using netlink](https://olegkutkov.me/2018/02/14/monitoring-linux-networking-state-using-netlink/)
 - [Manipulating the Networking Environment Using RTNETLINK](https://www.linuxjournal.com/article/8498)
 - [rtnetlink - Linux IPv4 routing socket (manual)](http://man7.org/linux/man-pages/man7/rtnetlink.7.html)

### License

MIT.