]> err.no Git - linux-2.6/commitdiff
[AX.25]: Rename ax25_encapsulate to ax25_hard_header
authorRalf Baechle <ralf@linux-mips.org>
Mon, 12 Sep 2005 21:21:01 +0000 (14:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Sep 2005 21:21:01 +0000 (14:21 -0700)
Rename ax25_encapsulate to ax25_hard_header which these days more
accurately describes what the function is supposed to do.

Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/6pack.c
drivers/net/hamradio/baycom_epp.c
drivers/net/hamradio/bpqether.c
drivers/net/hamradio/dmascc.c
drivers/net/hamradio/hdlcdrv.c
drivers/net/hamradio/mkiss.c
drivers/net/hamradio/scc.c
drivers/net/hamradio/yam.c
include/net/ax25.h
net/ax25/af_ax25.c
net/ax25/ax25_ip.c

index 0b230222bfeab592fa23ec7836accddc79df7a62..90999867a32c56fd6819acee43ef1934984b061d 100644 (file)
@@ -293,7 +293,7 @@ static int sp_header(struct sk_buff *skb, struct net_device *dev,
 {
 #ifdef CONFIG_INET
        if (type != htons(ETH_P_AX25))
-               return ax25_encapsulate(skb, dev, type, daddr, saddr, len);
+               return ax25_hard_header(skb, dev, type, daddr, saddr, len);
 #endif
        return 0;
 }
index 21f76b24b28ca46e1add881cce1e84751042aa20..e4188d082f011f0e0fa56080db7d8f9ca9913fc0 100644 (file)
@@ -1171,7 +1171,7 @@ static void baycom_probe(struct net_device *dev)
        /* Fill in the fields of the device structure */
        bc->skb = NULL;
        
-       dev->hard_header = ax25_encapsulate;
+       dev->hard_header = ax25_hard_header;
        dev->rebuild_header = ax25_rebuild_header;
        dev->set_mac_address = baycom_set_mac_address;
        
index 2946e037a9b1f1e4bab304c2982a0575bf07c69d..1756f0ed54ccc7a43de7613896f090d38c98f365 100644 (file)
@@ -488,7 +488,7 @@ static void bpq_setup(struct net_device *dev)
        dev->flags      = 0;
 
 #if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
-       dev->hard_header     = ax25_encapsulate;
+       dev->hard_header     = ax25_hard_header;
        dev->rebuild_header  = ax25_rebuild_header;
 #endif
 
index d8a45db0800caa277bc19101daed5ac32d114706..3be3f916643a17fcb53574f83cf39d8c8ae5bb9e 100644 (file)
@@ -600,7 +600,7 @@ static int __init setup_adapter(int card_base, int type, int n)
                dev->do_ioctl = scc_ioctl;
                dev->hard_start_xmit = scc_send_packet;
                dev->get_stats = scc_get_stats;
-               dev->hard_header = ax25_encapsulate;
+               dev->hard_header = ax25_hard_header;
                dev->rebuild_header = ax25_rebuild_header;
                dev->set_mac_address = scc_set_mac_address;
        }
index d2b266697a5eac6a197f9ea2c2f0339af4e5f502..dacc7687b97f8b2bfe3290ede1cd6137c5ed08d9 100644 (file)
@@ -701,7 +701,7 @@ static void hdlcdrv_setup(struct net_device *dev)
 
        s->skb = NULL;
        
-       dev->hard_header = ax25_encapsulate;
+       dev->hard_header = ax25_hard_header;
        dev->rebuild_header = ax25_rebuild_header;
        dev->set_mac_address = hdlcdrv_set_mac_address;
        
index 63b1a2b86acb19650fdee9e84efb2e86e7971bed..d9fe64b46f4bf4bc1505bee23f2e8e92c86fa772 100644 (file)
@@ -500,7 +500,7 @@ static int ax_header(struct sk_buff *skb, struct net_device *dev, unsigned short
 {
 #ifdef CONFIG_INET
        if (type != htons(ETH_P_AX25))
-               return ax25_encapsulate(skb, dev, type, daddr, saddr, len);
+               return ax25_hard_header(skb, dev, type, daddr, saddr, len);
 #endif
        return 0;
 }
index c27e417f32bf5958e322d4277dc7a808c2777284..6ace0e914fd1f2705a00609d23df8e07f44941dd 100644 (file)
@@ -1557,7 +1557,7 @@ static void scc_net_setup(struct net_device *dev)
        dev->stop            = scc_net_close;
 
        dev->hard_start_xmit = scc_net_tx;
-       dev->hard_header     = ax25_encapsulate;
+       dev->hard_header     = ax25_hard_header;
        dev->rebuild_header  = ax25_rebuild_header;
        dev->set_mac_address = scc_net_set_mac_address;
        dev->get_stats       = scc_net_get_stats;
index bfcf2011522fafe9879bd0a2961d587cec31475c..fe22479eb2028097213e5f987a1768e453477fc3 100644 (file)
@@ -1108,7 +1108,7 @@ static void yam_setup(struct net_device *dev)
 
        skb_queue_head_init(&yp->send_queue);
 
-       dev->hard_header = ax25_encapsulate;
+       dev->hard_header = ax25_hard_header;
        dev->rebuild_header = ax25_rebuild_header;
 
        dev->set_mac_address = yam_set_mac_address;
index 227d3378decd8cf86d8467652f6e9ebc9e3daec5..5fbe99e2a27ec08478bd317656069cc1ea9dd312 100644 (file)
@@ -319,7 +319,7 @@ extern int  ax25_rx_iframe(ax25_cb *, struct sk_buff *);
 extern int  ax25_kiss_rcv(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *);
 
 /* ax25_ip.c */
-extern int  ax25_encapsulate(struct sk_buff *, struct net_device *, unsigned short, void *, void *, unsigned int);
+extern int  ax25_hard_header(struct sk_buff *, struct net_device *, unsigned short, void *, void *, unsigned int);
 extern int  ax25_rebuild_header(struct sk_buff *);
 
 /* ax25_out.c */
index ed705ddad56be0e9bb6b69580b681b1e5c91f6d0..17f192b778677ebe79bd90a30084fbb7d46e4fd4 100644 (file)
@@ -1984,7 +1984,7 @@ static struct notifier_block ax25_dev_notifier = {
        .notifier_call =ax25_device_event,
 };
 
-EXPORT_SYMBOL(ax25_encapsulate);
+EXPORT_SYMBOL(ax25_hard_header);
 EXPORT_SYMBOL(ax25_rebuild_header);
 EXPORT_SYMBOL(ax25_findbyuid);
 EXPORT_SYMBOL(ax25_find_cb);
index bba0173e2d6500a44954871389fc5e35396dffa2..d643dac3eccc6981b8d56b1a9c1ba20fa3b5bcf4 100644 (file)
@@ -47,7 +47,7 @@
 
 #ifdef CONFIG_INET
 
-int ax25_encapsulate(struct sk_buff *skb, struct net_device *dev, unsigned short type, void *daddr, void *saddr, unsigned len)
+int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, void *daddr, void *saddr, unsigned len)
 {
        unsigned char *buff;
 
@@ -88,7 +88,7 @@ int ax25_encapsulate(struct sk_buff *skb, struct net_device *dev, unsigned short
                *buff++ = AX25_P_ARP;
                break;
        default:
-               printk(KERN_ERR "AX.25: ax25_encapsulate - wrong protocol type 0x%2.2x\n", type);
+               printk(KERN_ERR "AX.25: ax25_hard_header - wrong protocol type 0x%2.2x\n", type);
                *buff++ = 0;
                break;
        }
@@ -209,7 +209,7 @@ put:
 
 #else  /* INET */
 
-int ax25_encapsulate(struct sk_buff *skb, struct net_device *dev, unsigned short type, void *daddr, void *saddr, unsigned len)
+int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, void *daddr, void *saddr, unsigned len)
 {
        return -AX25_HEADER_LEN;
 }