eBPF for Windows
Data Fields
bpf_sock_addr Struct Reference

Data structure used as context for BPF_PROG_TYPE_CGROUP_SOCK_ADDR program type. More...

#include <ebpf_nethooks.h>

Data Fields

uint32_t family
 IP address family. More...
 
struct {
   union {
      uint32_t   msg_src_ip4
 
      uint32_t   msg_src_ip6 [4]
 
   } 
 Source IP address in network byte order. Local for ingress, remote for egress. More...
 
   uint16_t   msg_src_port
 Source port in network byte order. More...
 
}; 
 
struct {
   union {
      uint32_t   user_ip4
 
      uint32_t   user_ip6 [4]
 
   } 
 
   uint16_t   user_port
 Destination port in network byte order. More...
 
}; 
 
uint32_t protocol
 IP protocol. More...
 
uint32_t compartment_id
 Network compartment Id. More...
 
uint64_t interface_luid
 Interface LUID. More...
 

Detailed Description

Data structure used as context for BPF_PROG_TYPE_CGROUP_SOCK_ADDR program type.

Field Documentation

◆ 

struct { ... }

◆ 

struct { ... }

◆ compartment_id

uint32_t bpf_sock_addr::compartment_id

Network compartment Id.

◆ family

uint32_t bpf_sock_addr::family

IP address family.

◆ interface_luid

uint64_t bpf_sock_addr::interface_luid

Interface LUID.

◆ msg_src_ip4

uint32_t bpf_sock_addr::msg_src_ip4

◆ msg_src_ip6

uint32_t bpf_sock_addr::msg_src_ip6[4]

◆ msg_src_port

uint16_t bpf_sock_addr::msg_src_port

Source port in network byte order.

◆ protocol

uint32_t bpf_sock_addr::protocol

IP protocol.

◆ user_ip4

uint32_t bpf_sock_addr::user_ip4

◆ user_ip6

uint32_t bpf_sock_addr::user_ip6[4]

◆ user_port

uint16_t bpf_sock_addr::user_port

Destination port in network byte order.


The documentation for this struct was generated from the following file: