* [PATCH] comx-proto-lapb: update last_rx after netif_rx
@ 2001-02-27 0:52 Arnaldo Carvalho de Melo
0 siblings, 0 replies; only message in thread
From: Arnaldo Carvalho de Melo @ 2001-02-27 0:52 UTC (permalink / raw)
To: Alan Cox, Gergely Madarasz, linux-kernel
Hi,
Please consider applying.
- Arnaldo
--- linux-2.4.2/drivers/net/wan/comx-proto-lapb.c Sun Nov 12 01:02:39 2000
+++ linux-2.4.2.acme/drivers/net/wan/comx-proto-lapb.c Mon Feb 26 23:23:15 2001
@@ -306,11 +306,12 @@
p = skb_put(skb,1);
*p = 0x01; // link established
skb->dev = ch->dev;
- skb->protocol = htons(ETH_P_X25);
+ skb->protocol = __constant_htons(ETH_P_X25);
skb->mac.raw = skb->data;
skb->pkt_type = PACKET_HOST;
netif_rx(skb);
+ ch->dev->last_rx = jiffies;
}
for (; comxdir; comxdir = comxdir->next) {
@@ -345,11 +346,12 @@
p = skb_put(skb,1);
*p = 0x02; // link disconnected
skb->dev = ch->dev;
- skb->protocol = htons(ETH_P_X25);
+ skb->protocol = __constant_htons(ETH_P_X25);
skb->mac.raw = skb->data;
skb->pkt_type = PACKET_HOST;
netif_rx(skb);
+ ch->dev->last_rx = jiffies;
}
for (; comxdir; comxdir = comxdir->next) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-02-27 2:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-27 0:52 [PATCH] comx-proto-lapb: update last_rx after netif_rx Arnaldo Carvalho de Melo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).