Why are there two sctp.h files in RHEL7.2 ?

Solution Unverified - Updated -

Issue

  • Which sctp library should be used in the code ?
[root@server ~]# ll /usr/include/*/sctp.h
-rw-r--r-- 1 root root 25434 Aug 25 11:36 /usr/include/linux/sctp.h
-rw-r--r-- 1 root root 26110 Jan 23  2013 /usr/include/netinet/sctp.h
[root@server ~]#
  • RHEL 7 includes 2 different copies of the sctp.h file, which is the correct location to be included in the application ?

Environment

  • Red Hat Enterprise Linux 7.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.