@@ -626,6 +626,69 @@ pub const PIPE_BUF: usize = 4096;
626
626
627
627
pub const SI_LOAD_SHIFT : :: c_uint = 16 ;
628
628
629
+ pub const NETLINK_ROUTE : :: c_int = 0 ;
630
+ pub const NETLINK_UNUSED : :: c_int = 1 ;
631
+ pub const NETLINK_USERSOCK : :: c_int = 2 ;
632
+ pub const NETLINK_FIREWALL : :: c_int = 3 ;
633
+ pub const NETLINK_SOCK_DIAG : :: c_int = 4 ;
634
+ pub const NETLINK_NFLOG : :: c_int = 5 ;
635
+ pub const NETLINK_XFRM : :: c_int = 6 ;
636
+ pub const NETLINK_SELINUX : :: c_int = 7 ;
637
+ pub const NETLINK_ISCSI : :: c_int = 8 ;
638
+ pub const NETLINK_AUDIT : :: c_int = 9 ;
639
+ pub const NETLINK_FIB_LOOKUP : :: c_int = 10 ;
640
+ pub const NETLINK_CONNECTOR : :: c_int = 11 ;
641
+ pub const NETLINK_NETFILTER : :: c_int = 12 ;
642
+ pub const NETLINK_IP6_FW : :: c_int = 13 ;
643
+ pub const NETLINK_DNRTMSG : :: c_int = 14 ;
644
+ pub const NETLINK_KOBJECT_UEVENT : :: c_int = 15 ;
645
+ pub const NETLINK_GENERIC : :: c_int = 16 ;
646
+ pub const NETLINK_SCSITRANSPORT : :: c_int = 18 ;
647
+ pub const NETLINK_ECRYPTFS : :: c_int = 19 ;
648
+ pub const NETLINK_RDMA : :: c_int = 20 ;
649
+ pub const NETLINK_CRYPTO : :: c_int = 21 ;
650
+ pub const NETLINK_INET_DIAG : :: c_int = NETLINK_SOCK_DIAG ;
651
+
652
+ pub const MAX_LINKS : :: c_int = 32 ;
653
+
654
+ pub const NLM_F_REQUEST : :: c_int = 1 ;
655
+ pub const NLM_F_MULTI : :: c_int = 2 ;
656
+ pub const NLM_F_ACK : :: c_int = 4 ;
657
+ pub const NLM_F_ECHO : :: c_int = 8 ;
658
+ pub const NLM_F_DUMP_INTR : :: c_int = 16 ;
659
+ pub const NLM_F_DUMP_FILTERED : :: c_int = 32 ;
660
+
661
+ pub const NLM_F_ROOT : :: c_int = 0x100 ;
662
+ pub const NLM_F_MATCH : :: c_int = 0x200 ;
663
+ pub const NLM_F_ATOMIC : :: c_int = 0x400 ;
664
+ pub const NLM_F_DUMP : :: c_int = NLM_F_ROOT | NLM_F_MATCH ;
665
+
666
+ pub const NLM_F_REPLACE : :: c_int = 0x100 ;
667
+ pub const NLM_F_EXCL : :: c_int = 0x200 ;
668
+ pub const NLM_F_CREATE : :: c_int = 0x400 ;
669
+ pub const NLM_F_APPEND : :: c_int = 0x800 ;
670
+
671
+ pub const NLMSG_NOOP : :: c_int = 0x1 ;
672
+ pub const NLMSG_ERROR : :: c_int = 0x2 ;
673
+ pub const NLMSG_DONE : :: c_int = 0x3 ;
674
+ pub const NLMSG_OVERRUN : :: c_int = 0x4 ;
675
+ pub const NLMSG_MIN_TYPE : :: c_int = 0x10 ;
676
+
677
+ pub const NETLINK_ADD_MEMBERSHIP : :: c_int = 1 ;
678
+ pub const NETLINK_DROP_MEMBERSHIP : :: c_int = 2 ;
679
+ pub const NETLINK_PKTINFO : :: c_int = 3 ;
680
+ pub const NETLINK_BROADCAST_ERROR : :: c_int = 4 ;
681
+ pub const NETLINK_NO_ENOBUFS : :: c_int = 5 ;
682
+ pub const NETLINK_RX_RING : :: c_int = 6 ;
683
+ pub const NETLINK_TX_RING : :: c_int = 7 ;
684
+ pub const NETLINK_LISTEN_ALL_NSID : :: c_int = 8 ;
685
+ pub const NETLINK_LIST_MEMBERSHIPS : :: c_int = 9 ;
686
+ pub const NETLINK_CAP_ACK : :: c_int = 10 ;
687
+
688
+ pub const NLA_F_NESTED : :: c_int = 1 << 15 ;
689
+ pub const NLA_F_NET_BYTEORDER : :: c_int = 1 << 14 ;
690
+ pub const NLA_TYPE_MASK : :: c_int = !( NLA_F_NESTED | NLA_F_NET_BYTEORDER ) ;
691
+
629
692
f ! {
630
693
pub fn FD_CLR ( fd: :: c_int, set: * mut fd_set) -> ( ) {
631
694
let fd = fd as usize ;
0 commit comments