1 --- pcap.c 2008-10-10 19:42:44.000000000 -0700
2 +++ pcap.c 2008-12-15 08:45:29.000000000 -0800
5 pcap_dispatch(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
8 + /* Checks the capture type */
9 + if (p->rmt_clientside)
11 + /* We are on an remote capture */
12 + if (!p->rmt_capstarted)
14 + // if the capture has not started yet, please start it
15 + if (pcap_startcapture_remote(p) )
19 +#endif /* HAVE_REMOTE */
21 return p->read_op(p, cnt, callback, user);
25 /* Saves a pointer to the packet headers */
26 *pkt_header= &p->pcap_header;
29 + /* Checks the capture type */
30 + if (p->rmt_clientside)
32 + /* We are on an remote capture */
33 + if (!p->rmt_capstarted)
35 + // if the capture has not started yet, please start it
36 + if (pcap_startcapture_remote(p) )
40 + return pcap_read_nocb_remote(p, pkt_header, (u_char **) pkt_data);
42 +#endif /* HAVE_REMOTE */
44 if (p->sf.rfile != NULL) {