openss7 ss7 I_LINK ioctl

Posted by deddihp on Stack Overflow See other posts from Stack Overflow or by deddihp
Published on 2010-05-31T07:58:43Z Indexed on 2010/05/31 8:03 UTC
Read the original article Hit count: 326

Filed under:

Hello everyone,

is there anyonve have used openss7 before ?. well, I am trying to implement MTP with mtpi interface. so i use I_LINK to link between M2PA and MTP. But I got some error, ioctl invalid argument.

Do you have some suggestion for me ?. Thanks. your answer will be very helpful for me.

    int a1 = open("/dev/sctp_n", O_RDWR);
    int a2 = open("/dev/mtp", O_RDWR);

    ioctl(a1, I_PUSH, "m2pa-sl");
    perror("m2pa-sl");
    int a3 = ioctl(a1, I_LINK, a2);
    perror("ilink");

© Stack Overflow or respective owner

Related posts about sctp