Skip to content

Commit

Permalink
锐捷的时候不使用混杂模式
Browse files Browse the repository at this point in the history
  • Loading branch information
microcaicai committed Apr 16, 2011
1 parent 0037f5c commit 5435e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/myconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ static int openPcap()
{
char buf[PCAP_ERRBUF_SIZE], *fmt;
struct bpf_program fcode;
if ((hPcap = pcap_open_live(nic, 2048,0, 1000, buf)) == NULL)
if ((hPcap = pcap_open_live(nic, 2048, startMode >= 3 , 1000, buf)) == NULL)
{
printf(_("!! 打开网卡%s失败: %s\n"), nic, buf);
return -1;
Expand Down

0 comments on commit 5435e5c

Please sign in to comment.