Searched refs:lldp (Results 1 - 9 of 9) sorted by relevance

/systemd/src/libsystemd-network/
H A Dsd-lldp.c23 #include "sd-lldp.h"
29 #include "lldp-internal.h"
30 #include "lldp-port.h"
31 #include "lldp-tlv.h"
105 static void lldp_mib_delete_objects(sd_lldp *lldp);
106 static void lldp_set_state(sd_lldp *lldp, LLDPAgentRXState state);
109 static int lldp_receive_frame(sd_lldp *lldp, tlv_packet *tlv) { argument
112 assert(lldp);
116 if (prioq_size(lldp->by_expiry) > 0) {
118 lldp_set_state(lldp, LLDP_AGENT_RX_DELETE_INF
151 sd_lldp *lldp; local
377 lldp_set_state(sd_lldp *lldp, LLDPAgentRXState state) argument
387 lldp_run_state_machine(sd_lldp *lldp) argument
405 lldp_mib_delete_objects(sd_lldp *lldp) argument
431 lldp_mib_objects_flush(sd_lldp *lldp) argument
451 sd_lldp_save(sd_lldp *lldp, const char *lldp_file) argument
592 sd_lldp_start(sd_lldp *lldp) argument
618 sd_lldp_stop(sd_lldp *lldp) argument
635 sd_lldp_attach_event(sd_lldp *lldp, sd_event *event, int priority) argument
654 sd_lldp_detach_event(sd_lldp *lldp) argument
663 sd_lldp_set_callback(sd_lldp *lldp, sd_lldp_cb_t cb, void *userdata) argument
672 sd_lldp_unref(sd_lldp *lldp) argument
726 sd_lldp_get_packets(sd_lldp *lldp, sd_lldp_packet ***tlvs) argument
[all...]
H A Dtest-lldp.c27 #include "sd-lldp.h"
31 #include "lldp-network.h"
32 #include "lldp-tlv.h"
33 #include "lldp.h"
38 #define TEST_LLDP_TYPE_SYSTEM_NAME "systemd-lldp"
39 #define TEST_LLDP_TYPE_SYSTEM_DESC "systemd-lldp-desc"
255 static void lldp_handler (sd_lldp *lldp, int event, void *userdata) { argument
259 static int start_lldp(sd_lldp **lldp, sd_event *e, sd_lldp_cb_t cb, void *cb_data) { argument
262 r = sd_lldp_new(42, "dummy", &mac_addr, lldp);
266 r = sd_lldp_attach_event(*lldp,
281 stop_lldp(sd_lldp *lldp) argument
299 sd_lldp *lldp; local
365 sd_lldp *lldp; local
392 sd_lldp *lldp; local
[all...]
/systemd/src/systemd/
H A Dsd-lldp.h46 typedef void (*sd_lldp_cb_t)(sd_lldp *lldp, int event, void *userdata);
49 sd_lldp* sd_lldp_unref(sd_lldp *lldp);
51 int sd_lldp_start(sd_lldp *lldp);
52 int sd_lldp_stop(sd_lldp *lldp);
54 int sd_lldp_attach_event(sd_lldp *lldp, sd_event *event, int priority);
55 int sd_lldp_detach_event(sd_lldp *lldp);
57 int sd_lldp_set_callback(sd_lldp *lldp, sd_lldp_cb_t cb, void *userdata);
58 int sd_lldp_save(sd_lldp *lldp, const char *file);
80 int sd_lldp_get_packets(sd_lldp *lldp, sd_lldp_packet ***tlvs);
H A Dsd-network.h136 int sd_network_link_get_lldp(int ifindex, char **lldp);
/systemd/src/libsystemd/sd-network/
H A Dsd-network.c190 _public_ int sd_network_link_get_lldp(int ifindex, char **lldp) { argument
196 assert_return(lldp, -EINVAL);
198 if (asprintf(&p, "/run/systemd/netif/lldp/%d", ifindex) < 0)
209 *lldp = s;
/systemd/src/network/
H A Dnetworkd-link.c101 return link->network->lldp;
351 r = asprintf(&link->lldp_file, "/run/systemd/netif/lldp/%d",
404 sd_lldp_unref(link->lldp);
530 if (link->lldp) {
531 k = sd_lldp_stop(link->lldp);
1233 static void lldp_handler(sd_lldp *lldp, int event, void *userdata) { argument
1243 r = sd_lldp_save(link->lldp, link->lldp_file);
1315 assert(link->lldp);
1319 r = sd_lldp_start(link->lldp);
2112 r = sd_lldp_new(link->ifindex, link->ifname, &link->mac, &link->lldp);
[all...]
H A Dnetworkd-link.h28 #include "sd-lldp.h"
114 sd_lldp *lldp; member in struct:Link
H A Dnetworkd-network.h140 bool lldp; member in struct:Network
H A Dnetworkctl.c34 #include "lldp.h"
931 _cleanup_free_ char *chassis = NULL, *port = NULL, *cap = NULL, *lldp = NULL; local
934 r = sd_network_link_get_lldp(links[i].ifindex, &lldp);
938 l = strv_split_newlines(lldp);
1025 " lldp Show lldp information\n"
1089 { "lldp", VERB_ANY, 1, VERB_DEFAULT, link_lldp_status },

Completed in 1673 milliseconds