using netgraph to create a pair of pseudo ethernet interface



Dear All,
Any one know how to us netgraph to create a pair of pseudo ethernet interface. The packet
go out from one and in another.
Thanks alot
Zhouyi Zhou
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [PATCH] ng_pf and l7 filtering possibility with PF
    ... It allows interaction of PF and netgraph. ... 1- By default it sends any packet that matches the rule to netgraph. ... 3- You can specify flags when adding the tag to the node. ... pass in on $int tagged ONCE_TO_NETGRAPH netgraph 42 ...
    (freebsd-net)
  • Re: Intercepting a packet, changing it and re-injecting into the network
    ... > I'm developing a network application which needs *to intercept* a packet ... Divert is designed for diverting from the IP layer, to the user layer for processing. ... If you want to work in the kernel, then take a look at netgraph. ...
    (freebsd-net)
  • Re: netgraph to userspace?
    ... Is it possible to take a packet from netgraph to userspace and drop it ... insert some netgraph node between say lower and upper of a ng_ether ...
    (freebsd-net)
  • Re: PF - netgraph integration
    ... on netgraph part, since they use strings for matching. ... of hook to either PF tags compatible or normalone? ... In my mind we only want to know that the packet has been through netgraph ... flags so we can distinguish if the packet have been sent once to ...
    (freebsd-net)