wok-next diff ppp/receipt @ rev 11797
ppp: build rp-pppoe.so
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 25 10:42:24 2012 +0100 (2012-02-25) |
parents | e5ae411e1d8c |
children | b3b80062dbe9 |
line diff
1.1 --- a/ppp/receipt Mon Apr 04 01:54:51 2011 +0000 1.2 +++ b/ppp/receipt Sat Feb 25 10:42:24 2012 +0100 1.3 @@ -14,10 +14,22 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + cat >> include/linux/if_pppol2tp.h <<EOT 1.8 +/* The L2TPv3 protocol changes tunnel and session ids from 16 to 32 1.9 + * bits. So we need a different sockaddr structure. 1.10 + */ 1.11 +struct pppol2tpv3_addr { 1.12 + pid_t pid; /* pid that owns the fd. 0 => current */ 1.13 + int fd; /* FD of UDP or IP socket to use */ 1.14 + struct sockaddr_in addr; /* IP address and port to send to */ 1.15 + __u32 s_tunnel, s_session; /* For matching incoming packets */ 1.16 + __u32 d_tunnel, d_session; /* For sending outgoing packets */ 1.17 +}; 1.18 +EOT 1.19 ./configure --prefix=/usr --mandir=/usr/share/man \ 1.20 $CONFIGURE_ARGS && 1.21 make && 1.22 - make DESTDIR=$PWD/_pkg/usr install 1.23 + make DESTDIR=$DESTDIR/usr install 1.24 } 1.25 1.26 # Rules to gen a SliTaz package suitable for Tazpkg.