Re: Network driver for logical interface

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

 



----- Original Message -----
From: "Ravi Kumar" <ravivsn@rocsys.com>
To: <kernelnewbies@nl.linux.org>
Sent: Wednesday, April 14, 2004 7:27 PM
Subject: Network driver for logical interface


> Hi All,
>  I am writing a network driver for logical ethernet interface. I would
> like to know what are the fields to set in device structure. It should
> reply to ARP requests.
Do you mean loopback interface? If yes, you call netif_rx in
dev->hard_start_xmit. You should never need ARP for loopback as loopback
interface's IP address is never resolved.

>
> Currently I am doing the following
>     - called ether_setup()
> set the fields
>     - dev->open
>     - dev->stop
>     - dev->hard_start_xmit
>     - dev->set_mac_address
>     - dev->do_ioctl
>     - dev->get_stats
>
>     - dev->mtu
>     - called skb_queue_head_init()
>
> Please correct me If I am missing any. Also pls refer related modules to
> look into.
>
> Thanks a  lot
> -Ravi
>
>
>
>
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>
>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux