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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content