trivial: use 'preferred' attribute name for preferred lifetime

This commit is contained in:
Pavel Šimerda 2013-07-29 14:40:50 +02:00
parent 439473e9a4
commit f6ef374076
2 changed files with 2 additions and 2 deletions

View file

@ -481,7 +481,7 @@ receive_ra (struct ndp *ndp, struct ndp_msg *msg, gpointer user_data)
address.address = route.network;
address.timestamp = now;
address.lifetime = ndp_msg_opt_prefix_valid_time (msg, offset);
address.preferred_lft = ndp_msg_opt_prefix_preferred_time (msg, offset);
address.preferred = ndp_msg_opt_prefix_preferred_time (msg, offset);
fill_address_from_mac (&address.address, lladdr);

View file

@ -60,7 +60,7 @@ typedef struct {
struct in6_addr address;
guint32 timestamp;
guint32 lifetime;
guint32 preferred_lft;
guint32 preferred;
} NMRDiscAddress;
typedef struct {