Lines Matching defs:port
30 #include "lldp-port.h"
59 lldp_port *port;
149 lldp_port *port;
157 port = (lldp_port *) tlv->userdata;
158 lldp = (sd_lldp *) port->userdata;
160 if (lldp->port->status == LLDP_PORT_STATUS_DISABLED) {
161 log_lldp("Port: %s is disabled. Dropping.", lldp->port->ifname);
442 LIST_FOREACH_SAFE(port, p, q, c->ports) {
473 LIST_FOREACH(port, p, c->ports) {
596 assert_return(lldp->port, -EINVAL);
598 lldp->port->status = LLDP_PORT_STATUS_ENABLED;
602 r = lldp_port_start(lldp->port);
605 lldp->port->ifname,
622 assert_return(lldp->port, -EINVAL);
624 lldp->port->status = LLDP_PORT_STATUS_DISABLED;
626 r = lldp_port_stop(lldp->port);
639 assert_return(!lldp->port->event, -EBUSY);
642 lldp->port->event = sd_event_ref(event);
644 r = sd_event_default(&lldp->port->event);
649 lldp->port->event_priority = priority;
658 lldp->port->event = sd_event_unref(lldp->port->event);
680 lldp_port_free(lldp->port);
705 r = lldp_port_new(ifindex, ifname, mac, lldp, &lldp->port);
736 LIST_FOREACH(port, p, c->ports)
751 LIST_FOREACH(port, p, c->ports)