seg6_local.h (c74a7469f97c0f40b46e82ee979f9fb1bb6e847c) | seg6_local.h (486cdf21583e5b1fad488a3e4f0a5242a31c0ffa) |
---|---|
1/* 2 * SR-IPv6 implementation 3 * 4 * Authors: 5 * David Lebrun <david.lebrun@uclouvain.be> 6 * eBPF support: Mathieu Xhonneux <m.xhonneux@gmail.com> 7 * 8 * --- 7 unchanged lines hidden (view full) --- 16#define _NET_SEG6_LOCAL_H 17 18#include <linux/percpu.h> 19#include <linux/net.h> 20#include <linux/ipv6.h> 21 22extern int seg6_lookup_nexthop(struct sk_buff *skb, struct in6_addr *nhaddr, 23 u32 tbl_id); | 1/* 2 * SR-IPv6 implementation 3 * 4 * Authors: 5 * David Lebrun <david.lebrun@uclouvain.be> 6 * eBPF support: Mathieu Xhonneux <m.xhonneux@gmail.com> 7 * 8 * --- 7 unchanged lines hidden (view full) --- 16#define _NET_SEG6_LOCAL_H 17 18#include <linux/percpu.h> 19#include <linux/net.h> 20#include <linux/ipv6.h> 21 22extern int seg6_lookup_nexthop(struct sk_buff *skb, struct in6_addr *nhaddr, 23 u32 tbl_id); |
24extern bool seg6_bpf_has_valid_srh(struct sk_buff *skb); |
|
24 25struct seg6_bpf_srh_state { | 25 26struct seg6_bpf_srh_state { |
26 bool valid; | 27 struct ipv6_sr_hdr *srh; |
27 u16 hdrlen; | 28 u16 hdrlen; |
29 bool valid; |
|
28}; 29 30DECLARE_PER_CPU(struct seg6_bpf_srh_state, seg6_bpf_srh_states); 31 32#endif | 30}; 31 32DECLARE_PER_CPU(struct seg6_bpf_srh_state, seg6_bpf_srh_states); 33 34#endif |