Skip to content

sctp_peeloff() returns a socket of wrong t ype: should be SOCK_STREAM but is SOCK_SEQPACKET #70

@marcellgg

Description

@marcellgg

int sd, sock, type, len=sizeof(type);

sock = socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP);
sctp_connectx(sock, ...);
sd = sctp_peeloff(sock, id);
getsockopt(sd, SOL_SOCKET, SO_TYPE, &type, &len);

type is SOCK_SEQPACKET, not SOCK_STREAM as expected

Regards,
Yves.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions