ppp/pppstats
Eivind Næss 199e97bae9 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>
2022-07-15 15:25:39 -07:00
..
.gitignore Get the repository a bit closer to what will be released 2008-07-27 17:28:29 +10:00
Makefile.am For Linux, use the Linux / Glibc based defines instead of included headers 2022-07-15 15:25:39 -07:00
pppstats.8 Added missing options to manual pages. (#149) 2020-05-25 15:34:44 +10:00
pppstats.c For Linux, use the Linux / Glibc based defines instead of included headers 2022-07-15 15:25:39 -07:00