my command: gcc -o br2684ctl brctl-010226.c -latm &&
> su
response:
brctl-010226.c:8:17: error: atm.h: No such file or directory
In file included from /usr/include/linux/atmdev.h:11,
from brctl-010226.c:9:
/usr/include/linux/atm.h:215: error: expected specifier-qualifier-list before 'uint32_t'
In file included from /usr/include/linux/atmbr2684.h:5,
from brctl-010226.c:10:
/usr/include/linux/if.h:164: error: field 'ifru_addr' has incomplete type
/usr/include/linux/if.h:165: error: field 'ifru_dstaddr' has incomplete type
/usr/include/linux/if.h:166: error: field 'ifru_broadaddr' has incomplete type
/usr/include/linux/if.h:167: error: field 'ifru_netmask' has incomplete type
/usr/include/linux/if.h:168: error: field 'ifru_hwaddr' has incomplete type
brctl-010226.c: In function 'create_br':
brctl-010226.c:51: error: 'PF_ATMPVC' undeclared (first use in this function)
brctl-010226.c:51: error: (Each undeclared identifier is reported only once
brctl-010226.c:51: error: for each function it appears in.)
brctl-010226.c:51: error: 'SOCK_DGRAM' undeclared (first use in this function)
brctl-010226.c: In function 'assign_vcc':
brctl-010226.c:90: error: 'T2A_PVC' undeclared (first use in this function)
brctl-010226.c:105: error: 'PF_ATMPVC' undeclared (first use in this function)
brctl-010226.c:105: error: 'SOCK_DGRAM' undeclared (first use in this function)
brctl-010226.c:116: error: 'SOL_SOCKET' undeclared (first use in this function)
brctl-010226.c:116: error: 'SO_SNDBUF' undeclared (first use in this function)
brctl-010226.c:119: error: 'SOL_ATM' undeclared (first use in this function)