diff options
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | 2009-07-27 12:42:34 +0200 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-08-03 16:52:30 +0100 |
commit | a8ba847ff96b41e06770d4987b15707890ed5807 (patch) | |
tree | 07864eb958853e5ad7b2616c9b7bc5259a8ae503 /ospfd/ospf_route.h | |
parent | bd5403778b0d96258730050e4526c7c72903e60b (diff) |
ospfd: Change struct ospf_path *oi to ifindex.
* global: In struct ospf_path, change struct ospf_interface *oi to int
ifindex. It is unsafe to reference *oi as an ospf interface can be
deleted under your feet. Use a weak reference instead.
Diffstat (limited to 'ospfd/ospf_route.h')
-rw-r--r-- | ospfd/ospf_route.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_route.h b/ospfd/ospf_route.h index 0d37436d..17ab68e5 100644 --- a/ospfd/ospf_route.h +++ b/ospfd/ospf_route.h @@ -39,7 +39,7 @@ struct ospf_path { struct in_addr nexthop; struct in_addr adv_router; - struct ospf_interface *oi; + unsigned int ifindex; }; /* Below is the structure linked to every |