* [PATCH] Remove rose_rx_ip
@ 2005-03-02 21:00 Ralf Baechle
0 siblings, 0 replies; only message in thread
From: Ralf Baechle @ 2005-03-02 21:00 UTC (permalink / raw)
To: netdev
Rose_rx_ip is unused and seems it's always been since it made it into the
kernel in 2.3.19. Probably directly calling ip_rcv from a non-IP stack
is no longer a good idea anyway, so this should be solved differently.
Index: bk-afu/net/rose/rose_dev.c
===================================================================
--- bk-afu.orig/net/rose/rose_dev.c 2005-03-01 01:03:14.857307048 +0000
+++ bk-afu/net/rose/rose_dev.c 2005-03-01 01:06:30.364585424 +0000
@@ -37,38 +37,6 @@
#include <net/ax25.h>
#include <net/rose.h>
-/*
- * Only allow IP over ROSE frames through if the netrom device is up.
- */
-
-int rose_rx_ip(struct sk_buff *skb, struct net_device *dev)
-{
- struct net_device_stats *stats = netdev_priv(dev);
-
-#ifdef CONFIG_INET
- if (!netif_running(dev)) {
- stats->rx_errors++;
- return 0;
- }
-
- stats->rx_packets++;
- stats->rx_bytes += skb->len;
-
- skb->protocol = htons(ETH_P_IP);
-
- /* Spoof incoming device */
- skb->dev = dev;
- skb->h.raw = skb->data;
- skb->nh.raw = skb->data;
- skb->pkt_type = PACKET_HOST;
-
- ip_rcv(skb, skb->dev, NULL);
-#else
- kfree_skb(skb);
-#endif
- return 1;
-}
-
static int rose_header(struct sk_buff *skb, struct net_device *dev, unsigned short type,
void *daddr, void *saddr, unsigned len)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-02 21:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-02 21:00 [PATCH] Remove rose_rx_ip Ralf Baechle
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).