Giter Club home page Giter Club logo

mptcp-proxy's People

Contributors

phhusson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mptcp-proxy's Issues

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

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$

Compiling issue , on Centos7

Hi , will appreciated your comment for below , or can you recommend what is the best distro to compile this without trouble ?

[root@localhost MPTCP-PROXY]# ls
binheap.c Makefile mpproxy.o packman.h sflman.o
binheap.h mangleman.c mptcp_proxy_1-0-1.tar packman.o sha1.c
conman.c mangleman.h mptcp_proxy.c README sha1.h
conman.h mangleman.o mptcp_proxy.h README~ sha1.o
conman.o map_table.c mptcp_proxy.o sessman.c tp_heap.c
hmac.h map_table.h mptcpproxy_util.c sessman.h tp_heap.h
hmac_sha1.c map_table.o mptcpproxy_util.h sessman.o tp_heap.o
hmac_sha1.o mpproxy mptcpproxy_util.o sflman.c uthash.h
libnetfilter_queue.h mpproxy.c packman.c sflman.h

[root@localhost MPTCP-PROXY]# make
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/bin/ld: note: 'nfnl_rcvbufsiz' is defined in DSO /lib64/libnfnetlink.so.0 so try adding it to the linker command line
/lib64/libnfnetlink.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [mptcp_proxy] Error 1
[root@localhost MPTCP-PROXY]#

mpproxy wont start and throwing a error message

Hi

When I start the mpproxy, I get the following error message

mpproxy start

error during nfq_create_queue()

gdb - trace

root@vmn-575:~# gdb --args /usr/bin/mpproxy start
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/mpproxy...done.
(gdb) run
Starting program: /usr/bin/mpproxy start
error during nfq_create_queue()
Inferior 1 (process 18171) exited normally bt
No stack.
(gdb)

Is there any update release?

Just wondering is there someone still working on it or maintaining it...
Any suggestions or comments will be really helpful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.