서버와 클라이언트 사이에 SCTP 연결을 설정하려고합니다 (Linux). 서버에는 여러 개의 ip 주소가 있으며 발신 ip 패킷은 소스 주소에 따라 라우팅됩니다. 나는 SCTP 연결이SCTP에서 OWN 기본 주소를 설정할 수 있습니까?
를 (기본적으로 특정 경로를 사용하기 위해) 기본적으로 특정 주소를 사용하려면 내가 찾은 유일한 옵션은 다음과 같습니다
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 struc‐
ture sctp_setpeerprim defined in /usr/include/netinet/sctp.h is used to make a set peer primary request.
SCTP_PRIMARY_ADDR
Requests that the local SCTP stack use the enclosed peer address as the association primary. The enclosed address must be one of the association peer's addresses. The
structure sctp_prim defined in /usr/include/netinet/sctp.h is used to make a get/set primary request.
지금까지 내가 이해,이 옵션을 선택할 수 있습니다 피어의 기본 주소 (전송할 때) 및 피어에게 로컬 주소 중 하나를 사용하도록 요청할 때 (수신시)
질문 : 보내는 메시지를 보낼 로컬 주소를 선택하는 방법이 있습니까?
시도해 볼 수는 있지만 다른 인터페이스는 비활성화하지 않을 것입니다. (각 inerface btw에 대해 하나의 주소가 있습니다). 내가 성취하고자하는 것은 모든 주소/인터페이스에 바인딩 된 SCTP 소켓을 가지고 있지만 메시지를 보내기 위해 하나를 선택하는 것이다. –