|
Line
Link Here
|
| 0 |
-- interceptor.c.orig 2004-11-02 07:27:19.296825440 -0700 |
0 |
++ interceptor.c 2004-11-02 07:22:46.545289976 -0700 |
|
Lines 100-105
Link Here
|
| 100 |
.notifier_call = handle_netdev_event, |
100 |
.notifier_call = handle_netdev_event, |
| 101 |
}; |
101 |
}; |
|
|
102 |
static int |
| 103 |
inline supported_device(struct net_device* dev) |
| 104 |
{ |
| 105 |
int rc=0; |
| 106 |
|
| 107 |
if(dev->type == ARPHRD_ETHER) |
| 108 |
{ |
| 109 |
rc=1; |
| 110 |
} |
| 111 |
else if(dev->type == ARPHRD_PPP) |
| 112 |
{ |
| 113 |
rc=1; |
| 114 |
} |
| 115 |
|
| 116 |
return rc; |
| 117 |
} |
| 118 |
|
| 119 |
|
| 102 |
static int __init |
120 |
static int __init |
| 103 |
interceptor_init(struct net_device *dev) |
121 |
interceptor_init(struct net_device *dev) |
| 104 |
{ |
122 |
{ |
|
Lines 476-498
Link Here
|
| 476 |
s->rc = 0; |
494 |
s->rc = 0; |
| 477 |
} |
495 |
} |
| 478 |
static int |
|
|
| 479 |
inline supported_device(struct net_device* dev) |
| 480 |
{ |
| 481 |
int rc=0; |
| 482 |
|
| 483 |
if(dev->type == ARPHRD_ETHER) |
| 484 |
{ |
| 485 |
rc=1; |
| 486 |
} |
| 487 |
else if(dev->type == ARPHRD_PPP) |
| 488 |
{ |
| 489 |
rc=1; |
| 490 |
} |
| 491 |
|
| 492 |
return rc; |
| 493 |
} |
| 494 |
|
| 495 |
static BINDING * |
496 |
static BINDING * |
| 496 |
getbindingbydev(struct net_device *dev) |
497 |
getbindingbydev(struct net_device *dev) |