pflow in rdomain

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

pflow in rdomain

Anders Berggren-2
We tried to get pflow running in a non-default rdomain, and found this to get it going. Make sense?

--- sys/net/if_pflow.c.orig Fri Sep 13 20:58:40 2013
+++ sys/net/if_pflow.c Mon Sep 16 13:25:54 2013
@@ -1213,6 +1213,8 @@
  sc->sc_if.if_opackets++;
  sc->sc_if.if_obytes += m->m_pkthdr.len;
 
+ m->m_pkthdr.rdomain = sc->sc_if.if_rdomain;
+
  if ((err = ip_output(m, NULL, NULL, IP_RAWOUTPUT, &sc->sc_imo, NULL))) {
  pflowstats.pflow_oerrors++;
  sc->sc_if.if_oerrors++;

Reply | Threaded
Open this post in threaded view
|

Re: pflow in rdomain

Florian Obser-2
commited, thanks!

On Thu, Oct 31, 2013 at 04:30:51PM +0100, Anders Berggren wrote:

> We tried to get pflow running in a non-default rdomain, and found this to get it going. Make sense?
>
> --- sys/net/if_pflow.c.orig Fri Sep 13 20:58:40 2013
> +++ sys/net/if_pflow.c Mon Sep 16 13:25:54 2013
> @@ -1213,6 +1213,8 @@
>   sc->sc_if.if_opackets++;
>   sc->sc_if.if_obytes += m->m_pkthdr.len;
>  
> + m->m_pkthdr.rdomain = sc->sc_if.if_rdomain;
> +
>   if ((err = ip_output(m, NULL, NULL, IP_RAWOUTPUT, &sc->sc_imo, NULL))) {
>   pflowstats.pflow_oerrors++;
>   sc->sc_if.if_oerrors++;
>

--
I'm not entirely sure you are real.