Skip to content

Commit

Permalink
user: add pppoe-relay
Browse files Browse the repository at this point in the history
very slow, but works
  • Loading branch information
tsl0922 committed Jul 20, 2023
1 parent 04e8eb9 commit 2e4ee95
Show file tree
Hide file tree
Showing 15 changed files with 4,166 additions and 0 deletions.
1 change: 1 addition & 0 deletions trunk/user/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mtd_write/mtd_write
networkmap/networkmap
nvram/nvram
pppoe/pppoe-discovery
pppoe-relay/pppoe-relay
ralinkiappd/ralinkiappd
rc/rc
resolveip/resolveip
Expand Down
1 change: 1 addition & 0 deletions trunk/user/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ dir_y += 802.1x
dir_y += wpa_supplicant
dir_y += pppd
dir_y += pppoe
dir_y += pppoe-relay
dir_y += poptop
dir_y += xl2tpd
dir_$(CONFIG_FIRMWARE_INCLUDE_RPL2TP) += rp-l2tp
Expand Down
1 change: 1 addition & 0 deletions trunk/user/httpd/variables.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@
{"udpxy_wport", "", NULL, EVM_RESTART_FIREWALL},
{"misc_lpr_x", "", NULL, EVM_RESTART_FIREWALL},
{"misc_ping_x", "", NULL, EVM_RESTART_FIREWALL},
{"fw_pt_pppoe", "", NULL, EVM_RESTART_SYSCTL},
{"fw_lw_enable_x", "", NULL, EVM_RESTART_FIREWALL},
{"filter_lw_date_x", "", NULL, EVM_RESTART_FIREWALL},
{"filter_lw_time_x", "", NULL, EVM_RESTART_FIREWALL},
Expand Down
39 changes: 39 additions & 0 deletions trunk/user/pppoe-relay/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#***********************************************************************
#
# Makefile
#
# Makefile for Roaring Penguin's Linux user-space PPPoE client.
#
# Copyright (C) 2000 Roaring Penguin Software Inc.
#
# This program may be distributed according to the terms of the GNU
# General Public License, version 2 or (at your option) any later version.
#
# LIC: GPL
#
# $Id: Makefile,v 1.1.1.1 2007/02/15 12:14:31 jiahao Exp $
#***********************************************************************

# Version is set ONLY IN THE MAKEFILE! Don't delete this!
VERSION=3.11

DEFINES=

# PPPoE relay -- currently only supported on Linux
PPPOE_RELAY=pppoe-relay

CFLAGS += -O2
CFLAGS += '-DVERSION="$(VERSION)"'
TARGET = pppoe-relay

all: $(TARGET)

pppoe-relay: relay.o debug.o if.o common.o
$(CC) -o $@ $^ $(CFLAGS) -o pppoe-relay

romfs:
$(STRIP) pppoe-relay
$(ROMFSINST) /usr/sbin/pppoe-relay

clean:
rm -f *.o pppoe-relay
Loading

0 comments on commit 2e4ee95

Please sign in to comment.