version 1.22.6.2, 2014/11/26 00:50:04
|
version 1.22.6.3, 2014/12/10 23:44:33
|
Line 638 rpc_cli_openClient2(u_char InstID, int netBuf, const c
|
Line 638 rpc_cli_openClient2(u_char InstID, int netBuf, const c
|
register int i; |
register int i; |
struct ifreq ifr; |
struct ifreq ifr; |
int n = 1; |
int n = 1; |
|
struct bpf_insn insns[] = { |
|
BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 12), |
|
BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, RPC_DEFPORT, 0, 1), |
|
BPF_STMT(BPF_RET + BPF_K, -1), |
|
BPF_STMT(BPF_RET + BPF_K, 0), |
|
}; |
|
struct bpf_program fcode = { |
|
.bf_len = sizeof(insns) / sizeof(struct bpf_insn), |
|
.bf_insns = insns |
|
}; |
|
|
if (!csHost || !e_getlinkbyname(csHost, &sa)) |
if (!csHost || !e_getlinkbyname(csHost, &sa)) |
return NULL; |
return NULL; |
Line 686 rpc_cli_openClient2(u_char InstID, int netBuf, const c
|
Line 696 rpc_cli_openClient2(u_char InstID, int netBuf, const c
|
} |
} |
|
|
if (ioctl(cli->cli_sock, BIOCIMMEDIATE, &n) == -1) { |
if (ioctl(cli->cli_sock, BIOCIMMEDIATE, &n) == -1) { |
|
LOGERR; |
|
goto err; |
|
} |
|
if (ioctl(cli->cli_sock, BIOCSETF, &fcode) == -1) { |
LOGERR; |
LOGERR; |
goto err; |
goto err; |
} |
} |