SO_REUSEPORT ソケットオプションをサポートする RHEL のバージョン

Solution In Progress - Updated -

Issue

SO_REUSEPORT ソケットオプションが実装されている RHEL バージョンを教えてください。
コードをコンパイルすることはできますが、ランタイム時に失敗します。

setsockopt(sock,SOL_SOCKET,SO_REUSEPORT,&optval,sizeof(optval) );

以下のようなエラーが返されます。

foo.c(413): error: identifier "SO_REUSEPORT" is undefined

Environment

  • Red Hat Enterprise Linux 6

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.