g_snprintf(name1,256,"%s:%s",ep_address_to_str(&udph->ip_dst),get_udp_port(udph->uh_dport));
}
- iousers_process_name_packet(iu, name1, name2, direction, pinfo->fd->pkt_len, &pinfo->fd->rel_ts, &pinfo->fd->abs_ts);
+ iousers_process_name_packet(iu, name1, name2, direction, pinfo->fd->pkt_len, &pinfo->rel_ts, &pinfo->fd->abs_ts);
return 1;
}
g_snprintf(name2,256,"%s:%s",ep_address_to_str(&sctph->ip_dst),s_dport);
}
- iousers_process_name_packet(iu, name1, name2, direction, pinfo->fd->pkt_len, &pinfo->fd->rel_ts, &pinfo->fd->abs_ts);
+ iousers_process_name_packet(iu, name1, name2, direction, pinfo->fd->pkt_len, &pinfo->rel_ts, &pinfo->fd->abs_ts);
return 1;
}
g_snprintf(name1,256,"%s:%s",ep_address_to_str(&tcph->ip_dst),get_tcp_port(tcph->th_dport));
}
- iousers_process_name_packet_with_conv_id(iu, name1, name2, tcph->th_stream, direction, pinfo->fd->pkt_len, &pinfo->fd->rel_ts, &pinfo->fd->abs_ts);
+ iousers_process_name_packet_with_conv_id(iu, name1, name2, tcph->th_stream, direction, pinfo->fd->pkt_len, &pinfo->rel_ts, &pinfo->fd->abs_ts);
return 1;
}
io_users_t *iu=(io_users_t *)arg;
const ws_ip *iph=(const ws_ip *)vip;
- iousers_process_address_packet(iu, &iph->ip_src, &iph->ip_dst, pinfo->fd->pkt_len, &pinfo->fd->rel_ts);
+ iousers_process_address_packet(iu, &iph->ip_src, &iph->ip_dst, pinfo->fd->pkt_len, &pinfo->rel_ts);
return 1;
}
src.data = &ip6h->ip6_src;
dst.data = &ip6h->ip6_dst;
- iousers_process_address_packet(iu, &src, &dst, pinfo->fd->pkt_len, &pinfo->fd->rel_ts);
+ iousers_process_address_packet(iu, &src, &dst, pinfo->fd->pkt_len, &pinfo->rel_ts);
return 1;
}
io_users_t *iu=(io_users_t *)arg;
const ipxhdr_t *ipxh=(const ipxhdr_t *)vipx;
- iousers_process_address_packet(iu, &ipxh->ipx_src, &ipxh->ipx_dst, pinfo->fd->pkt_len, &pinfo->fd->rel_ts);
+ iousers_process_address_packet(iu, &ipxh->ipx_src, &ipxh->ipx_dst, pinfo->fd->pkt_len, &pinfo->rel_ts);
return 1;
}
io_users_t *iu=(io_users_t *)arg;
const fc_hdr *fchdr=(const fc_hdr *)vfc;
- iousers_process_address_packet(iu, &fchdr->s_id, &fchdr->d_id, pinfo->fd->pkt_len, &pinfo->fd->rel_ts);
+ iousers_process_address_packet(iu, &fchdr->s_id, &fchdr->d_id, pinfo->fd->pkt_len, &pinfo->rel_ts);
return 1;
}
io_users_t *iu=(io_users_t *)arg;
const eth_hdr *ehdr=(const eth_hdr *)veth;
- iousers_process_address_packet(iu, &ehdr->src, &ehdr->dst, pinfo->fd->pkt_len, &pinfo->fd->rel_ts);
+ iousers_process_address_packet(iu, &ehdr->src, &ehdr->dst, pinfo->fd->pkt_len, &pinfo->rel_ts);
return 1;
}
io_users_t *iu=(io_users_t *)arg;
const fddi_hdr *ehdr=(const fddi_hdr *)veth;
- iousers_process_address_packet(iu, &ehdr->src, &ehdr->dst, pinfo->fd->pkt_len, &pinfo->fd->rel_ts);
+ iousers_process_address_packet(iu, &ehdr->src, &ehdr->dst, pinfo->fd->pkt_len, &pinfo->rel_ts);
return 1;
}
io_users_t *iu=(io_users_t *)arg;
const tr_hdr *trhdr=(const tr_hdr *)vtr;
- iousers_process_address_packet(iu, &trhdr->src, &trhdr->dst, pinfo->fd->pkt_len, &pinfo->fd->rel_ts);
+ iousers_process_address_packet(iu, &trhdr->src, &trhdr->dst, pinfo->fd->pkt_len, &pinfo->rel_ts);
return 1;
}
}
static void
-iousers_init(const char *optarg, void* userdata _U_)
+iousers_init(const char *opt_arg, void* userdata _U_)
{
const char *filter=NULL;
const char *tap_type, *tap_type_name;
io_users_t *iu=NULL;
GString *error_string;
- if(!strncmp(optarg,"conv,eth",8)){
- if(optarg[8]==','){
- filter=optarg+9;
+ if(!strncmp(opt_arg,"conv,eth",8)){
+ if(opt_arg[8]==','){
+ filter=opt_arg+9;
} else {
filter=NULL;
}
tap_type="eth";
tap_type_name="Ethernet";
packet_func=iousers_eth_packet;
- } else if(!strncmp(optarg,"conv,fc",7)){
- if(optarg[7]==','){
- filter=optarg+8;
+ } else if(!strncmp(opt_arg,"conv,fc",7)){
+ if(opt_arg[7]==','){
+ filter=opt_arg+8;
} else {
filter=NULL;
}
tap_type="fc";
tap_type_name="Fibre Channel";
packet_func=iousers_fc_packet;
- } else if(!strncmp(optarg,"conv,fddi",9)){
- if(optarg[9]==','){
- filter=optarg+10;
+ } else if(!strncmp(opt_arg,"conv,fddi",9)){
+ if(opt_arg[9]==','){
+ filter=opt_arg+10;
} else {
filter=NULL;
}
tap_type="fddi";
tap_type_name="FDDI";
packet_func=iousers_fddi_packet;
- } else if(!strncmp(optarg,"conv,tcp",8)){
- if(optarg[8]==','){
- filter=optarg+9;
+ } else if(!strncmp(opt_arg,"conv,tcp",8)){
+ if(opt_arg[8]==','){
+ filter=opt_arg+9;
} else {
filter=NULL;
}
tap_type="tcp";
tap_type_name="TCP";
packet_func=iousers_tcpip_packet;
- } else if(!strncmp(optarg,"conv,udp",8)){
- if(optarg[8]==','){
- filter=optarg+9;
+ } else if(!strncmp(opt_arg,"conv,udp",8)){
+ if(opt_arg[8]==','){
+ filter=opt_arg+9;
} else {
filter=NULL;
}
tap_type="udp";
tap_type_name="UDP";
packet_func=iousers_udpip_packet;
- } else if(!strncmp(optarg,"conv,tr",7)){
- if(optarg[7]==','){
- filter=optarg+8;
+ } else if(!strncmp(opt_arg,"conv,tr",7)){
+ if(opt_arg[7]==','){
+ filter=opt_arg+8;
} else {
filter=NULL;
}
tap_type="tr";
tap_type_name="Token Ring";
packet_func=iousers_tr_packet;
- } else if(!strncmp(optarg,"conv,ipx",8)){
- if(optarg[8]==','){
- filter=optarg+9;
+ } else if(!strncmp(opt_arg,"conv,ipx",8)){
+ if(opt_arg[8]==','){
+ filter=opt_arg+9;
} else {
filter=NULL;
}
tap_type="ipx";
tap_type_name="IPX";
packet_func=iousers_ipx_packet;
- } else if(!strncmp(optarg,"conv,ipv6",9)){
- if(optarg[9]==','){
- filter=optarg+10;
+ } else if(!strncmp(opt_arg,"conv,ipv6",9)){
+ if(opt_arg[9]==','){
+ filter=opt_arg+10;
} else {
filter=NULL;
}
tap_type="ipv6";
tap_type_name="IPv6";
packet_func=iousers_ipv6_packet;
- } else if(!strncmp(optarg,"conv,ip",7)){
- if(optarg[7]==','){
- filter=optarg+8;
+ } else if(!strncmp(opt_arg,"conv,ip",7)){
+ if(opt_arg[7]==','){
+ filter=opt_arg+8;
} else {
filter=NULL;
}
tap_type="ip";
tap_type_name="IPv4";
packet_func=iousers_ip_packet;
- } else if(!strncmp(optarg,"conv,sctp",9)) {
- if(optarg[9]==','){
- filter=optarg+10;
+ } else if(!strncmp(opt_arg,"conv,sctp",9)) {
+ if(opt_arg[9]==','){
+ filter=opt_arg+10;
} else {
filter=NULL;
}