Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 120127
Collapse All | Expand All

(-)file_not_specified_in_diff (-6 / +10 lines)
Line  Link Here
0
-- vpnclient/interceptor.c
0
++ vpnclient/interceptor.c
Lines 56-62 static void do_cleanup(void); Link Here
56
static int handle_vpnup(void);
56
static int handle_vpnup(void);
57
static int handle_vpndown(void);
57
static int handle_vpndown(void);
58
static CNIFRAGMENT build_ppp_fake_mac_frag(struct ethhdr *dummy);
58
static CNIFRAGMENT build_ppp_fake_mac_frag(struct ethhdr *dummy);
59
static int inline supported_device(struct net_device *dev);
59
static int supported_device(struct net_device *dev);
60
60
61
/*packet handler functions*/
61
/*packet handler functions*/
62
static int recv_ip_packet_handler(struct sk_buff *skb,
62
static int recv_ip_packet_handler(struct sk_buff *skb,
Lines 477-483 reset_inject_status(inject_status * s) Link Here
477
}
477
}
478
478
479
static int
479
static int
480
inline supported_device(struct net_device* dev)
480
supported_device(struct net_device* dev)
481
{
481
{
482
    int rc=0;
482
    int rc=0;
483
483
484
-- vpnclient/linuxcniapi.c
484
++ vpnclient/linuxcniapi.c
Lines 292-297 CniInjectReceive(IN CNIBINDING Binding, Link Here
292
    PBINDING pBinding;
292
    PBINDING pBinding;
293
    LPFRAGMENTBUFFER lpMacFragment;
293
    LPFRAGMENTBUFFER lpMacFragment;
294
    struct sk_buff *skb = NULL;
294
    struct sk_buff *skb = NULL;
295
    struct timeval stamp;
295
    unsigned char *pIP = NULL, *pMac = NULL;
296
    unsigned char *pIP = NULL, *pMac = NULL;
296
    int tmp_rc = 0;
297
    int tmp_rc = 0;
297
298
Lines 312-318 CniInjectReceive(IN CNIBINDING Binding, Link Here
312
        goto exit_gracefully;
313
        goto exit_gracefully;
313
    }
314
    }
314
    /* move the data into the packet */
315
    /* move the data into the packet */
315
    do_gettimeofday(&skb->stamp);
316
    do_gettimeofday(&stamp);
317
    skb_set_timestamp(skb, &stamp);
316
318
317
    pIP = skb_put(skb, lpPacketDescriptor->uiPacketSize);
319
    pIP = skb_put(skb, lpPacketDescriptor->uiPacketSize);
318
320
Lines 406-411 CniInjectSend(IN CNIBINDING Binding, Link Here
406
    PBINDING pBinding;
408
    PBINDING pBinding;
407
    LPFRAGMENTBUFFER lpMacFragment;
409
    LPFRAGMENTBUFFER lpMacFragment;
408
    struct sk_buff *skb;
410
    struct sk_buff *skb;
411
    struct timeval stamp;
409
    unsigned char *pIP = NULL, *pMac = NULL;
412
    unsigned char *pIP = NULL, *pMac = NULL;
410
    int tmp_rc = 0;
413
    int tmp_rc = 0;
411
414
Lines 449-455 CniInjectSend(IN CNIBINDING Binding, Link Here
449
    CniGetPacketData(Packet, 0, lpPacketDescriptor->uiPacketSize, pIP);
452
    CniGetPacketData(Packet, 0, lpPacketDescriptor->uiPacketSize, pIP);
450
453
451
    /* put the mac header on */
454
    /* put the mac header on */
452
    do_gettimeofday(&skb->stamp);
455
    do_gettimeofday(&stamp);
456
    skb_set_timestamp(skb, &stamp);
453
457
454
    skb->dev = pBinding->pDevice;
458
    skb->dev = pBinding->pDevice;
455
459

Return to bug 120127