mptcp-proxy icon indicating copy to clipboard operation
mptcp-proxy copied to clipboard

Failing to compile at Ubuntu 14.04 and Centos 7 error about "'nfnl_rcvbufsiz'"

Open shaygun opened this issue 10 years ago • 1 comments

hi any comment for below ? will be appreciated your help.

sessman.c:504:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sessman.c:596:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_syn_sent: output_data_mptcp fails for sfl_id=%u, sess_id=%u", packd.sfl->index, packd.sess->index); ^ sessman.c:596:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sessman.c: In function ‘session_pre_syn_rec_1’: sessman.c:720:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf,"session_pre_syn_rec_1 returns NULL when creating session_parm, sess_id=%u", packd.sess->index); ^ sessman.c:728:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_pre_syn_rec_1: cannot create MPcap since option too long, len=%u, sess_id=%u", packd.mptcp_opt_len, packd.sess->index); ^ sessman.c:755:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_pre_syn_rec_1: output_data_mptcp fails, sfl_id=%u, sess_id=%u", packd.sfl->index, packd.sess->index); ^ sessman.c:755:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sessman.c:764:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_pre_syn_rec_1: PRE_SYN_REC_1 -> SYN_REC for sess_id=%u", packd.sess->index); ^ sessman.c: In function ‘session_pre_est’: sessman.c:798:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_pre_est: analyze_MPcap fails. Killing sfl_id=%u and sess_id=%u", packd.sfl->index, packd.sess->index); ^ sessman.c:798:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sessman.c:826:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_pre_est: output_data_mptcp fails, sess_id=%u", packd.sess->index); ^ sessman.c:835:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t’ [-Wformat=] packd.sess->sack_flag, packd.sfl->sack_flag, packd.sess->index, packd.sfl->index); ^ sessman.c:835:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘size_t’ [-Wformat=] sessman.c: In function ‘session_syn_rec’: sessman.c:868:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_syn_rec: analyze_MPcap fails. Killing sfl_id=%u and sess_id=%u!", packd.sfl->index, packd.sess->index); ^ sessman.c:868:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sessman.c:876:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_syn_rec: key mismatch! - tearing down sess_id=%u", packd.sess->index); ^ sessman.c:901:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t’ [-Wformat=] packd.sess->sack_flag, packd.sfl->sack_flag, packd.sess->index, packd.sfl->index); ^ sessman.c:901:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘size_t’ [-Wformat=] sessman.c: In function ‘session_established’: sessman.c:943:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_established: ESTABLISHED->FIN_WAIT_1, sess_id=%u", packd.sess->index ); ^ sessman.c:957:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_established: ESTABLISHED->PRE_CLOSE_WAIT, sess_id=%u", packd.sess->index ); ^ sessman.c: In function ‘session_fin_wait_1’: sessman.c:989:6: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_fin_wait_1: FIN_WAIT_1->PRE_TIME_WAIT, sess_id=%u", packd.sess->index ); ^ sessman.c:994:6: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_fin_wait_1: FIN_WAIT_1->FIN_WAIT_2, sess_id=%u", packd.sess->index ); ^ sessman.c:1002:6: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_fin_wait_1: FIN_WAIT_1->PRE_CLOSING, sess_id=%u", packd.sess->index ); ^ sessman.c: In function ‘session_fin_wait_2’: sessman.c:1030:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_fin_wait_2: FIN_WAIT_2->PRE_TIME_WAIT, sess_id=%u", packd.sess->index ); ^ sessman.c: In function ‘session_pre_close_wait’: sessman.c:1054:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_pre_close_wait: PRE_CLOSE_WAIT->LAST_ACK, sess_id=%u", packd.sess->index ); ^ sessman.c:1059:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_pre_close_wait: PRE_CLOSE_WAIT->CLOSE_WAIT, sess_id=%u", packd.sess->index ); ^ sessman.c:1069:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_pre_close_wait: PRE_CLOSE_WAIT->PRE_CLOSING, sess_id=%u", packd.sess->index ); ^ sessman.c: In function ‘session_pre_time_wait’: sessman.c:1094:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_pre_time_wait: sess id=%d entering sess_state TIME_WAIT", packd.sess->index ); ^ sessman.c: In function ‘session_pre_closing’: sessman.c:1116:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_pre_closing: ess id=%d entering PRE_CLOSING->CLOSING", packd.sess->index ); ^ sessman.c:1127:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_closing: sess id=%d entering sess_state PRE_TIME_WAIT", packd.sess->index ); ^ sessman.c: In function ‘session_closing’: sessman.c:1156:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_closing: sess id=%d entering sess_state TIME_WAIT", packd.sess->index); ^ sessman.c: In function ‘session_close_wait’: sessman.c:1176:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_close_wait: CLOSE_WAIT->LAST_ACK, sess_id=%u", packd.sess->index ); ^ sessman.c: In function ‘session_last_ack’: sessman.c:1201:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "session_last_ack: LAST_ACK->TIME_WAIT, sess_id=%u", packd.sess->index ); ^ sessman.c: In function ‘terminate_all_subflows’: sessman.c:1231:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "terminate_all_subflows: terminating for sess_id=%u", sess->index); ^ sessman.c: In function ‘find_subflow_in_session’: sessman.c:1529:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sprintf(msg_buf,"find_cand_subflow: sfl_id=%d is no candidate or not in sess_id=%d", cmcmd.sfl, sess->index); ^ sessman.c:1532:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "find_subflow_in_session: no sfl found in sess_id =%d", sess->index); ^ sessman.c:1546:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "find_subflow_in_session: found sfl_id=%d in sess_id =%d - but interface "%s" not active!", sflx->index, sess->index, iface); ^ sessman.c:1546:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sessman.c: In function ‘switch_active_sfl’: sessman.c:1577:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "switch_active_sfl: cannot switch since sess id=%d is not in "0" mode", sess->index); ^ sessman.c:1598:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sess->index, sess->last_subflow->index, sess->act_subflow->index); ^ sessman.c:1598:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sessman.c:1598:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t’ [-Wformat=] sessman.c:1603:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sess->index, sess->act_subflow->index); ^ sessman.c:1603:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sessman.c: In function ‘break_active_sfl’: sessman.c:1636:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sess->last_subflow->index, sess->act_subflow->index); ^ sessman.c:1636:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat=] sessman.c: In function ‘execute_sess_teardown’: sessman.c:1825:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "execute_sess_teardown: sess_id=%d is terminated", sess->index); ^ gcc -c sflman.c sflman.c: In function ‘initiate_cand_subflow’: sflman.c:192:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "initiate_cand_subflow: sending SYN packet, sfl_id=%u, sess_id=%u", sfl1->index, sess->index); ^ sflman.c:192:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:199:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "initiate_cand_subflow: send_raw_packet returns error, sfl_id=%u, sess_id=%u", sfl1->index, sess->index); ^ sflman.c:199:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘create_new_subflow_input’: sflman.c:354:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "create_new_subflow_input: sending SYN/ACK packet, sfl_id=%u, sess_id=%u", sfl1->index, sess->index); ^ sflman.c:354:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘subflow_syn_sent’: sflman.c:414:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] packd.sess->index, packd.sfl->index); ^ sflman.c:414:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:458:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_syn_sent: sending ACK packet, sfl_id=%u, sess_id=%u", packd.sfl->index, packd.sess->index); ^ sflman.c:458:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:481:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_syn_sent: sess id=%d, sfl id=%d, TCP state changed to ESTABLISHED, sfl_sack=%d", packd.sess->index, packd.sfl->index, packd.sfl->sack_flag); ^ sflman.c:481:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘subflow_syn_received’: sflman.c:525:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] packd.sess->index, packd.sfl->index); ^ sflman.c:525:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:540:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_syn_received: sess id=%d, sfl id=%d, TCP state changed to ESTABLISHED, sfl_sack_flag=%d", packd.sess->index, packd.sfl->index, packd.sfl->sack_flag); ^ sflman.c:540:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘terminate_subflow’: sflman.c:564:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "terminate_cand_subflow: sfl->sess index=%u does not match sess index=%u", sfl->sess->index, sess->index); ^ sflman.c:564:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:595:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "terminate_cand_subflow: sending FIN packet, sfl_id=%u, sess_id=%u", sfl->index, sess->index); ^ sflman.c:595:2: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘subflow_established’: sflman.c:662:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_established: sending FIN/ACK or ACK packet, sfl_id=%u, sess_id=%u", packd.sfl->index, packd.sess->index); ^ sflman.c:662:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:678:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_established: state change to CLOSE_WAIT, sfl_id=%u, sess_id=%u", packd.sfl->index, packd.sess->index); ^ sflman.c:678:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:683:4: warning: too many arguments for format [-Wformat-extra-args] sprintf(msg_buf, "subflow_established: state change to LAST_ACK", packd.sfl->index, packd.sess->index); ^ sflman.c: In function ‘subflow_close_wait’: sflman.c:727:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_established: sending FIN/ACK packet, sfl_id=%u, sess_id=%u", packd.sfl->index, packd.sess->index); ^ sflman.c:727:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:743:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_close_wait: state change to LAST_ACK, sfl_id=%u, sess_id=%u", packd.sfl->index, packd.sess->index); ^ sflman.c:743:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘subflow_last_ack’: sflman.c:762:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_last_ack: sess id=%d, sfl id=%d terminated", packd.sess->index, packd.sfl->index); ^ sflman.c:762:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘subflow_fin_wait_1’: sflman.c:786:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_fin_wait_1: state change to FIN_WAIT_2, sfl_id=%u, sess_id=%u", packd.sfl->index, packd.sess->index); ^ sflman.c:786:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:815:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_fin_wait_1: sending ACK packet, sfl_id=%u, sess_id=%u", packd.sfl->index, packd.sess->index); ^ sflman.c:815:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:831:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf,"subflow_fin_wait_1: sess id=%d, sfl id=%d entering TCP state TIME_WAIT", packd.sess->index, packd.sfl->index); ^ sflman.c:831:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:836:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf,"subflow_fin_wait_1: state change to CLOSING, sess id=%d, sfl id=%d ", packd.sess->index, packd.sfl->index); ^ sflman.c:836:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘subflow_fin_wait_2’: sflman.c:878:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_fin_wait_2: sending ACK packet, sfl_id=%u, sess_id=%u", packd.sfl->index, packd.sess->index); ^ sflman.c:878:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:892:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_fin_wait_2: sess id=%d, sfl id=%d entering TCP state TIME_WAIT", packd.sess->index, packd.sfl->index); ^ sflman.c:892:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘subflow_closing’: sflman.c:912:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "subflow_closing: sess id=%d, sfl id=%d entering TCP state TIME_WAIT", packd.sess->index, packd.sfl->index); ^ sflman.c:912:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘send_switch_ack’: sflman.c:963:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "send_switch_ack: new subflow index = %d", new_sfl->index); ^ sflman.c:967:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "send_switch_ack: old subflow index = %d", old_sfl->index); ^ sflman.c: In function ‘send_break_ack’: sflman.c:1061:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "send_break_ack: sess_id=%u, new sfl_id = %u", new_sfl->sess->index, new_sfl->index); ^ sflman.c:1061:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘handle_rex_event’: sflman.c:1351:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "handle_rex_event: retransmit on sfl_id=%d in sess_id=%d", sflx->index, sflx->sess->index); ^ sflman.c:1351:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:1363:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "handle_rex_event: reset sfl id=%d in sess id=%d", sflx->index, sflx->sess->index); ^ sflman.c:1363:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c:1374:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "handle_rex_event: reset sfl id=%d and sess id=%d", sfly->index, sfly->sess->index); ^ sflman.c:1374:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘handle_sfl_close_event’: sflman.c:1435:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "handle_sfl_close_event: sess id=%d, sfl id=%d terminated", sfl->sess->index, sfl->index); ^ sflman.c:1435:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘handle_prio_event’: sflman.c:1500:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sess->index, prio->addr_id_loc, sess->act_subflow->index); ^ sflman.c:1500:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘create_sfl_break_event’: sflman.c:1535:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "create_sfl_break_event: created for sfl_id=%d, sess_id=%d", sfl->index, sfl->sess->index); ^ sflman.c:1535:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘handle_sfl_break_event’: sflman.c:1570:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "handle_sfl_break_event: sess id=%d, sfl id=%d terminated", sfl->sess->index, sfl->index); ^ sflman.c:1570:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] sflman.c: In function ‘execute_sfl_teardown’: sflman.c:1633:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] sprintf(msg_buf, "execute_sfl_teardown: sfl id=%d is terminated", sfl->index); ^ gcc -c packman.c gcc -c mptcpproxy_util.c mptcpproxy_util.c: In function ‘terminate_print_data’: mptcpproxy_util.c:415:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] fprintf(prt_data.file1,"%lu\t%d\t%f\t%u\t%u", (long unsigned int) prt->id, prt->hook, dtime, prt->sess_id, prt->sfl_id); ^ mptcpproxy_util.c:415:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘size_t’ [-Wformat=] mptcpproxy_util.c:415:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘size_t’ [-Wformat=] mptcpproxy_util.c:435:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] fprintf(prt_data.file3,"%lu\t%d\t%f\t%u\t%u", (long unsigned int) prt->id, prt->hook, dtime, prt->sess_id, prt->sfl_id); ^ mptcpproxy_util.c:435:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘size_t’ [-Wformat=] mptcpproxy_util.c:435:4: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘size_t’ [-Wformat=] mptcpproxy_util.c:476:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] fprintf(prt_data.file10,"%lu\t%d\t%u\t", (long unsigned int) prtt->id, prtt->hook, prtt->sfl_id); ^ mptcpproxy_util.c:476:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t’ [-Wformat=] mptcpproxy_util.c:486:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=] fprintf(prt_data.file30,"%lu\t%d\t%u\t", (long unsigned int) prtt->id, prtt->hook, prtt->sfl_id); ^ mptcpproxy_util.c:486:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t’ [-Wformat=] gcc -c map_table.c map_table.c: In function ‘print_entry’: map_table.c:404:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ [-Wformat=](long unsigned) map->pnt1->range); ^ gcc -c tp_heap.c gcc -c hmac_sha1.c gcc -c sha1.c gcc -g -o mptcp_proxy mptcp_proxy.o mangleman.o conman.o sessman.o sflman.o packman.o mptcpproxy_util.o map_table.o tp_heap.o hmac_sha1.o sha1.o -lnetfilter_queue /usr/bin/ld: mptcp_proxy.o: undefined reference to symbol 'nfnl_rcvbufsiz' //usr/local/lib/libnfnetlink.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [mptcp_proxy] Error 1 admin2@admin2-virtual-machine:~/MPTCP-PROXY$

shaygun avatar Feb 19 '16 09:02 shaygun

Add -lnfnetlink in the following command in make file, then it should work, gcc -g -o mptcp_proxy mptcp_proxy.o mangleman.o conman.o sessman.o sflman.o packman.o mptcpproxy_util.o map_table.o tp_heap.o hmac_sha1.o sha1.o -lnetfilter_queue -lnfnetlihnk

shashwat-kumar-phd avatar Apr 08 '16 17:04 shashwat-kumar-phd