lldp: Remove unused definitions from headers.
authorBen Pfaff <blp@nicira.com>
Mon, 23 Feb 2015 05:04:47 +0000 (21:04 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2015 00:22:34 +0000 (16:22 -0800)
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/lldp/lldpd-structs.h
lib/lldp/lldpd.h
lib/ovs-lldp.h

index 86df740..02448a8 100644 (file)
@@ -104,11 +104,6 @@ struct lldpd_port {
     struct ovs_list p_isid_vlan_maps; /* Contains "struct lldpd_aa_isid_vlan_maps_tlv"s. */
 };
 
-/* Used to modify some port related settings */
-struct lldpd_port_set {
-    char *ifname;
-};
-
 /* Smart mode / Hide mode */
 #define SMART_INCOMING_FILTER     (1<<0) /* Incoming filtering enabled */
 #define SMART_INCOMING_ONE_PROTO  (1<<1) /* On reception, keep only 1 proto */
index a0b0fe3..ae167fb 100644 (file)
@@ -27,7 +27,6 @@
 #include <stddef.h>
 #include <string.h>
 #include <sys/types.h>
-#include <sys/un.h>
 #include "dp-packet.h"
 #include "list.h"
 #include "lldpd-structs.h"
 #include "packets.h"
 #include "openvswitch/vlog.h"
 
-#define SYSCONFDIR       ""
-#define LLDPD_CTL_SOCKET ""
-#define LLDPCLI_PATH     ""
-#define PRIVSEP_USER     ""
-#define PRIVSEP_GROUP    ""
-#define PRIVSEP_CHROOT   ""
-
 #define ETHERTYPE_LLDP 0x88cc
 
-struct event;
-struct event_base;
-
 #define LLDPD_TX_INTERVAL      5
 #define LLDPD_TX_HOLD          4
 #define LLDPD_TTL              LLDPD_TX_INTERVAL * LLDPD_TX_HOLD
-#define LLDPD_TX_MSGDELAY      1
-#define LLDPD_MAX_NEIGHBORS    4
-#define LLDPD_FAST_TX_INTERVAL 1
-#define LLDPD_FAST_INIT        4
-
-#define USING_AGENTX_SUBAGENT_MODULE 1
 
 #define PROTO_SEND_SIG struct lldpd *, struct lldpd_hardware *,struct dp_packet *
 #define PROTO_DECODE_SIG struct lldpd *, char *, int, struct lldpd_hardware *,\
index 51d668f..0c8c501 100644 (file)
 #include "hmap.h"
 #include "list.h"
 #include "lldp/lldpd.h"
-#include "ovsdb-data.h"
-#include "ovs-thread.h"
 #include "packets.h"
 #include "timer.h"
 
 /* Transmit every LLDPD_TX_INTERVAL seconds. */
 #define LLDP_DEFAULT_TRANSMIT_INTERVAL_MS LLDPD_TX_INTERVAL * 1000
 
-struct flow_wildcards;
 struct flow;
 struct netdev;
 struct smap;
 
-struct lldp_status {
-    /* TODO should reflect lldp stack detail */
-    char *stackdetail; /* Added because MSVC doesn't like empty structs */
-};
-
 /* Structure per LLDP instance (at the moment per port when enabled).
  */
 struct lldp {