diff --git a/ppp-2.4.2-pppoatm.patch b/ppp-2.4.2-pppoatm.patch index e3f869b..e07b852 100644 --- a/ppp-2.4.2-pppoatm.patch +++ b/ppp-2.4.2-pppoatm.patch @@ -1212,3 +1212,56 @@ rm -f $dir/Makefile if [ -f $dir/Makefile.$makext ]; then ln -s Makefile.$makext $dir/Makefile +--- /dev/null 2004-10-04 11:21:07.370511304 +0100 ++++ ppp-2.4.2/pppd/plugins/pppoatm/atmsap.h 2004-10-04 12:13:23.675156352 +0100 +@@ -0,0 +1,50 @@ ++/* atmsap.h - ATM Service Access Point addressing definitions */ ++ ++/* Written 1996-1998 by Werner Almesberger, EPFL LRC/ICA */ ++ ++ ++#ifndef _ATMSAP_H ++#define _ATMSAP_H ++ ++#include ++#include ++ ++/* Some stuff omitted by Fedora glibc-kernheaders */ ++static __inline__ int blli_in_use(struct atm_blli blli) ++{ ++ return blli.l2_proto || blli.l3_proto; ++} ++ ++/* ++ * Selected ISO/IEC TR 9577 Network Layer Protocol Identifiers (NLPID) ++ */ ++ ++#define NLPID_IEEE802_1_SNAP 0x80 /* IEEE 802.1 SNAP */ ++ ++/* ++ * Selected Organizationally Unique Identifiers (OUIs) ++ */ ++ ++#define ATM_FORUM_OUI "\x00\xA0\x3E" /* ATM Forum */ ++#define EPFL_OUI "\x00\x60\xD7" /* EPF Lausanne, CH */ ++ ++/* ++ * Selected vendor-specific application identifiers (for B-HLI). Such an ++ * identifier consists of three bytes containing the OUI, followed by four ++ * bytes assigned by the organization owning the OUI. ++ */ ++ ++#define ANS_HLT_VS_ID ATM_FORUM_OUI "\x00\x00\x00\x01" ++ /* ATM Name System, af-saa-0069.000 */ ++#define VOD_HLT_VS_ID ATM_FORUM_OUI "\x00\x00\x00\x02" ++ /* VoD, af-saa-0049.001 */ ++#define AREQUIPA_HLT_VS_ID EPFL_OUI "\x01\x00\x00\x01" /* Arequipa */ ++#define TTCP_HLT_VS_ID EPFL_OUI "\x01\x00\x00\x03" /* ttcp_atm */ ++ ++ ++/* Mapping of "well-known" TCP, UDP, etc. port numbers to ATM BHLIs. ++ btd-saa-api-bhli-01.02 */ ++ ++void atm_tcpip_port_mapping(char *vs_id,uint8_t protocol,uint16_t port); ++ ++#endif