{"action":"created","issue":{"url":"https://api.github.com/repos/ntop/PF_RING/issues/185","repository_url":"https://api.github.com/repos/ntop/PF_RING","labels_url":"https://api.github.com/repos/ntop/PF_RING/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/ntop/PF_RING/issues/185/comments","events_url":"https://api.github.com/repos/ntop/PF_RING/issues/185/events","html_url":"https://github.com/ntop/PF_RING/issues/185","id":211180164,"number":185,"title":"pcap_send does not get called from inside a zero copy application","user":{"login":"akiskourtis","id":1667681,"avatar_url":"https://avatars3.githubusercontent.com/u/1667681?v=3","gravatar_id":"","url":"https://api.github.com/users/akiskourtis","html_url":"https://github.com/akiskourtis","followers_url":"https://api.github.com/users/akiskourtis/followers","following_url":"https://api.github.com/users/akiskourtis/following{/other_user}","gists_url":"https://api.github.com/users/akiskourtis/gists{/gist_id}","starred_url":"https://api.github.com/users/akiskourtis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akiskourtis/subscriptions","organizations_url":"https://api.github.com/users/akiskourtis/orgs","repos_url":"https://api.github.com/users/akiskourtis/repos","events_url":"https://api.github.com/users/akiskourtis/events{/privacy}","received_events_url":"https://api.github.com/users/akiskourtis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-01T19:16:43Z","updated_at":"2017-03-02T11:52:14Z","closed_at":null,"body":"So I am calling the pcap_send from inside the zbounce, to send the packets to another interface outside the ring. \r\n#1 very bizarre behaviour I noticed is in the latest PF_RING version, the pcap_send is somehow ignored. The same exact code ran from inside a older-version PF_RING directory works.\r\n\r\n#2 another very strange thing, the kernel module loaded is the one from the newest version.\r\n\r\nI couldn't find any commit related to that?\r\n\r\nIs this behaviour expected?\r\n\r\nThank you\r\n\r\nBest Regards"},"comment":{"url":"https://api.github.com/repos/ntop/PF_RING/issues/comments/283633586","html_url":"https://github.com/ntop/PF_RING/issues/185#issuecomment-283633586","issue_url":"https://api.github.com/repos/ntop/PF_RING/issues/185","id":283633586,"user":{"login":"akiskourtis","id":1667681,"avatar_url":"https://avatars3.githubusercontent.com/u/1667681?v=3","gravatar_id":"","url":"https://api.github.com/users/akiskourtis","html_url":"https://github.com/akiskourtis","followers_url":"https://api.github.com/users/akiskourtis/followers","following_url":"https://api.github.com/users/akiskourtis/following{/other_user}","gists_url":"https://api.github.com/users/akiskourtis/gists{/gist_id}","starred_url":"https://api.github.com/users/akiskourtis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akiskourtis/subscriptions","organizations_url":"https://api.github.com/users/akiskourtis/orgs","repos_url":"https://api.github.com/users/akiskourtis/repos","events_url":"https://api.github.com/users/akiskourtis/events{/privacy}","received_events_url":"https://api.github.com/users/akiskourtis/received_events","type":"User","site_admin":false},"created_at":"2017-03-02T11:52:14Z","updated_at":"2017-03-02T11:52:14Z","body":"Ok so basically we are at the zbounce.c\r\n\r\n`if (init_direction(&dir[0], device1, device2) < 0) \r\n\treturn -1;\r\n\r\n\tif (bidirectional)\r\n\tif (init_direction(&dir[1], device2, device1) < 0) \r\n``\r\nWe insert the eth0 and eth1 to the ring\r\n\r\nat the void *packet_consumer_thread\r\n\r\nbefore we send the packet using the pfring_zc_send_pkt(i->outzq, &i->tmpbuff, flush_packet)\r\n\r\nI do a packet send with pcap at the fp = eth2\r\n\r\npcap_sendpacket(fp, packet, tot_len) != 0)\r\n\r\nSo right there the pcap_send is called but somehow no packet is sent to the interface.\r\nAnd this is happening to the latest pfring version directory."}}
{"actor":{"display_login":"akiskourtis"}}