patch-2.3.34 linux/drivers/net/wan/syncppp.c
Next file: linux/drivers/net/wan/syncppp.h
Previous file: linux/drivers/net/wan/sealevel.c
Back to the patch index
Back to the overall index
- Lines: 82
- Date:
Mon Dec 20 15:07:08 1999
- Orig file:
v2.3.33/linux/drivers/net/wan/syncppp.c
- Orig date:
Mon Oct 11 15:38:15 1999
diff -u --recursive --new-file v2.3.33/linux/drivers/net/wan/syncppp.c linux/drivers/net/wan/syncppp.c
@@ -187,7 +187,7 @@
void sppp_input (struct net_device *dev, struct sk_buff *skb)
{
struct ppp_header *h;
- struct sppp *sp = &((struct ppp_device *)dev)->sppp;
+ struct sppp *sp = (struct sppp *)sppp_of(dev);
skb->dev=dev;
skb->mac.raw=skb->data;
@@ -316,7 +316,7 @@
static int sppp_hard_header(struct sk_buff *skb, struct net_device *dev, __u16 type,
void *daddr, void *saddr, unsigned int len)
{
- struct sppp *sp = &((struct ppp_device *)dev)->sppp;
+ struct sppp *sp = (struct sppp *)sppp_of(dev);
struct ppp_header *h;
skb_push(skb,sizeof(struct ppp_header));
h=(struct ppp_header *)skb->data;
@@ -826,7 +826,7 @@
int sppp_close (struct net_device *dev)
{
- struct sppp *sp = &((struct ppp_device *)dev)->sppp;
+ struct sppp *sp = (struct sppp *)sppp_of(dev);
dev->flags &= ~IFF_RUNNING;
sp->lcp.state = LCP_STATE_CLOSED;
sp->ipcp.state = IPCP_STATE_CLOSED;
@@ -839,7 +839,7 @@
int sppp_open (struct net_device *dev)
{
- struct sppp *sp = &((struct ppp_device *)dev)->sppp;
+ struct sppp *sp = (struct sppp *)sppp_of(dev);
sppp_close(dev);
dev->flags |= IFF_RUNNING;
if (!(sp->pp_flags & PP_CISCO))
@@ -851,7 +851,7 @@
int sppp_reopen (struct net_device *dev)
{
- struct sppp *sp = &((struct ppp_device *)dev)->sppp;
+ struct sppp *sp = (struct sppp *)sppp_of(dev);
sppp_close(dev);
dev->flags |= IFF_RUNNING;
if (!(sp->pp_flags & PP_CISCO))
@@ -880,7 +880,7 @@
int sppp_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{
- struct sppp *sp = &((struct ppp_device *)dev)->sppp;
+ struct sppp *sp = (struct sppp *)sppp_of(dev);
if(dev->flags&IFF_UP)
return -EBUSY;
@@ -913,7 +913,7 @@
void sppp_attach(struct ppp_device *pd)
{
- struct net_device *dev=&pd->dev;
+ struct net_device *dev = pd->dev;
struct sppp *sp = &pd->sppp;
/* Initialize keepalive handler. */
@@ -970,8 +970,7 @@
void sppp_detach (struct net_device *dev)
{
- struct sppp **q, *p, *sp = &((struct ppp_device *)dev)->sppp;
-
+ struct sppp **q, *p, *sp = (struct sppp *)sppp_of(dev);
/* Remove the entry from the keepalive list. */
for (q = &spppq; (p = *q); q = &p->pp_next)
@@ -1296,6 +1295,8 @@
sppp_packet_type.type=htons(ETH_P_WAN_PPP);
dev_add_pack(&sppp_packet_type);
}
+
+EXPORT_SYMBOL(sync_ppp_init);
#ifdef MODULE
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)