Dan McDonald wrote:

Let's say I have a setup like this:

        ip.tun0:0    a --> b

        ip.tun0:1    a --> c

        ip.tun0:2    a --> d

Internally, each one corresponds to an ipif_t structure, which has no packet
or byte counters!

Is there a practical, programmatic way to see if traffic has passed over a
"virtual" interface?  The problem I'm trying to solve, BTW, is to remove
virtual interfaces that have no traffic on them after a certain period.

If the current answer is "no", would future projects already in the pipeline
(i.e. Clearview) change this answer?

One way that I can think of to do this is to use IPFilter's (:-)
count rules with filters that somehow distinguish :0 traffic
from :1 traffic.  You can reset the counters back to 0 with
a cronjob and look for inactivity at the same time.

Is that within the scope of possibility for you?

Darren

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to