1.下載最新版本PPP跟rp-pppoe
RP-PPPOE 3.12
https://dianne.skoll.ca/projects/rp-pppoe/download/rp-pppoe-3.12.tar.gz
PPP 2.4.7
https://download.samba.org/pub/ppp/ppp-2.4.7.tar.gz
2.首先進入PPP套件Build並安裝,預設存放SRC的路徑/usr/src
a.
#cd /usr/src
#wget https://download.samba.org/pub/ppp/ppp-2.4.7.tar.gz
#tar zxvf ppp-2.4.7.tar.gz
#cd ppp-2.4.7
#./configuration
#make
#make install
3.再來是Build RP-PPPOE的部份
a.
#cd /usr/src
#wget https://dianne.skoll.ca/projects/rp-pppoe/download/rp-pppoe-3.12.tar.gz
#tar rp-pppoe-3.12.tar.gz
#cd rp-pppoe-3.12/src
b.編輯pppoe-server.c檔案,新增下面這行
#define HAVE_LINUX_KERNEL_PPPOE 1
c.編輯Plugin.c檔案修正
#include net/ethernet.h;
#include net/if_arp.h;
#include linux/ppp_defs.h;
+#define _LINUX_IN_H
+#define _LINUX_IN6_H
#include linux/if_pppox.h;
#ifndef _ROOT_PATH
編輯plugin.c這個檔案,搜尋到上面幾行,插入前面有+的兩行(記得把+拿掉)
#define _LINUX_IN_H
#define _LINUX_IN6_H
最後檔案會如下
#include net/ethernet.h;
#include net/if_arp.h;
#include linux/ppp_defs.h;
#define _LINUX_IN_H
#define _LINUX_IN6_H
#include linux/if_pppox.h;
#ifndef _ROOT_PATH
d.修改完成就可以build
#./configuration --enable-plugin
#make
#make rp-pppoe.so
#make install
留言列表