From d9e57fe65dd538c6ea80637f4f6f23cf11dc583d Mon Sep 17 00:00:00 2001 From: aapostoliuk Date: Wed, 24 Jan 2024 15:50:01 +0200 Subject: T5971: Rewritten ppp options in accel-ppp services Rewritten 'ppp-options' to the same view in all accel-ppp services. Adding IPv6 support to PPTP. --- .../accel-ppp/ppp-options-ipv6-interface-id.xml.i | 12 ++-- .../include/accel-ppp/ppp-options.xml.i | 65 ++++++++++++++++++++++ .../include/version/l2tp-version.xml.i | 2 +- .../include/version/pppoe-server-version.xml.i | 2 +- .../include/version/pptp-version.xml.i | 2 +- 5 files changed, 74 insertions(+), 9 deletions(-) create mode 100644 interface-definitions/include/accel-ppp/ppp-options.xml.i (limited to 'interface-definitions/include') diff --git a/interface-definitions/include/accel-ppp/ppp-options-ipv6-interface-id.xml.i b/interface-definitions/include/accel-ppp/ppp-options-ipv6-interface-id.xml.i index 265f7f97c..c4cf0a458 100644 --- a/interface-definitions/include/accel-ppp/ppp-options-ipv6-interface-id.xml.i +++ b/interface-definitions/include/accel-ppp/ppp-options-ipv6-interface-id.xml.i @@ -1,5 +1,5 @@ - + Fixed or random interface identifier for IPv6 @@ -18,11 +18,11 @@ - + Peer interface identifier for IPv6 - random calling-sid ipv4 + random calling-sid ipv4-addr x:x:x:x @@ -33,7 +33,7 @@ Use a random interface identifier for IPv6 - ipv4 + ipv4-addr Calculate interface identifier from IPv4 address, for example 192:168:0:1 @@ -41,11 +41,11 @@ Calculate interface identifier from calling-station-id - (random|calling-sid|ipv4|((\d+){1,4}:){3}(\d+){1,4}) + (random|calling-sid|ipv4-addr|((\d+){1,4}:){3}(\d+){1,4}) - + Accept peer interface identifier diff --git a/interface-definitions/include/accel-ppp/ppp-options.xml.i b/interface-definitions/include/accel-ppp/ppp-options.xml.i new file mode 100644 index 000000000..9b4f1d0ca --- /dev/null +++ b/interface-definitions/include/accel-ppp/ppp-options.xml.i @@ -0,0 +1,65 @@ + + + + Advanced protocol options + + + + + Minimum acceptable MTU (68-65535) + + + + + + + + Preferred MRU (68-65535) + + + + + + + + Disable Compression Control Protocol (CCP) + + + + #include + #include + #include + #include + + + IPv4 (IPCP) negotiation algorithm + + (deny|allow|prefer|require) + + invalid value + + deny + Do not negotiate IPv4 + + + allow + Negotiate IPv4 only if client requests + + + prefer + Ask client for IPv4 negotiation, do not fail if it rejects + + + require + Require IPv4 negotiation + + + deny allow prefer require + + + + #include + #include + + + diff --git a/interface-definitions/include/version/l2tp-version.xml.i b/interface-definitions/include/version/l2tp-version.xml.i index 793cd5d0c..01004c5a0 100644 --- a/interface-definitions/include/version/l2tp-version.xml.i +++ b/interface-definitions/include/version/l2tp-version.xml.i @@ -1,3 +1,3 @@ - + diff --git a/interface-definitions/include/version/pppoe-server-version.xml.i b/interface-definitions/include/version/pppoe-server-version.xml.i index 02f98cc16..c253c58d9 100644 --- a/interface-definitions/include/version/pppoe-server-version.xml.i +++ b/interface-definitions/include/version/pppoe-server-version.xml.i @@ -1,3 +1,3 @@ - + diff --git a/interface-definitions/include/version/pptp-version.xml.i b/interface-definitions/include/version/pptp-version.xml.i index 4386cedbd..3e1482ecc 100644 --- a/interface-definitions/include/version/pptp-version.xml.i +++ b/interface-definitions/include/version/pptp-version.xml.i @@ -1,3 +1,3 @@ - + -- cgit v1.2.3