diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-09-12 17:21:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-12 17:21:01 -0400 |
commit | 6f74998e5c3b4610e6eba06babf16547369c512a (patch) | |
tree | f9a0209a38f508862a762861f79b58c23a05351c /net/ax25/ax25_ip.c | |
parent | c4bc7ee2e474819d3932e8d726fdf7cb0bdc00c1 (diff) |
[AX.25]: Rename ax25_encapsulate to ax25_hard_header
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>
Diffstat (limited to 'net/ax25/ax25_ip.c')
-rw-r--r-- | net/ax25/ax25_ip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ax25/ax25_ip.c b/net/ax25/ax25_ip.c index bba0173e2d65..d643dac3eccc 100644 --- a/net/ax25/ax25_ip.c +++ b/net/ax25/ax25_ip.c | |||
@@ -47,7 +47,7 @@ | |||
47 | 47 | ||
48 | #ifdef CONFIG_INET | 48 | #ifdef CONFIG_INET |
49 | 49 | ||
50 | int ax25_encapsulate(struct sk_buff *skb, struct net_device *dev, unsigned short type, void *daddr, void *saddr, unsigned len) | 50 | int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, void *daddr, void *saddr, unsigned len) |
51 | { | 51 | { |
52 | unsigned char *buff; | 52 | unsigned char *buff; |
53 | 53 | ||
@@ -88,7 +88,7 @@ int ax25_encapsulate(struct sk_buff *skb, struct net_device *dev, unsigned short | |||
88 | *buff++ = AX25_P_ARP; | 88 | *buff++ = AX25_P_ARP; |
89 | break; | 89 | break; |
90 | default: | 90 | default: |
91 | printk(KERN_ERR "AX.25: ax25_encapsulate - wrong protocol type 0x%2.2x\n", type); | 91 | printk(KERN_ERR "AX.25: ax25_hard_header - wrong protocol type 0x%2.2x\n", type); |
92 | *buff++ = 0; | 92 | *buff++ = 0; |
93 | break; | 93 | break; |
94 | } | 94 | } |
@@ -209,7 +209,7 @@ put: | |||
209 | 209 | ||
210 | #else /* INET */ | 210 | #else /* INET */ |
211 | 211 | ||
212 | int ax25_encapsulate(struct sk_buff *skb, struct net_device *dev, unsigned short type, void *daddr, void *saddr, unsigned len) | 212 | int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, void *daddr, void *saddr, unsigned len) |
213 | { | 213 | { |
214 | return -AX25_HEADER_LEN; | 214 | return -AX25_HEADER_LEN; |
215 | } | 215 | } |