#include <stdint.h>
Go to the source code of this file.
◆ ___bpf_mvb
| #define ___bpf_mvb |
( |
| x, |
|
|
| b, |
|
|
| n, |
|
|
| m ) |
Value:((__u##b)(x) << (b - (n + 1) * 8) >> (b - 8) << (m * 8))
◆ ___bpf_swab16
| #define ___bpf_swab16 |
( |
| x | ) |
|
Value:
#define ___bpf_mvb(x, b, n, m)
Definition bpf_endian.h:20
uint16_t __u16
Definition types.h:5
◆ ___bpf_swab32
| #define ___bpf_swab32 |
( |
| x | ) |
|
Value: ((
__u32)(
___bpf_mvb(x, 32, 0, 3) |
___bpf_mvb(x, 32, 1, 2) |
___bpf_mvb(x, 32, 2, 1) |
___bpf_mvb(x, 32, 3, 0)))
uint32_t __u32
Definition types.h:6
◆ ___bpf_swab64
| #define ___bpf_swab64 |
( |
| x | ) |
|
Value: ((
__u64)(
___bpf_mvb(x, 64, 0, 7) |
___bpf_mvb(x, 64, 1, 6) |
___bpf_mvb(x, 64, 2, 5) |
___bpf_mvb(x, 64, 3, 4) | \
___bpf_mvb(x, 64, 4, 3) |
___bpf_mvb(x, 64, 5, 2) |
___bpf_mvb(x, 64, 6, 1) |
___bpf_mvb(x, 64, 7, 0)))
uint64_t __u64
Definition types.h:7
◆ __bpf_be64_to_cpu
| #define __bpf_be64_to_cpu |
( |
| x | ) |
|
◆ __bpf_constant_be64_to_cpu
| #define __bpf_constant_be64_to_cpu |
( |
| x | ) |
|
Value:
#define ___bpf_swab64(x)
Definition bpf_endian.h:27
◆ __bpf_constant_cpu_to_be64
| #define __bpf_constant_cpu_to_be64 |
( |
| x | ) |
|
◆ __bpf_constant_htonl
| #define __bpf_constant_htonl |
( |
| x | ) |
|
Value:
#define ___bpf_swab32(x)
Definition bpf_endian.h:24
◆ __bpf_constant_htons
| #define __bpf_constant_htons |
( |
| x | ) |
|
Value:
#define ___bpf_swab16(x)
Definition bpf_endian.h:22
◆ __bpf_constant_ntohl
| #define __bpf_constant_ntohl |
( |
| x | ) |
|
◆ __bpf_constant_ntohs
| #define __bpf_constant_ntohs |
( |
| x | ) |
|
◆ __bpf_cpu_to_be64
| #define __bpf_cpu_to_be64 |
( |
| x | ) |
|
◆ __bpf_htonl
◆ __bpf_htons
◆ __bpf_ntohl
◆ __bpf_ntohs
◆ bpf_be64_to_cpu
| #define bpf_be64_to_cpu |
( |
| x | ) |
|
Value:
#define __bpf_constant_be64_to_cpu(x)
Definition bpf_endian.h:57
#define __bpf_be64_to_cpu(x)
Definition bpf_endian.h:55
◆ bpf_cpu_to_be64
| #define bpf_cpu_to_be64 |
( |
| x | ) |
|
Value:
#define __bpf_cpu_to_be64(x)
Definition bpf_endian.h:56
#define __bpf_constant_cpu_to_be64(x)
Definition bpf_endian.h:58
◆ bpf_htonl
Value:
#define __bpf_htonl(x)
Definition bpf_endian.h:52
#define __bpf_constant_htonl(x)
Definition bpf_endian.h:54
◆ bpf_htons
Value:
#define __bpf_htons(x)
Definition bpf_endian.h:48
#define __bpf_constant_htons(x)
Definition bpf_endian.h:50
◆ bpf_ntohl
Value:
#define __bpf_constant_ntohl(x)
Definition bpf_endian.h:53
#define __bpf_ntohl(x)
Definition bpf_endian.h:51
◆ bpf_ntohs
Value:
#define __bpf_ntohs(x)
Definition bpf_endian.h:47
#define __bpf_constant_ntohs(x)
Definition bpf_endian.h:49
◆ htonl
◆ htons
◆ ntohl
◆ ntohs