/systemd/src/libsystemd-network/ |
H A D | sd-lldp.c | 23 #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 D | test-lldp.c | 27 #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 D | sd-lldp.h | 46 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 D | sd-network.h | 136 int sd_network_link_get_lldp(int ifindex, char **lldp);
|
/systemd/src/libsystemd/sd-network/ |
H A D | sd-network.c | 190 _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 D | networkd-link.c | 101 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 D | networkd-link.h | 28 #include "sd-lldp.h" 114 sd_lldp *lldp; member in struct:Link
|
H A D | networkd-network.h | 140 bool lldp; member in struct:Network
|
H A D | networkctl.c | 34 #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 },
|