/* * netsniff-ng - the packet sniffing beast * Copyright 2009, 2010 Daniel Borkmann. * Copyright 2014, 2015 Tobias Klauser * Subject to the GPL, version 2. */ #ifndef LOOKUP_H #define LOOKUP_H enum lookup_type { LT_PORTS_UDP, LT_PORTS_TCP, LT_ETHERTYPES, LT_OUI, LT_MAX, }; extern void lookup_init(enum lookup_type which); extern void lookup_cleanup(enum lookup_type which); extern const char *lookup_port_udp(unsigned int id); extern const char *lookup_port_tcp(unsigned int id); extern const char *lookup_ether_type(unsigned int id); extern const char *lookup_vendor(unsigned int id); static inline const char *lookup_vendor_str(unsigned int id) { return lookup_vendor(id) ? : "Unknown"; } #endif /* LOOKUP_H */ rowspan='2'>cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/Documentation/.gitignore
diff options
context:
space:
mode:
authorXiubo Li <lixiubo@cmss.chinamobile.com>2016-01-04 18:00:35 +0800
committerMark Brown <broonie@kernel.org>2016-02-20 01:12:32 +0900
commitce11020f0e82dbb18eb59b6f6ce92cc0410b353e (patch)
treefd4032d2861d5d06187419cb156cdcb5c47a577b /Documentation/.gitignore
parent8b31ec5572f812acac36f3d02944ade76a8f51b9 (diff)
regcache: flat: Introduce register strider order
Here we introduce regcache_flat_get_index(), which using register stride order and bit rotation, will save some memory spaces for flat cache. Though this will also lost some access performance, since the bit rotation is used to get the index of the cache array, and this could be ingored for memory I/O accessing. Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/.gitignore')