element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Software
  • Products
  • Dev Tools
  • Software
  • More
  • Cancel
Software
Forum Could not create SCTP socket
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Software requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 8 subscribers
  • Views 528 views
  • Users 0 members are here
  • srslte
  • sctp
Related

Could not create SCTP socket

jaypeng
jaypeng over 2 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

  • Reply
  • Cancel
  • Cancel
  • shabaz
    0 shabaz over 2 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
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube