git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
drivers
/
net
/
pppoe.c
diff --git
a/drivers/net/pppoe.c
b/drivers/net/pppoe.c
index
64b35cc
..
672e3cd
100644
(file)
--- a/
drivers/net/pppoe.c
+++ b/
drivers/net/pppoe.c
@@
-391,7
+391,7
@@
static int pppoe_rcv(struct sk_buff *skb,
ph = (struct pppoe_hdr *) skb->nh.raw;
ph = (struct pppoe_hdr *) skb->nh.raw;
- po = get_item((unsigned long) ph->sid,
skb->mac.ethernet
->h_source);
+ po = get_item((unsigned long) ph->sid,
eth_hdr(skb)
->h_source);
if (!po)
goto drop;
if (!po)
goto drop;
@@
-440,7
+440,7
@@
static int pppoe_disc_rcv(struct sk_buff *skb,
if (ph->code != PADT_CODE)
goto abort;
if (ph->code != PADT_CODE)
goto abort;
- po = get_item((unsigned long) ph->sid,
skb->mac.ethernet
->h_source);
+ po = get_item((unsigned long) ph->sid,
eth_hdr(skb)
->h_source);
if (po) {
struct sock *sk = po->sk;
if (po) {
struct sock *sk = po->sk;