]> granicus.if.org Git - strace/commitdiff
xlat: provide fallback definitions for IFF_* constants
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 7 May 2018 07:15:45 +0000 (09:15 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 7 May 2018 21:45:46 +0000 (21:45 +0000)
* xlat/iffflags.in: Provide fallback definitions.  Mention that
the array is sorted.

xlat/iffflags.in

index 9f2217e4dc1f23527d2c0360304091e3abb61198..210495b701b1ecda90623e6f11fcb317bf90e822 100644 (file)
@@ -1,19 +1,20 @@
-IFF_UP
-IFF_BROADCAST
-IFF_DEBUG
-IFF_LOOPBACK
-IFF_POINTOPOINT
-IFF_NOTRAILERS
-IFF_RUNNING
-IFF_NOARP
-IFF_PROMISC
-IFF_ALLMULTI
-IFF_MASTER
-IFF_SLAVE
-IFF_MULTICAST
-IFF_PORTSEL
-IFF_AUTOMEDIA
-IFF_DYNAMIC
-IFF_LOWER_UP
-IFF_DORMANT
-IFF_ECHO
+/* sort -k4,4g */
+IFF_UP         (1 << 0)
+IFF_BROADCAST  (1 << 1)
+IFF_DEBUG      (1 << 2)
+IFF_LOOPBACK   (1 << 3)
+IFF_POINTOPOINT        (1 << 4)
+IFF_NOTRAILERS (1 << 5)
+IFF_RUNNING    (1 << 6)
+IFF_NOARP      (1 << 7)
+IFF_PROMISC    (1 << 8)
+IFF_ALLMULTI   (1 << 9)
+IFF_MASTER     (1 << 10)
+IFF_SLAVE      (1 << 11)
+IFF_MULTICAST  (1 << 12)
+IFF_PORTSEL    (1 << 13)
+IFF_AUTOMEDIA  (1 << 14)
+IFF_DYNAMIC    (1 << 15)
+IFF_LOWER_UP   (1 << 16)
+IFF_DORMANT    (1 << 17)
+IFF_ECHO       (1 << 18)