Makes complete sense Patrick.  I will get to the bottom of if and keep you 
posted!

Thanks,

-Greg

From: Patrick Wakano [mailto:pwak...@gmail.com]
Sent: Tuesday, October 18, 2011 7:22 AM
To: Greg Horton
Cc: sipp-users@lists.sourceforge.net
Subject: Re: [Sipp-users] Need to change video port offset from auto_media_port

I can't tell you for sure what is happenning because I haven't gone in the 
sources that deep, but the overview is that in prepare_pcap.c it reads your 
pcap data and store it in some buffer and in send_packets.c it gets your data, 
packs in UDP/RTP and sends it to the wire, so I recommend you to study these 
two files to understand the full process!
By having a quick look in the code I found this in send_packets() func:
  while (pkt_index < pkt_max) {
    memcpy(udp, pkt_index->data, pkt_index->pktlen);
    port_diff = ntohs (udp->uh_dport) - pkts->base;
    // modify UDP ports
    udp->uh_sport = htons(port_diff + *from_port);
    udp->uh_dport = htons(port_diff + *to_port);
....
so my guess is that you have to handle this port_diff, since it seems to be 
calculated from the packets of your pcap, as you have observed!

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to