All of lore.kernel.org
 help / color / mirror / Atom feed
* Counters for individual elements in maps and sets?
@ 2017-11-07 13:09 Tomas Mudrunka
  2017-11-07 18:44 ` Arturo Borrero Gonzalez
  0 siblings, 1 reply; 5+ messages in thread
From: Tomas Mudrunka @ 2017-11-07 13:09 UTC (permalink / raw)
  To: Netfilter Users Mailing list

Hello,
i've figured it's possible to simplify my rules by using maps and sets 
instead of using individual rules, but i need to account traffic for 
each address in the map separately. Maybe this can be implemented using 
flags in map/set, so i will be able to enable it like this:

	map prometheus {
		type ipv4_addr : classid;
		flags interval, counter;
		elements = {
			1.1.1.2 : 2:2222 counter packets 10 bytes 5120,
			1.1.1.3 : 3:3333 counter packets 3 bytes 489
		}
	}

just to make it clear, the same map without counters looks like this 
right now:

	map prometheus {
		type ipv4_addr : classid
		flags interval
		elements = {
			1.1.1.2 : 2:2222,
			1.1.1.3 : 3:3333
		}
	}


Will it be ever possible to have per element counters for maps and sets?

Thanks

-- 
S pozdravem
Best regards
      Tomáš Mudruňka - SPOJE.NET s.r.o.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-11 20:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-07 13:09 Counters for individual elements in maps and sets? Tomas Mudrunka
2017-11-07 18:44 ` Arturo Borrero Gonzalez
2017-11-10  7:07   ` Pablo Neira Ayuso
2017-11-10 13:09     ` Tomas Mudrunka
2017-11-11 20:29       ` Raymond Burkholder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.