summaryrefslogtreecommitdiff
path: root/lookup.h
blob: 38161b6c175d33857bfbe9902a51432253ef0495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * 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 */
>2011-11-01 00:11:41 +0100 commita7fadac10ffbfd16cc7ccf951eab1ecf85e1abdf (patch) tree64a1035b02cb8aae34b96fc7c1c7caaad337ac07 /arch/arm/mach-imx/mach-pca100.c parent335332770c68649ffeaf5dc2b58d9cd40041e295 (diff)parent531a6a941745e1e045dd2a6bd09e1dc01247a5f3 (diff)
Merge branch 'depends/rmk/devel-stable' into next/board
The exynos4 updates conflict with code from the arm devel-stable branch and new boards need to set atag_offset in place of boot_param. Conflicts: arch/arm/Kconfig arch/arm/mach-exynos4/include/mach/entry-macro.S arch/arm/mach-exynos4/mach-smdkc210.c arch/arm/mach-exynos4/mach-smdkv310.c arch/arm/mach-exynos4/mct.c Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-imx/mach-pca100.c')