Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 426398 | Differences between
and this patch

Collapse All | Expand All

(-)pptp-1.7.2/pptp_gre.c.nested (-1 / +4 lines)
Lines 23-28 Link Here
23
#include "pqueue.h"
23
#include "pqueue.h"
24
#include "test.h"
24
#include "test.h"
25
25
26
/* globals from pptp.c */
27
extern struct in_addr localbind;
28
extern int rtmark;
29
26
#define PACKET_MAX 8196
30
#define PACKET_MAX 8196
27
/* test for a 32 bit counter overflow */
31
/* test for a 32 bit counter overflow */
28
#define WRAPPED( curseq, lastseq) \
32
#define WRAPPED( curseq, lastseq) \
Lines 82-88 uint64_t time_now_usecs(void) Link Here
82
int pptp_gre_bind(struct in_addr inetaddr)
86
int pptp_gre_bind(struct in_addr inetaddr)
83
{
87
{
84
    struct sockaddr_in src_addr, loc_addr;
88
    struct sockaddr_in src_addr, loc_addr;
85
    extern struct in_addr localbind;
86
    int s = socket(AF_INET, SOCK_RAW, PPTP_PROTO);
89
    int s = socket(AF_INET, SOCK_RAW, PPTP_PROTO);
87
    if (s < 0) { warn("socket: %s", strerror(errno)); return -1; }
90
    if (s < 0) { warn("socket: %s", strerror(errno)); return -1; }
88
    if (localbind.s_addr != INADDR_NONE) {
91
    if (localbind.s_addr != INADDR_NONE) {

Return to bug 426398