printk(KERN_INFO "In SIOCSIFHWADDR"); 
static int mkiss_ioctl(struct tty_struct *tty, struct file *file,	unsigned int cmd, unsigned long arg){	struct mkiss *ax = mkiss_get(tty);	struct net_device *dev = ax->dev;	unsigned int tmp, err;	/* First make sure we're connected. */	if (ax == NULL)		return -ENXIO;	switch (cmd) { 	case SIOCGIFNAME:		err = copy_to_user((void __user *) arg, ax->dev->name,		                   strlen(ax->dev->name) + 1) ? -EFAULT : 0;		break;	case SIOCGIFENCAP:		err = put_user(4, (int __user *) arg);		break;	case SIOCSIFENCAP:		if (get_user(tmp, (int __user *) arg)) {			err = -EFAULT;			break;		}		ax->mode = tmp;		dev->addr_len        = AX25_ADDR_LEN;		dev->hard_header_len = AX25_KISS_HEADER_LEN +		                       AX25_MAX_HEADER_LEN + 3;		dev->type            = ARPHRD_AX25;		err = 0;		break;	case SIOCSIFHWADDR: {		char addr[AX25_ADDR_LEN];printk(KERN_INFO "In SIOCSIFHWADDR");		if (copy_from_user(&addr,		                   (void __user *) arg, AX25_ADDR_LEN)) {			err = -EFAULT;			break;		}		spin_lock_irq(&dev->xmit_lock);		memcpy(dev->dev_addr, addr, AX25_ADDR_LEN);		spin_unlock_irq(&dev->xmit_lock);		err = 0;		break;	}	default:		err = -ENOIOCTLCMD;	}	mkiss_put(ax);	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/96eb549c0c20cf63ca13fac71d9d406701f744a6/mkiss.c/clean/drivers/net/hamradio/mkiss.c