Line
Link Here
|
0 |
-- ppp-2.4.5/include/linux/if_pppol2tp.h 2009-11-16 22:26:07.000000000 +0000 |
0 |
++ ppp-2.4.5/include/linux/if_pppol2tp.h 2010-07-16 22:35:22.000000000 +0100 |
Lines 32-37
Link Here
|
32 |
__u16 d_tunnel, d_session; /* For sending outgoing packets */ |
32 |
__u16 d_tunnel, d_session; /* For sending outgoing packets */ |
33 |
}; |
33 |
}; |
|
|
34 |
/* Structure used to connect() the socket to a particular tunnel UDP |
35 |
* * socket over IPv6. |
36 |
* */ |
37 |
struct pppol2tpin6_addr { |
38 |
__kernel_pid_t pid; /* pid that owns the fd. |
39 |
* 0 => current */ |
40 |
int fd; /* FD of UDP socket to use */ |
41 |
|
42 |
__u16 s_tunnel, s_session; /* For matching incoming packets */ |
43 |
__u16 d_tunnel, d_session; /* For sending outgoing packets */ |
44 |
|
45 |
struct sockaddr_in6 addr; /* IP address and port to send to */ |
46 |
}; |
47 |
|
48 |
/* The L2TPv3 protocol changes tunnel and session ids from 16 to 32 |
49 |
* bits. So we need a different sockaddr structure. |
50 |
*/ |
51 |
struct pppol2tpv3_addr { |
52 |
pid_t pid; /* pid that owns the fd. |
53 |
* 0 => current */ |
54 |
int fd; /* FD of UDP or IP socket to use */ |
55 |
|
56 |
struct sockaddr_in addr; /* IP address and port to send to */ |
57 |
|
58 |
__u32 s_tunnel, s_session; /* For matching incoming packets */ |
59 |
__u32 d_tunnel, d_session; /* For sending outgoing packets */ |
60 |
}; |
61 |
|
62 |
struct pppol2tpv3in6_addr { |
63 |
__kernel_pid_t pid; /* pid that owns the fd. |
64 |
* 0 => current */ |
65 |
int fd; /* FD of UDP or IP socket to use */ |
66 |
|
67 |
__u32 s_tunnel, s_session; /* For matching incoming packets */ |
68 |
__u32 d_tunnel, d_session; /* For sending outgoing packets */ |
69 |
|
70 |
struct sockaddr_in6 addr; /* IP address and port to send to */ |
71 |
}; |
72 |
|
34 |
/* Socket options: |
73 |
/* Socket options: |
35 |
* DEBUG - bitmask of debug message categories |
74 |
* DEBUG - bitmask of debug message categories |
36 |
* SENDSEQ - 0 => don't send packets with sequence numbers |
75 |
* SENDSEQ - 0 => don't send packets with sequence numbers |