<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-2022-jp">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Vic,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is the RTP header fixed length? Or, can you
make it fixed length?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If so, why don't you just write a fixed amount of
zeros to the beginning of the file (before capturing the packets), then capture
the packets and append to the file. When the capture is complete,
build the header data, rewind the file pointer, and overwrite the fixed amount
of zeros.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>DC</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=svictor@yahoo.co.jp href="mailto:svictor@yahoo.co.jp">Vic</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, September 06, 2006 4:53
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] how to add wav
header to rtp packets I receive?</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><BR></DIV>Hi,<BR><BR>I am using Winpcap to capture RTP
packets.<BR>I want to add a wav header to it.I cannot really pre-append a
header at the very beginning because I do not know the length of the wave file
until I I get all RTP packets... <BR><BR>So, right now, after I dump the whole
capture to the file, I write header into a separate file and then copy the
dumped RTP into that file as well.<BR><BR>So, it is: WINPCAP->FILE A,
HEADER-> FILE B, FILE A->FILE B.<BR><BR>This is really inefficient and
eats a lot of memory. How can I pre-append a wav header to the file being
dumped by winpcap?<BR><BR>Is there a function in winpcap that will allow me to
define this ahead of time and just let winpcap take care of
this?<BR><BR>Thanks,<BR>Vic<BR><BR><BR>
<DIV style="CLEAR: both; WIDTH: 0px; LINE-HEIGHT: 0; HEIGHT: 5px"></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>