Re: customized ip stack over ethernet

From: Bernhard Kastner (bkastner_at_aon.at)
Date: 09/29/04


Date: Wed, 29 Sep 2004 15:23:23 +0200

Sherman schrieb:
> Måns Rullgård <mru@mru.ath.cx> wrote in message news:<yw1xbrfqxmgv.fsf@mru.ath.cx>...
>
>>aldernetworks@gmail.com (Sherman) writes:
>>
>>
>>>My specific question is, how should the application talk to
>>>the ether driver to transmit an ether frame, and get notified
>>>when an ether frame is received? Thanks,
>>
>>raw sockets
>
>
> raw socket is fine but it involves the ip stack in kernel. I would like to
> dis-associate the kernel ip stack with the ether driver, and intercept the
> packets with my customized ip stack, for performance reason. Is there any
> way to do that? Do I have to rewrite the device driver for the particular
> NIC card, or there is any universal driver interface to do that?
>
> - Sherman

you're going to do a LOT of work.
Do yourself a favor and use the kernel IP Stack. I can't imagine such
serious performance issues as that you would have to rewrite the stack ;)



Relevant Pages

  • [Full-disclosure] PHRACK 64: ATTACKING THE CORE
    ... - The Slab Allocator ... - Slab overflow exploiting: ... - Forcing a kernel path to sleep ... - Stack Frame Flow Recovery ...
    (Full-Disclosure)
  • Re: [Bug #11342] Linux 2.6.27-rc3: kernel BUG at mm/vmalloc.c - bisected
    ... stack usages for you is that they contain a 'cpumask_t' on the stack. ... We can enable MAXSMP and raise the CPU limits some time in the future. ... not accept a specially built kernel, but only a kernel that has been ... know how extensively these distributions test and certify for many known ...
    (Linux-Kernel)
  • Re: Interrupt context...
    ... > gone through most of the posts on interrupt in usenet. ... > kernel stack and ISR is executed. ... More may be saved depending on the architecture. ... Here the kernel have assembler code to save all general ...
    (comp.os.linux.development.system)
  • Re: The Linux Staging tree, what it is and is not.
    ... if you compromize them and write the wrong ones to the stack, ... Load two user space fieldbus stacks on the same network card (remembering ... right, but that's the same, no matter if it runs in kernel or user ... need an objdict API to userspace...? ...
    (Linux-Kernel)
  • Re: The Linux Staging tree, what it is and is not.
    ... Load two user space fieldbus stacks on the same network card (remembering ... need an objdict API to userspace...? ... It depends where you split the stack between kernel and user space. ...
    (Linux-Kernel)