]> git.ozlabs.org Git - ppp.git/commit
For Linux, use the Linux / Glibc based defines instead of included headers
authorEivind Næss <eivnaes@yahoo.com>
Mon, 30 May 2022 05:14:08 +0000 (22:14 -0700)
committerEivind Næss <eivnaes@yahoo.com>
Fri, 15 Jul 2022 22:25:39 +0000 (15:25 -0700)
commit199e97bae9c03f5cec5202a511b5c436aff05af9
treeaae67baaaf1116f72c7139201589bcde3f72af1a
parent1d3327b87170d5d8db4a5ad06b465925cff4488a
For Linux, use the Linux / Glibc based defines instead of included headers

This is to ensure compatibility with the OS you are compiling against and that
headers are maintained in upstream projects.

- Moved PPP_EAP and PPP_ECP into respective header files in lieu of not currently
  existing in the linux/ppp_defs.h

- Unchained the top-level ${topsrc_dir}/include, this folder is included for
  prosterity and may continue to exist on github, but in the future eliminated from
  distribution

- Bogus upstream file in glibc for <net/if_ppp.h>, its content should be replaced
  with a simple include to <linux/ppp-ioctl.h>. The lack of an appropriate ifreq
  structure with ppp_stats or ppp_comp_stats, implementet that inline (and tested).

- Updated instances where PPP_FCS() macro would expand the fcstab, while PPP_GOODFCS
  and PPP_INITFCS is provided in <linux/ppp_defs.h>, the latter is tied to a lookup
  table. It's used in two places, so add the PPP_FCS macro where applicable.

Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
17 files changed:
pppd/Makefile.am
pppd/demand.c
pppd/eap.h
pppd/ecp.h
pppd/lcp.c
pppd/plugins/Makefile.am
pppd/plugins/pppoatm/Makefile.am
pppd/plugins/pppoe/Makefile.am
pppd/plugins/pppol2tp/Makefile.am
pppd/plugins/radius/Makefile.am
pppd/sys-linux.c
pppdump/Makefile.am
pppdump/bsd-comp.c
pppdump/deflate.c
pppdump/pppdump.c
pppstats/Makefile.am
pppstats/pppstats.c