Searched refs:tlv_packet (Results 1 - 6 of 6) sorted by relevance

/systemd/src/libsystemd-network/
H A Dlldp-tlv.h31 typedef struct sd_lldp_packet tlv_packet; typedef in typeref:struct:sd_lldp_packet
73 int tlv_packet_new(tlv_packet **ret);
75 int lldp_tlv_packet_open_container(tlv_packet *m, uint16_t type);
76 int lldp_tlv_packet_close_container(tlv_packet *m);
78 int tlv_packet_append_bytes(tlv_packet *m, const void *data, size_t data_length);
79 int tlv_packet_append_u8(tlv_packet *m, uint8_t data);
80 int tlv_packet_append_u16(tlv_packet *m, uint16_t data);
81 int tlv_packet_append_u32(tlv_packet *m, uint32_t data);
82 int tlv_packet_append_string(tlv_packet *m, char *data, uint16_t size);
84 int lldp_tlv_packet_enter_container(tlv_packet *
[all...]
H A Dlldp-internal.h45 tlv_packet *packet;
50 int lldp_neighbour_port_new(lldp_chassis *c, tlv_packet *tlv, lldp_neighbour_port **ret);
75 int lldp_chassis_new(tlv_packet *tlv,
85 int lldp_mib_update_objects(lldp_chassis *c, tlv_packet *tlv);
86 int lldp_mib_add_objects(Prioq *by_expiry, Hashmap *neighbour_mib, tlv_packet *tlv);
87 int lldp_mib_remove_objects(lldp_chassis *c, tlv_packet *tlv);
89 int lldp_handle_packet(tlv_packet *m, uint16_t length);
H A Dlldp-tlv.c48 int tlv_packet_new(tlv_packet **ret) {
49 tlv_packet *m;
51 m = new0(tlv_packet, 1);
63 tlv_packet *sd_lldp_packet_ref(tlv_packet *m) {
74 tlv_packet *sd_lldp_packet_unref(tlv_packet *m) {
93 int tlv_packet_append_bytes(tlv_packet *m, const void *data, size_t data_length) {
110 int tlv_packet_append_u8(tlv_packet *m, uint8_t data) {
117 int tlv_packet_append_u16(tlv_packet *
[all...]
H A Dtest-lldp.c47 static int lldp_build_tlv_packet(tlv_packet **ret) {
48 _cleanup_(sd_lldp_packet_unrefp) tlv_packet *m = NULL;
110 static int lldp_parse_chassis_tlv(tlv_packet *m, uint8_t *type) {
135 static int lldp_parse_port_id_tlv(tlv_packet *m) {
163 static int lldp_parse_system_name_tlv(tlv_packet *m) {
181 static int lldp_parse_system_desc_tlv(tlv_packet *m) {
199 static int lldp_parse_ttl_tlv(tlv_packet *m) {
212 static int lldp_get_destination_type(tlv_packet *m) {
221 static int lldp_parse_tlv_packet(tlv_packet *m, int len) {
237 _cleanup_(sd_lldp_packet_unrefp) tlv_packet *tl
[all...]
H A Dlldp-internal.c37 int lldp_mib_update_objects(lldp_chassis *c, tlv_packet *tlv) {
74 int lldp_mib_remove_objects(lldp_chassis *c, tlv_packet *tlv) {
102 tlv_packet *tlv) {
245 tlv_packet *tlv,
296 int lldp_chassis_new(tlv_packet *tlv,
336 _cleanup_(sd_lldp_packet_unrefp) tlv_packet *packet = NULL;
337 tlv_packet *p;
H A Dsd-lldp.c109 static int lldp_receive_frame(sd_lldp *lldp, tlv_packet *tlv) {
145 int lldp_handle_packet(tlv_packet *tlv, uint16_t length) {

Completed in 847 milliseconds