~ubuntu-branches/ubuntu/raring/iproute/raring-proposed

« back to all changes in this revision

Viewing changes to ip/ip_common.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2006-11-14 15:18:53 UTC
  • mto: (3.1.1 etch) (1.1.7 upstream) (23.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20061114151853-4pojonfwjxhzx7z9
Tags: upstream-20061002
ImportĀ upstreamĀ versionĀ 20061002

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
                          void *arg);
7
7
extern int print_neigh(const struct sockaddr_nl *who,
8
8
                       struct nlmsghdr *n, void *arg);
 
9
extern int print_ntable(const struct sockaddr_nl *who,
 
10
                        struct nlmsghdr *n, void *arg);
9
11
extern int ipaddr_list(int argc, char **argv);
10
12
extern int ipaddr_list_link(int argc, char **argv);
11
13
extern int iproute_monitor(int argc, char **argv);
13
15
extern void iproute_reset_filter(void);
14
16
extern void ipaddr_reset_filter(int);
15
17
extern void ipneigh_reset_filter(void);
 
18
extern void ipntable_reset_filter(void);
16
19
extern int print_route(const struct sockaddr_nl *who, 
17
20
                       struct nlmsghdr *n, void *arg);
18
21
extern int print_prefix(const struct sockaddr_nl *who,
21
24
extern int do_iproute(int argc, char **argv);
22
25
extern int do_iprule(int argc, char **argv);
23
26
extern int do_ipneigh(int argc, char **argv);
 
27
extern int do_ipntable(int argc, char **argv);
24
28
extern int do_iptunnel(int argc, char **argv);
25
29
extern int do_iplink(int argc, char **argv);
26
30
extern int do_ipmonitor(int argc, char **argv);
28
32
extern int do_multiroute(int argc, char **argv);
29
33
extern int do_xfrm(int argc, char **argv);
30
34
 
 
35
static inline int rtm_get_table(struct rtmsg *r, struct rtattr **tb)
 
36
{
 
37
        __u32 table = r->rtm_table;
 
38
        if (tb[RTA_TABLE])
 
39
                table = *(__u32*) RTA_DATA(tb[RTA_TABLE]);
 
40
        return table;
 
41
}
 
42
 
31
43
extern struct rtnl_handle rth;