libnl: /data/src/libnl/include/netlink/errno.h Source File

libnl 3.12.0

errno.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2008 Thomas Graf <tgraf@suug.ch>
4 */
5
6#ifndef NETLINK_ERRNO_H_
7#define NETLINK_ERRNO_H_
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#define NLE_SUCCESS 0
14#define NLE_FAILURE 1
15#define NLE_INTR 2
16#define NLE_BAD_SOCK 3
17#define NLE_AGAIN 4
18#define NLE_NOMEM 5
19#define NLE_EXIST 6
20#define NLE_INVAL 7
21#define NLE_RANGE 8
22#define NLE_MSGSIZE 9
23#define NLE_OPNOTSUPP 10
24#define NLE_AF_NOSUPPORT 11
25#define NLE_OBJ_NOTFOUND 12
26#define NLE_NOATTR 13
27#define NLE_MISSING_ATTR 14
28#define NLE_AF_MISMATCH 15
29#define NLE_SEQ_MISMATCH 16
30#define NLE_MSG_OVERFLOW 17
31#define NLE_MSG_TRUNC 18
32#define NLE_NOADDR 19
33#define NLE_SRCRT_NOSUPPORT 20
34#define NLE_MSG_TOOSHORT 21
35#define NLE_MSGTYPE_NOSUPPORT 22
36#define NLE_OBJ_MISMATCH 23
37#define NLE_NOCACHE 24
38#define NLE_BUSY 25
39#define NLE_PROTO_MISMATCH 26
40#define NLE_NOACCESS 27
41#define NLE_PERM 28
42#define NLE_PKTLOC_FILE 29
43#define NLE_PARSE_ERR 30
44#define NLE_NODEV 31
45#define NLE_IMMUTABLE 32
46#define NLE_DUMP_INTR 33
47#define NLE_ATTRSIZE 34
48#define NLE_HOSTUNREACH 35
49#define NLE_NETDOWN 36
50
51#define NLE_MAX NLE_NETDOWN
52
53extern const char * nl_geterror(int);
54extern void nl_perror(int, const char *);
55extern int nl_syserr2nlerr(int);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif