Project

General

Profile

Bug #2165

Header change in if_var.h breaks applications

Added by ftigeot about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%


Description

Commit 1afbcbacb38bccc3bac01ae24420658b4b8346c7 has added this line:

#if defined(_KERNEL) || defined(_KERNEL_STRUCTURES)

in sys/net/if_var.h to protect the definition of struct ifnet.

Some third-party applications depend on struct ifnet beeing defined without using
_KERNEL or _KERNEL_STRUCTURES. They built fine on DragonFly 2.10 but are now
broken on -master.

net/wminet in pkgsrc can be used as an example.

History

#1 Updated by ftigeot about 5 years ago

struct ifnet should not be directly visible by userland programs

Applications will have to be patched on a case-by-case basis

Also available in: Atom PDF