summaryrefslogtreecommitdiffstats
path: root/net/ax25/ax25_ds_subr.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@ghostprotocols.net>2005-04-24 18:53:06 -0700
committerDavid S. Miller <davem@davemloft.net>2005-04-24 18:53:06 -0700
commit56cb515628e6a831bb76783f282a71f7285dad33 (patch)
treeef7a70e6269eaf6f616066b6e1cd718a394d94bb /net/ax25/ax25_ds_subr.c
parent3b2d59d1fc86cc7217f165100a939907802dc67c (diff)
downloadop-kernel-dev-56cb515628e6a831bb76783f282a71f7285dad33.zip
op-kernel-dev-56cb515628e6a831bb76783f282a71f7285dad33.tar.gz
[AX25] Introduce ax25_type_trans
Replacing the open coded equivalents and making ax25 look more like a linux network protocol, i.e. more similar to inet. Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25/ax25_ds_subr.c')
-rw-r--r--net/ax25/ax25_ds_subr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ax25/ax25_ds_subr.c b/net/ax25/ax25_ds_subr.c
index 10ffd2b..1d4ab64 100644
--- a/net/ax25/ax25_ds_subr.c
+++ b/net/ax25/ax25_ds_subr.c
@@ -143,8 +143,7 @@ static void ax25_kiss_cmd(ax25_dev *ax25_dev, unsigned char cmd, unsigned char p
*p++ = cmd;
*p++ = param;
- skb->dev = ax25_dev->dev;
- skb->protocol = htons(ETH_P_AX25);
+ skb->protocol = ax25_type_trans(skb, ax25_dev->dev);
dev_queue_xmit(skb);
}
OpenPOWER on IntegriCloud