sctp_darn: error setting peer_primary: Operation not permitted.

Solution In Progress - Updated -

Issue

While doing the test with sctp_darn part of lksctp tools following error is seen for peer_primary operation:

[root@rhel6-5 ~]# sctp_darn -H 10.200.207.3 -B 10.200.206.3 -P 30001 -c 10.200.207.5 -c 10.200.206.5 -p 30000 -s -I
...
10.200.207.3:30001-XXXXXX:30000 Interactive mode> snd=30
Recieved SCTP_COMM_UP
New connection, peer addresses
10.200.207.5:30000
10.200.206.5:30000
10.200.207.3:30001-10.200.207.5:30000 Interactive mode>
...
10.200.207.3:30001-10.200.207.5:30000 Interactive mode> peer_primary=10.200.207.3
sctp_darn: error setting peer_primary: Operation not permitted.
10.200.207.3:30001-10.200.207.5:30000 Interactive mode> peer_primary=10.200.206.3
sctp_darn: error setting peer_primary: Operation not permitted.
10.200.207.3:30001-10.200.207.5:30000 Interactive mode> peer_primary=10.200.206.3
sctp_darn: error setting peer_primary: Operation not permitted.
10.200.207.3:30001-10.200.207.5:30000 Interactive mode> 

[root@rhel6-5 ~]# cat /proc/net/sctp/assocs 
 ASSOC     SOCK   STY SST ST HBKT ASSOC-ID TX_QUEUE RX_QUEUE UID INODE LPORT RPORT LADDRS <-> RADDRS HBINT INS OUTS MAXRT T1X T2X RTXC
ffff882025f9b000 ffff882022b729c0 0   7   4  17477   10        0        0       0 15310549 30001 30000  10.200.207.3 10.200.206.3 <-> 10.200.207.5 *10.200.206.5       30000    10    10   10    0    0        0 
root@blr03> 
  1. Need a solution for using the "peer_primary"
  2. Is the following option supported in 6.5?
SCTP_SET_PEER_PRIMARY_ADDR
   Requests that the peer mark the enclosed address as the association primary. The enclosed address must be one of the association's locally bound addresses.
   The  structure  sctp_setpeerprim  defined in /usr/include/netinet/sctp.h is used to make a set peer  primary request.

Environment

Red Hat Enterprise Linux 6.5
lksctp-tools

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content