[root@localhost lldpParse]# gcc main.c
[root@localhost lldpParse]# ./a.out
lldp socket initial ok
switch mac address:00:07:7c:56:ef:80
port mac address:00:07:7c:56:ef:82
switch ip address:147.10.1.3
switch port:10/100TX Eth X1
switch vlan id:2
switch vlan name:vlan2
switch mac address:00:07:7c:56:ef:80
port mac address:00:07:7c:56:ef:82
switch ip address:147.10.1.3
switch port:10/100TX Eth X1
switch vlan id:2
switch vlan name:vlan2