=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-88- # ladvd-1.1.2/m4/ax_cflags_gcc_option.m4:89:do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-90- AC_TRY_COMPILE([],[return 0;], ladvd-1.1.2/m4/ax_cflags_gcc_option.m4:91: [AS_VAR_SET([VAR],[`echo $ac_arg | sed -e 's,.*% *,,'`]); break]) ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-92-done ############################################## ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-125- # ladvd-1.1.2/m4/ax_cflags_gcc_option.m4:126:do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-127- AC_TRY_COMPILE([],[return 0;], ladvd-1.1.2/m4/ax_cflags_gcc_option.m4:128: [AS_VAR_SET([VAR],[`echo $ac_arg | sed -e 's,.*% *,,'`]); break]) ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-129-done ############################################## ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-161- # ladvd-1.1.2/m4/ax_cflags_gcc_option.m4:162:do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-163- AC_TRY_COMPILE([],[return 0;], ladvd-1.1.2/m4/ax_cflags_gcc_option.m4:164: [AS_VAR_SET([VAR],[`echo $ac_arg | sed -e 's,.*% *,,'`]); break]) ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-165-done ############################################## ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-198- # ladvd-1.1.2/m4/ax_cflags_gcc_option.m4:199:do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-200- AC_TRY_COMPILE([],[return 0;], ladvd-1.1.2/m4/ax_cflags_gcc_option.m4:201: [AS_VAR_SET([VAR],[`echo $ac_arg | sed -e 's,.*% *,,'`]); break]) ladvd-1.1.2/m4/ax_cflags_gcc_option.m4-202-done ############################################## ladvd-1.1.2/m4/ax_ld_check_flag.m4-63- ladvd-1.1.2/m4/ax_ld_check_flag.m4:64: flag=`echo "$1" | $SED 'y% .=/+-(){}<>:*,%_______________%'` ladvd-1.1.2/m4/ax_ld_check_flag.m4-65- ############################################## ladvd-1.1.2/m4/ax_ld_check_flag.m4-86- ladvd-1.1.2/m4/ax_ld_check_flag.m4:87: AS_IF([eval "test \"`echo '$ax_cv_ld_check_flag_'$flag`\" = yes"],[ ladvd-1.1.2/m4/ax_ld_check_flag.m4-88- : ############################################## ladvd-1.1.2/m4/relro.m4-24- RELRO_LDFLAGS= ladvd-1.1.2/m4/relro.m4:25: ld_help=`$LD --help 2>&1` ladvd-1.1.2/m4/relro.m4-26- case $ld_help in ############################################## ladvd-1.1.2/src/child.c-323- ether = (struct ether_hdr *)rmsg.msg; ladvd-1.1.2/src/child.c:324: if (netif_byaddr(&netifs, ether->src) != NULL) ladvd-1.1.2/src/child.c-325- return; ############################################## ladvd-1.1.2/src/common.h-223-#define OPT_MNETIF (1 << 7) ladvd-1.1.2/src/common.h:224:#define OPT_MADDR (1 << 8) ladvd-1.1.2/src/common.h-225-#define OPT_WIRELESS (1 << 9) ############################################## ladvd-1.1.2/src/netif.c-398- ladvd-1.1.2/src/netif.c:399: memcpy(&netif->hwaddr, LLADDR(&saddrdl), ETHER_ADDR_LEN); ladvd-1.1.2/src/netif.c-400-#endif ############################################## ladvd-1.1.2/src/parent.c-754- saddrdl->sdl_slen = 0; ladvd-1.1.2/src/parent.c:755: memcpy(LLADDR(saddrdl), protos[p].dst_addr, ETHER_ADDR_LEN); ladvd-1.1.2/src/parent.c-756-#else ############################################## ladvd-1.1.2/src/proto/cdp.c-65-static int cdp_system_cap(struct parent_msg *, unsigned char *, size_t); ladvd-1.1.2/src/proto/cdp.c:66:static int cdp_addr(struct parent_msg *, unsigned char *, size_t, uint16_t); ladvd-1.1.2/src/proto/cdp.c-67-static int cdp_vlan(struct parent_msg *, unsigned char *, size_t); ############################################## ladvd-1.1.2/src/proto/cdp.c-403- case CDP_TYPE_MGMT_ADDRESS: ladvd-1.1.2/src/proto/cdp.c:404: if (!cdp_addr(msg, pos, tlv_length, tlv_type)) ladvd-1.1.2/src/proto/cdp.c-405- return 0; ############################################## ladvd-1.1.2/src/proto/cdp.c-579- ladvd-1.1.2/src/proto/cdp.c:580:static int cdp_addr(struct parent_msg *msg, ladvd-1.1.2/src/proto/cdp.c-581- unsigned char *pos, size_t length, uint16_t tlv_type) { ############################################## ladvd-1.1.2/src/proto/cdp.c-630- if (af) { ladvd-1.1.2/src/proto/cdp.c:631: if ((str = tlv_str_addr(af, pos, al)) == NULL) { ladvd-1.1.2/src/proto/cdp.c-632- my_log(INFO, "Corrupt CDP packet: invalid address TLV"); ############################################## ladvd-1.1.2/src/proto/lldp.c-50-static int lldp_system_cap(struct parent_msg *, unsigned char *, size_t); ladvd-1.1.2/src/proto/lldp.c:51:static int lldp_mgmt_addr(struct parent_msg *msg, unsigned char *, size_t); ladvd-1.1.2/src/proto/lldp.c-52-static int lldp_private(struct parent_msg *msg, unsigned char *, size_t); ############################################## ladvd-1.1.2/src/proto/lldp.c-560- case LLDP_TYPE_MGMT_ADDR: ladvd-1.1.2/src/proto/lldp.c:561: if (!lldp_mgmt_addr(msg, pos, tlv_length)) ladvd-1.1.2/src/proto/lldp.c-562- return 0; ############################################## ladvd-1.1.2/src/proto/lldp.c-621- case LLDP_CHASSIS_MAC_ADDR_SUBTYPE: ladvd-1.1.2/src/proto/lldp.c:622: str = tlv_str_addr(PEER_ADDR_802, pos, length); ladvd-1.1.2/src/proto/lldp.c-623- break; ############################################## ladvd-1.1.2/src/proto/lldp.c-628- } ladvd-1.1.2/src/proto/lldp.c:629: str = tlv_str_addr(lldp_afnum, pos, length); ladvd-1.1.2/src/proto/lldp.c-630- break; ############################################## ladvd-1.1.2/src/proto/lldp.c-673- if (msg->decode == DECODE_PRINT) { ladvd-1.1.2/src/proto/lldp.c:674: str = tlv_str_addr(PEER_ADDR_802, pos, length); ladvd-1.1.2/src/proto/lldp.c-675- printf("Port id: %s\n", str); ############################################## ladvd-1.1.2/src/proto/lldp.c-820- ladvd-1.1.2/src/proto/lldp.c:821:static int lldp_mgmt_addr(struct parent_msg *msg, ladvd-1.1.2/src/proto/lldp.c-822- unsigned char *pos, size_t length) { ############################################## ladvd-1.1.2/src/proto/lldp.c-866- ladvd-1.1.2/src/proto/lldp.c:867: if ((str = tlv_str_addr(af, pos, lldp_aflen)) == NULL) { ladvd-1.1.2/src/proto/lldp.c-868- my_log(INFO, "Invalid LLDP packet: invalid mgmt addr"); ############################################## ladvd-1.1.2/src/proto/tlv.c-117- ladvd-1.1.2/src/proto/tlv.c:118:char * tlv_str_addr(uint8_t type, void *pos, size_t length) { ladvd-1.1.2/src/proto/tlv.c-119- char *str = NULL; ############################################## ladvd-1.1.2/src/proto/tlv.h-33-char * tlv_str_cap(uint16_t cap); ladvd-1.1.2/src/proto/tlv.h:34:char * tlv_str_addr(uint8_t type, void *pos, size_t length); ladvd-1.1.2/src/proto/tlv.h-35-#define TLV_LEN 512 ############################################## ladvd-1.1.2/src/util.h-89-static inline ladvd-1.1.2/src/util.h:90:struct netif *netif_byaddr(struct nhead *netifs, uint8_t *hwaddr) { ladvd-1.1.2/src/util.h-91- struct netif *netif; ############################################## ladvd-1.1.2/tests/check_tlv.c-95- pos = "foob"; ladvd-1.1.2/tests/check_tlv.c:96: str = tlv_str_addr(PEER_ADDR_INET4, pos, 3); ladvd-1.1.2/tests/check_tlv.c-97- fail_unless (str == NULL, "a NULL pointer should be returned"); ladvd-1.1.2/tests/check_tlv.c-98- ladvd-1.1.2/tests/check_tlv.c:99: str = tlv_str_addr(PEER_ADDR_INET4, pos, 5); ladvd-1.1.2/tests/check_tlv.c-100- fail_unless (str == NULL, "a NULL pointer should be returned"); ladvd-1.1.2/tests/check_tlv.c-101- ladvd-1.1.2/tests/check_tlv.c:102: str = tlv_str_addr(PEER_ADDR_INET4, pos, 4); ladvd-1.1.2/tests/check_tlv.c-103- fail_unless (str != NULL, "a string pointer should be returned"); ############################################## ladvd-1.1.2/tests/check_tlv.c-108- pos = "foobfoobfoobfoob"; ladvd-1.1.2/tests/check_tlv.c:109: str = tlv_str_addr(PEER_ADDR_INET6, pos, 3); ladvd-1.1.2/tests/check_tlv.c-110- fail_unless (str == NULL, "a NULL pointer should be returned"); ladvd-1.1.2/tests/check_tlv.c-111- ladvd-1.1.2/tests/check_tlv.c:112: str = tlv_str_addr(PEER_ADDR_INET6, pos, 17); ladvd-1.1.2/tests/check_tlv.c-113- fail_unless (str == NULL, "a NULL pointer should be returned"); ladvd-1.1.2/tests/check_tlv.c-114- ladvd-1.1.2/tests/check_tlv.c:115: str = tlv_str_addr(PEER_ADDR_INET6, pos, 16); ladvd-1.1.2/tests/check_tlv.c-116- fail_unless (str != NULL, "a string pointer should be returned"); ############################################## ladvd-1.1.2/tests/check_tlv.c-121- pos = "foobfo"; ladvd-1.1.2/tests/check_tlv.c:122: str = tlv_str_addr(PEER_ADDR_802, pos, 5); ladvd-1.1.2/tests/check_tlv.c-123- fail_unless (str == NULL, "a NULL pointer should be returned"); ladvd-1.1.2/tests/check_tlv.c-124- ladvd-1.1.2/tests/check_tlv.c:125: str = tlv_str_addr(PEER_ADDR_802, pos, 7); ladvd-1.1.2/tests/check_tlv.c-126- fail_unless (str == NULL, "a NULL pointer should be returned"); ladvd-1.1.2/tests/check_tlv.c-127- ladvd-1.1.2/tests/check_tlv.c:128: str = tlv_str_addr(PEER_ADDR_802, pos, 6); ladvd-1.1.2/tests/check_tlv.c-129- fail_unless (str != NULL, "a string pointer should be returned"); ############################################## ladvd-1.1.2/tests/check_tlv.c-132- ladvd-1.1.2/tests/check_tlv.c:133: str = tlv_str_addr(PEER_MAX, pos, 9); ladvd-1.1.2/tests/check_tlv.c-134- fail_unless (str == NULL, "a NULL pointer should be returned");