summaryrefslogtreecommitdiff
path: root/oui.h
blob: 4ad616e0c2df9f31c8e3e08ddfc2d45cda6705fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * netsniff-ng - the packet sniffing beast
 * Copyright 2012 Daniel Borkmann.
 * Subject to the GPL, version 2.
 */

#ifndef OUI_H
#define OUI_H

extern const char *lookup_vendor(unsigned int id);
extern void dissector_init_oui(void);
extern void dissector_cleanup_oui(void);

static inline const char *lookup_vendor_str(unsigned int id)
{
	return lookup_vendor(id) ? : "Unknown";
}

#endif /* OUI_H */
'right'>2016-09-13 04:35:52 +0900 committerDavid Sterba <dsterba@suse.com>2016-09-26 18:08:38 +0200 commite2c8990734874061d144184dbf0d66e2827c216f (patch) treedb7e9e2e3a5c56ee271892af33dcc50a1d5f3355 parent6b722c1747d533ac6d4df110dc8233db46918b65 (diff)
btrfs: squash lines for simple wrapper functions
Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat