Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/netstat/common.h
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#ifndef _NETSTAT_COMMON_H_ | |||||
#define _NETSTAT_COMMON_H_ | |||||
struct bits { | |||||
u_long b_mask; | |||||
char b_val; | |||||
const char *b_name; | |||||
}; | |||||
extern struct bits rt_bits[]; | |||||
const char *fmt_flags(const struct bits *p, int f); | |||||
void print_flags_generic(int flags, const struct bits *pbits, | |||||
const char *format, const char *tag_name); | |||||
int print_sockaddr(const char *name, struct sockaddr *sa, | |||||
struct sockaddr *mask, int flags, int width); | |||||
struct ifmap_entry { | |||||
char ifname[IFNAMSIZ]; | |||||
}; | |||||
struct ifmap_entry *prepare_ifmap(size_t *ifmap_size); | |||||
#endif | |||||