summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorajs <ajs>2005-02-08 15:59:16 +0000
committerajs <ajs>2005-02-08 15:59:16 +0000
commitbf435ab4a59f1ddc83f6c913cf1d2021c67d6ac1 (patch)
treeab43dd4073783f5657100a7abf5d459b63efb10a
parent141e3f4e7ac3c92dd0a0c747f41b87ced121dc14 (diff)
downloadquagga-bf435ab4a59f1ddc83f6c913cf1d2021c67d6ac1.tar.bz2
quagga-bf435ab4a59f1ddc83f6c913cf1d2021c67d6ac1.tar.xz
2005-02-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* ospf_interface.h: Reduce structure padding by putting new u_char field multicast_memberships in a better spot (grouped with other u_char fields type and state).
-rw-r--r--ospfd/ChangeLog6
-rw-r--r--ospfd/ospf_interface.h6
2 files changed, 9 insertions, 3 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog
index b9e21c5b..0d7bd9c4 100644
--- a/ospfd/ChangeLog
+++ b/ospfd/ChangeLog
@@ -1,5 +1,11 @@
2005-02-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+ * ospf_interface.h: Reduce structure padding by putting new u_char
+ field multicast_memberships in a better spot (grouped with
+ other u_char fields type and state).
+
+2005-02-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
* ospf_interface.h: Improve passive_interface comment. Add new
multicast_memberships bitmask to struct ospf_interface to track
active multicast subscriptions. Declare new function
diff --git a/ospfd/ospf_interface.h b/ospfd/ospf_interface.h
index ca22c1a0..b49a3517 100644
--- a/ospfd/ospf_interface.h
+++ b/ospfd/ospf_interface.h
@@ -123,14 +123,14 @@ struct ospf_interface
/* State of Interface State Machine. */
u_char state;
- struct prefix *address; /* Interface prefix */
- struct connected *connected; /* Pointer to connected */
-
/* To which multicast groups do we currently belong? */
u_char multicast_memberships;
#define MEMBER_ALLROUTERS 0x1
#define MEMBER_DROUTERS 0x2
+ struct prefix *address; /* Interface prefix */
+ struct connected *connected; /* Pointer to connected */
+
/* Configured varables. */
struct ospf_if_params *params;
u_int32_t crypt_seqnum; /* Cryptographic Sequence Number */