Re: Net Driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use   devinet_ioctl wrapped by get/set_fs.

CMD will be  SIOCSIFADDR
Arg will be of type struct ifreq.

- nalin gupta
  Linux Engineer
  Impulsesoft Pvt Ltd., 
  Bangalore
--------------------------------------------------------

On Wed, 26 Mar 2003 16:19:05  
 Mahesh Pujara wrote:
>
>HI,
>      I am writing one Dummy Net Driver and registering my interface as
>Port0 and Port1.
>through  ifconfig  command  i  am able too  see the  my interfaces listed.
>
>In Driver's  Open method i am assigning Some hard ware address which i can
> see once i do the ifconfig.
>
>Once i do the  ifconfig port0 x.y.z.w
>
>the hardware address and Ip address are also listed.
>
>I don't want to do  manually  ifconfig port0 x.y.z.w
>
>
>I want my driver to assign Ip address also.
>So how  this can be achieved.  I don't have any actual device .
>
>
>
>
>Regards,
>Mahesh Pujara
>
>
>
>
>-
>: send the line "unsubscribe linux-net" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux