(no subject)

From: Nathanael M Van Vorst (vanvorst_at_ieee.org)
Date: 07/14/05

  • Next message: Stephen J. Bevan: "Re: GRE and PF problem"
    Date: Thu, 14 Jul 2005 15:49:26 -0600 (MDT)
    To: freebsd-net@freebsd.org
    
    

    I have some questions about netgraph. I have been using the framework for
    project for a little while. I am at the point where I want to hand-off
    netgraph items to a kernel thread or a kernel module. Then I want the
    module or thread to do some processing and hand this back to netgraph.

    I looked through a little bit, and did not find an easy way. Did I miss it?

    Marching on, I wrote up a little module that had two functions that a node
    could call. One to regiter the hook to pass items back on, and one to pass
    items to to the module. Inside the module I call NG_FWD_ITEM to send the
    item back on the passed in hook. It always crashes in the ITEM_DEBUG
    macro. Help? Where should I go? When I get a kernel core, the stack is
    corrupt so it is f no use.

    Thanks!!

    --Nate

    ---------------------------------------
    Nathanael Van Vorst
    vanvorst@ieee.org
    “It is intuitively obvious to even the
                  most casual of observers!”
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Stephen J. Bevan: "Re: GRE and PF problem"

    Relevant Pages

    • Re: NOOB: What is netgraph?
      ... What exactly is netgraph in the kernel? ... > The netgraph system provides a uniform and modular system for the ...
      (comp.unix.bsd.freebsd.misc)
    • Re: in-kernel tcp server
      ... I'm trying to write a little tcp-server kernel module. ... I didn't find a lot of documents about the kernel network programming, ... just one thread which talks about netgraph. ... I started out using netgraph ksockets, but later on it evolved, mainly for performance reasons. ...
      (freebsd-hackers)
    • Re: in-kernel tcp server
      ... On 6/20/07, John Polstra wrote: ... >> I'm trying to write a little tcp-server kernel module. ... >> just one thread which talks about netgraph. ... Nicolas Cormier ...
      (freebsd-hackers)
    • Re: How to do proper locking
      ... > Yes, you are right, but the problem is, that for most callback systems in the ... Not generally applicable to this case but for example the netgraph callout ... It's not applicable because netgraph locking is "different" ... to locking elsewhere in the kernel due to the nature of netgraph. ...
      (freebsd-hackers)
    • netgraph question
      ... I have some questions about netgraph. ... netgraph items to a kernel thread or a kernel module. ... One to regiter the hook to pass items back on, ...
      (freebsd-net)