This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/net/ipv4/tcp_bpf.c b/net/ipv4/tcp_bpf.c | |
| index 53b0d62fd2c2..2837b50e1be4 100644 | |
| --- a/net/ipv4/tcp_bpf.c | |
| +++ b/net/ipv4/tcp_bpf.c | |
| @@ -30,10 +30,8 @@ void tcp_eat_skb(struct sock *sk, struct sk_buff *skb) | |
| } | |
| static int bpf_tcp_ingress(struct sock *sk, struct sk_psock *psock, | |
| - struct sk_msg *msg, u32 apply_bytes, int flags) | |
| + struct sk_msg *msg, u32 apply_bytes) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <lsquic.h> | |
| #include <event2/event.h> | |
| static struct event_base *evbase; | |
| static lsquic_conn_ctx_t *on_new_conn(void *stream_if_ctx, lsquic_conn_t *conn) { | |
| const lsquic_conn_ctx_t *conn_ctx = malloc(sizeof(*conn_ctx)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <netinet/in.h> | |
| #include <netinet/sctp.h> | |
| #define SERVER_PORT 1234 | |
| #define BUFFER_SIZE 1024 | |
| #define LISTEN_QUEUE 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> | |
| #include <arpa/inet.h> | |
| #include <linux/sock_diag.h> | |
| #include <linux/inet_diag.h> | |
| #include <linux/tcp.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <infiniband/verbs.h> | |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define PORT_NUM 1 | |
| #define BUFFER_SIZE 1024 | |
| int main() { | |
| struct ibv_device **dev_list; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <sys/mman.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <linux/if_link.h> | |
| #include <linux/if_ether.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| #include <inttypes.h> | |
| #include <rte_mbuf.h> | |
| #include <rte_eal.h> | |
| #include <rte_ethdev.h> | |
| #include <rte_udp.h> | |
| #include <rte_ip.h> | |
| #include <rte_ether.h> | |
| #include <rte_lcore.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <netinet/in.h> | |
| #include <string.h> | |
| #include <liburing.h> | |
| #define PORT 8080 | |
| #define BACKLOG 32 | |
| #define BUFFER_SIZE 1024 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <errno.h> | |
| #include <event.h> | |
| #include <netinet/in.h> | |
| #include <sys/socket.h> | |
| #include <arpa/inet.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <sys/epoll.h> | |
| #include <netinet/in.h> | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #define MAX_EVENTS 10 |
NewerOlder