problem with enabling SCTP heartbeat

"Mohammad Arif" <[email protected]>
Newsgroups gmane.ietf.sigtran
Message-ID <[email protected]>
  Hi all,
  I want to enable SCTP heartbeat message after every 5 secs in linux
2.6kernel SCTP.
  so i m using below piece of code but setsockopt returns error saying
invalid parameters.

  sp.spp_hbinterval = 0x5000;
  setsockopt(iconnSock, IPPROTO_SCTP, SCTP_PEER_ADDR_PARAMS, &sp,
sizeof(sp));

  Any idea,whats the problem with this?

  thanks in advance.

-- 
Regards
Mohammad Arif

_______________________________________________
Sigtran mailing list
[email protected]
https://www1.ietf.org/mailman/listinfo/sigtran
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.