]> git.pld-linux.org Git - packages/open62541.git/blob - open62541-bpf.patch
3846d0e5d7d872fed60093ddae93ffe7644ce6c0
[packages/open62541.git] / open62541-bpf.patch
1 --- open62541-1.3.2/plugins/ua_pubsub_ethernet.c.orig   2022-06-24 11:05:00.000000000 +0200
2 +++ open62541-1.3.2/plugins/ua_pubsub_ethernet.c        2022-07-02 18:26:09.914301766 +0200
3 @@ -14,6 +14,9 @@
4  #include <open62541/plugin/log_stdout.h>
5  #include <open62541/plugin/pubsub_ethernet.h>
6  
7 +// disable -Werror for xsk declarations (libbpf 0.7+)
8 +#pragma GCC diagnostic warning "-Wdeprecated-declarations"
9 +
10  #define RECEIVE_MSG_BUFFER_SIZE   4096
11  static UA_THREAD_LOCAL UA_Byte ReceiveMsgBufferETH[RECEIVE_MSG_BUFFER_SIZE];
12  
13 @@ -50,6 +53,7 @@ static UA_THREAD_LOCAL UA_Byte ReceiveMs
14  #       include <bpf/libbpf.h>
15  #       ifndef asm
16  #           define asm __asm__
17 +#           define typeof __typeof__
18  #       endif
19  #       include <bpf/xsk.h>
20  #   endif
21 @@ -477,7 +481,7 @@ UA_PubSubChannelEthernetXDP_receive(UA_P
22      UA_UInt64 ret;
23      UA_UInt32 rcvd;
24      UA_Byte *pkt, *buf;
25 -    ssize_t len;
26 +    size_t len;
27  
28      xdp_socket = channelDataEthernet->xdpsocket;
29      message->length = 0;
This page took 0.033975 seconds and 2 git commands to generate.