Search code examples
linuxsocketskernelobsolete

What is the correct replacement for (PF_INET,SOCK_PACKET)


I am given a task to eliminate the

<app> uses obsolete (PF_INET,SOCK_PACKET)

warning from a userspace client. If this type of use is obsolete; what is the correct, similar replacement for this task?

Edit: There was misleading information here.


Solution

  • The problem is a library function calling socket(AF_INET, SOCK_PACKET, htons(0x0806)), and not the application itself.