Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 // Copyright (c) 2020 Facebook
0003 
0004 #include <linux/stddef.h>
0005 #include <linux/ipv6.h>
0006 #include <linux/bpf.h>
0007 #include <linux/in.h>
0008 #include <sys/socket.h>
0009 #include <bpf/bpf_helpers.h>
0010 #include <bpf/bpf_endian.h>
0011 
0012 SEC("freplace/connect_v4_prog")
0013 int new_connect_v4_prog(struct bpf_sock_addr *ctx)
0014 {
0015     // return value thats in invalid range
0016     return 255;
0017 }
0018 
0019 char _license[] SEC("license") = "GPL";