Re: [PATCH net-next 09/15] sctp: add SCTP_REMOTE_UDP_ENCAPS_PORT sockopt

2020-10-03 Thread Xin Long
On Sat, Oct 3, 2020 at 12:05 PM Marcelo Ricardo Leitner wrote: > > On Tue, Sep 29, 2020 at 09:49:01PM +0800, Xin Long wrote: > ... > > +struct sctp_udpencaps { > > + sctp_assoc_t sue_assoc_id; > > + struct sockaddr_storage sue_address; > > + uint16_t sue_port; > > +}; > ... > > +static

Re: [PATCH net-next 09/15] sctp: add SCTP_REMOTE_UDP_ENCAPS_PORT sockopt

2020-10-02 Thread Marcelo Ricardo Leitner
On Tue, Sep 29, 2020 at 09:49:01PM +0800, Xin Long wrote: ... > +struct sctp_udpencaps { > + sctp_assoc_t sue_assoc_id; > + struct sockaddr_storage sue_address; > + uint16_t sue_port; > +}; ... > +static int sctp_setsockopt_encap_port(struct sock *sk, > +

[PATCH net-next 09/15] sctp: add SCTP_REMOTE_UDP_ENCAPS_PORT sockopt

2020-09-29 Thread Xin Long
This patch is to implement: rfc6951#section-6.1: Get or Set the Remote UDP Encapsulation Port Number with the param of the struct: struct sctp_udpencaps { sctp_assoc_t sue_assoc_id; struct sockaddr_storage sue_address; uint16_t sue_port; }; the encap_port of sock, assoc or tra