1--
2--  Copyright (C) 2014 Reto Buerki <reet@codelabs.ch>
3--  Copyright (C) 2014 Adrian-Ken Rueegsegger <ken@codelabs.ch>
4--
5--  This program is free software; you can redistribute it and/or modify it
6--  under the terms of the GNU General Public License as published by the
7--  Free Software Foundation; either version 2 of the License, or (at your
8--  option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
9--
10--  This program is distributed in the hope that it will be useful, but
11--  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12--  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13--  for more details.
14--
15--  As a special exception, if other files instantiate generics from this
16--  unit,  or  you  link  this  unit  with  other  files  to  produce  an
17--  executable   this  unit  does  not  by  itself  cause  the  resulting
18--  executable to  be  covered by the  GNU General  Public License.  This
19--  exception does  not  however  invalidate  any  other reasons why  the
20--  executable file might be covered by the GNU Public License.
21--
22
23package Anet.OS_Constants is
24
25   AF_NETLINK          : constant := 16;   --  Netlink family
26   AF_PACKET           : constant := 17;   --  Packet family
27
28   IPV6_MULTICAST_IF   : constant := 17;   --  Sending interface
29   IPV6_ADD_MEMBERSHIP : constant := 20;   --  Join multicast group (IPv6)
30
31   NETLINK_ROUTE       : constant := 0;    --  Routing/device hook
32   NETLINK_FIREWALL    : constant := 3;    --  Firewalling hook
33   NETLINK_INET_DIAG   : constant := 4;    --  INET socket monitoring
34   NETLINK_NFLOG       : constant := 5;    --  netfilter/iptables ULOG
35   NETLINK_XFRM        : constant := 6;    --  ipsec
36   NETLINK_SELINUX     : constant := 7;    --  SELinux event notifications
37   NETLINK_AUDIT       : constant := 9;    --  auditing;
38   NETLINK_NETFILTER   : constant := 12;   --  netfilter subsystem
39   NETLINK_CRYPTO      : constant := 21;   --  Crypto layer
40
41   O_NONBLOCK          : constant := 4000; --  Non-blocking sockets
42
43end Anet.OS_Constants;
44