Skip to content

Commit

Permalink
Move rfc6126_compatible into struct buffered.
Browse files Browse the repository at this point in the history
  • Loading branch information
jech committed Oct 23, 2018
1 parent 52c28e4 commit 0733e6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,7 @@ interface_up(struct interface *ifp, int up)
"but timestamps are disabled on interface %s.\n",
ifp->name);

if(IF_CONF(ifp, rfc6126) == CONFIG_YES)
ifp->flags |= IF_RFC6126;
else
ifp->flags &= ~IF_RFC6126;
ifp->buf.rfc6126_compatible = (IF_CONF(ifp, rfc6126) == CONFIG_YES);

rc = check_link_local_addresses(ifp);
if(rc < 0) {
Expand Down
3 changes: 1 addition & 2 deletions interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ struct interface_conf {
#define IF_FARAWAY (1 << 4)
/* Send most TLVs over unicast. */
#define IF_UNICAST (1 << 5)
/* Remain compatible with RFC 6126. */
#define IF_RFC6126 (1 << 6)

/* Only INTERFERING can appear on the wire. */
#define IF_CHANNEL_UNKNOWN 0
Expand All @@ -88,6 +86,7 @@ struct buffered {
int flush_interval;
struct timeval timeout;
char enable_timestamps;
char rfc6126_compatible;
char have_id;
char have_nh;
char have_prefix;
Expand Down

0 comments on commit 0733e6a

Please sign in to comment.