![]() |
|
|||
0001 #include <linux/stddef.h> 0002 #include <linux/ipv6.h> 0003 #include <linux/bpf.h> 0004 #include <linux/in.h> 0005 #include <sys/socket.h> 0006 #include <bpf/bpf_helpers.h> 0007 #include <bpf/bpf_endian.h> 0008 0009 SEC("freplace/do_bind") 0010 int new_do_bind(struct bpf_sock_addr *ctx) 0011 { 0012 struct sockaddr_in sa = {}; 0013 0014 bpf_bind(ctx, (struct sockaddr *)&sa, sizeof(sa)); 0015 return 0; 0016 } 0017 0018 char _license[] SEC("license") = "GPL";
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |