Re: [PATCH net-next v24 11/23] ovpn: implement TCP transport

2025-04-05 Thread Sabrina Dubroca
2025-03-18, 02:40:46 +0100, Antonio Quartulli wrote: > +static void ovpn_tcp_rcv(struct strparser *strp, struct sk_buff *skb) > +{ [...] > + /* we need the first byte of data to be accessible nit: and "first byte" here too (that comment could maybe just be dropped?) > + * to extract the

Re: [PATCH net-next v24 11/23] ovpn: implement TCP transport

2025-04-02 Thread Antonio Quartulli
On 01/04/2025 12:02, Sabrina Dubroca wrote: 2025-03-18, 02:40:46 +0100, Antonio Quartulli wrote: +static void ovpn_tcp_rcv(struct strparser *strp, struct sk_buff *skb) +{ [...] + /* we need the first byte of data to be accessible nit: and "first byte" here too (that comment could maybe

[PATCH net-next v24 11/23] ovpn: implement TCP transport

2025-03-17 Thread Antonio Quartulli
With this change ovpn is allowed to communicate to peers also via TCP. Parsing of incoming messages is implemented through the strparser API. Note that ovpn redefines sk_prot and sk_socket->ops for the TCP socket used to communicate with the peer. For this reason it needs to access inet6_stream_op