intercepting RSVP packets with netgraph

From: Aziz KEZZOU (opensource.enthousiat_at_gmail.com)
Date: 02/27/05

  • Next message: ALeine: "Re: RFC: backporting GEOM to the 4.x branch"
    Date: Sun, 27 Feb 2005 14:29:52 -0500
    To: freebsd-hackers@freebsd.org
    
    

    Hi all,
    I've read every thing I could find about netgraph but I still can not
    figure out how to intercept (divert) all IP packets of a certain type
    (say RSVP) and call my own function to process them.

    Notice that the processing has to occur at the kernel level.

    Any help is appreciated. Thanks in advance.

    Aziz Kezzou
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: ALeine: "Re: RFC: backporting GEOM to the 4.x branch"

    Relevant Pages

    • Re: [TEST/REVIEW] ng_ipfw: node to glue together ipfw(4) and netgraph(4)
      ... J> If each active divert socket number had a pointer to the module to which it ... J> to userland socket based targets. ... The packets diverted there would simply go to the netgraph hook ...
      (freebsd-net)
    • Re: [TEST/REVIEW] ng_ipfw: node to glue together ipfw(4) and netgraph(4)
      ... > J> to userland socket based targets. ... Currently of you divert to a divert ... The packets diverted there would simply go to the netgraph hook ...
      (freebsd-net)
    • Re: A netgraph question.
      ... If there is a better way to achieve these goals too, please suggest them but I think netgraph is the way to go. ... The second part involves intercepting network packets and possibly manipulating them before they are allowed to proceed, ... I'm not sure if teh bpf filter assumes it has the whole packet or just the IP packet, but assuming your interface was em0, ... # hook the 'lower' hook of em0 to the bpf filter. ...
      (freebsd-net)
    • Re: Question about bridging code
      ... it looks like netgraph can do what I need to do. ... I guess once I moved away from the IP layer to the link layer, divert sockets ... >> bridge instead, and the transformation is to be performed on the bridged ...
      (freebsd-net)
    • Re: [TEST/REVIEW] ng_ipfw: node to glue together ipfw(4) and netgraph(4)
      ... J> Firstly there is the possibility of making the ipfw stuff a netgraph ... J> divert sockets. ...
      (freebsd-net)