Skip to contentSkip to conversation

Incorrect comment about userspace in if_pppox.h

DISCUSSION Robert P. J. Day 1 participant 1 message Feb 17, 2008 PPP protocol drivers and compressors

lore
Share & tools
lore
#0 lore raw

from if_pppox.h:

...
#ifdef __KERNEL__
#include <linux/if_ether.h>
#include <linux/if.h>
#include <linux/netdevice.h>
#include <asm/semaphore.h>
#include <linux/ppp_channel.h>
#endif /* __KERNEL__ */
#include <linux/if_pppol2tp.h>

/* For user-space programs to pick up these definitions
* which they wouldn't get otherwise without defining __KERNEL__ */
...

that comment's placing in that header file is confusing, since it's
not clear *what* definitions userspace would be missing if it didn't define __KERNEL__. i'd be tempted to just toss that comment.

rday
--

====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
====================================