element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Software
  • Products
  • Dev Tools
  • Software
  • More
  • Cancel
Software
Forum Could not create SCTP socket
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Software to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 27 subscribers
  • Views 1904 views
  • Users 0 members are here
  • srslte
  • sctp
Related

Could not create SCTP socket

jaypeng
jaypeng over 5 years ago

Dear all,

 

I do have an issue regarding SCTP socket. I am using srsLTE to setup test environment. srsEPC is acting as LTE core network and srsENB is acting as LTE access network. Both of two applications need to run on the same Ultrazed board. After I do local compile on a linux box which is Intel CPU supported, it works fine. But when I do cross compile for Ultrazed board which is for ARM platform and run srsEPC, I got error in console - "Could not create SCTP socket".

 

Below is the source code of srsEPC

  m_s1ap_log->info("S1-MME Initializing\n");

  sock_fd = socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP);

  if (sock_fd == -1) {

    m_s1ap_log->console("Could not create SCTP socket\n");

    return -1;

  }

 

I will very appreciate it if any expert can share your experience on how to fix it. Looking forward to your reply.

 

Bests,

Jay

  • Sign in to reply
  • Cancel
Parents
  • shabaz
    0 shabaz over 5 years ago

    Hi Jay,

     

    I think this seems like a Linux issue maybe, and not a board issue..

    Anyway, you can print out the error message. It could be that your current Linux image doesn't support SCTP (despite you including the correct header files) since it's not a popular thing.

    I'm just guessing this could be the issue though, I've never used this board. If it turns out from the error message that that is indeed the case then I don't know how you upgrade the image or compile or install sctp (maybe using apt-get or rpm command, I don't know what Linux flavor you're using).

     

    You can print out the error message using:

     

    #include <errno.h>
    #include <string.h>
    .......
    printf("error no. %d - %s\n", errno, strerror(errno));

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • shabaz
    0 shabaz over 5 years ago

    Hi Jay,

     

    I think this seems like a Linux issue maybe, and not a board issue..

    Anyway, you can print out the error message. It could be that your current Linux image doesn't support SCTP (despite you including the correct header files) since it's not a popular thing.

    I'm just guessing this could be the issue though, I've never used this board. If it turns out from the error message that that is indeed the case then I don't know how you upgrade the image or compile or install sctp (maybe using apt-get or rpm command, I don't know what Linux flavor you're using).

     

    You can print out the error message using:

     

    #include <errno.h>
    #include <string.h>
    .......
    printf("error no. %d - %s\n", errno, strerror(errno));

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube