Add link flag constants
netlink/constant.scm
| 211 | 211 | (define-public NLM_F_CAPPED #x100) | |
| 212 | 212 | (define-public NLM_F_ACK_TLVS #x200) | |
| 213 | 213 | ||
| 214 | + | ;; net_device_flags | |
| 215 | + | (define-enum int->device-flags | |
| 216 | + | (IFF_UP 1) | |
| 217 | + | (IFF_BROADCAST 2) | |
| 218 | + | (IFF_DEBUG 4) | |
| 219 | + | (IFF_LOOPBACK 8) | |
| 220 | + | (IFF_POINTOPOINT 16) | |
| 221 | + | (IFF_NOTRAILERS 32) | |
| 222 | + | (IFF_RUNNING 64) | |
| 223 | + | (IFF_NOARP 128) | |
| 224 | + | (IFF_PROMISC 256) | |
| 225 | + | (IFF_ALLMULTI 512) | |
| 226 | + | (IFF_MASTER 1024) | |
| 227 | + | (IFF_SLAVE 2048) | |
| 228 | + | (IFF_MULTICAST 4096) | |
| 229 | + | (IFF_PORTSEL 8192) | |
| 230 | + | (IFF_AUTOMEDIA 16384) | |
| 231 | + | (IFF_DYNAMIC 32768) | |
| 232 | + | (IFF_LOWER_UP 65536) | |
| 233 | + | (IFF_DORMANT 131072) | |
| 234 | + | (IFF_ECHO 262144)) | |
| 235 | + | ||
| 214 | 236 | ;; operstate | |
| 215 | 237 | (define-enum int->operstate | |
| 216 | 238 | IF_OPER_UNKNOWN IF_OPER_NOTPRESENT IF_OPER_DOWN |