<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=utf-8 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16535"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Calibri>The function was missing from the exports of wpcap.dll.
The next release of WinPcap will have it.</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>At the moment there's no way to use it.</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>Have a nice day</FONT></DIV>
<DIV><FONT face=Calibri>GV</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=boaz.brickner@gmail.com
href="mailto:boaz.brickner@gmail.com">Boaz Brickner</A> </DIV>
<DIV><B>Sent:</B> Saturday, April 24, 2010 2:01 AM</DIV>
<DIV><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV><B>Subject:</B> Re: [Winpcap-users] pcap_list_datalinks() - how to
free</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV dir=ltr>Hi,<BR><BR>While working on Pcap.Net (<A
href="http://pcapdotnet.codeplex.com"
target=_blank>http://pcapdotnet.codeplex.com</A>), I've encountered a problem
freeing the allocated memory that was allocated using
pcap_list_datalinks().<BR><BR>I saw the 2008 issue - so I'm replying to
it.<BR><BR>There is a function<BR>void pcap_free_datalinks(int
*);<BR>in pcap.h, but I couldn't resolve it using the .lib file (while I have no
problem with pcap_list_datalinks) and there is no documentation about it
in<BR><A
href="http://www.winpcap.org/docs/docs_411/html/group__wpcapfunc.html">http://www.winpcap.org/docs/docs_411/html/group__wpcapfunc.html</A><BR><BR>What
should I do in order to use this function?<BR><BR>Thank
you.<BR><BR>Boaz.<BR><BR>-----------------------------------------------------------<BR><BR>Guy
Harris guy at <A href="http://alum.mit.edu">alum.mit.edu</A><BR>Mon May 26
20:00:05 GMT 2008<BR><BR>Previous message: [Winpcap-users] pcap_list_datalinks()
- how to free<BR>Next message: [Winpcap-users] Wincap and fake
packages<BR>Messages sorted by: [ date ] [ thread ] [ subject ] [ author
]<BR><BR>________________________________<BR><BR>Gianluca Varenni
wrote:<BR><BR>> In the next days I will try to commit an implementation of
<BR>> pcap_free_datalinks() in the libpcap source tree.<BR><BR>I've checked
one into the main and 1.0 branches (along with a man page).<BR><BR><BR>-----
Original Message ----- <BR>From: "Esmond Pitt" <esmond.pitt at <A
href="http://bigpond.com" target=_blank>bigpond.com</A>><BR>To:
<winpcap-users at <A href="http://winpcap.org"
target=_blank>winpcap.org</A>><BR>Sent: Tuesday, May 20, 2008 11:35
PM<BR>Subject: [Winpcap-users] pcap_list_datalinks() - how to
free<BR><BR><BR>> The documentation for the pcap_list_datalinks() function
says that the <BR>> user<BR>> is responsible for freeing the array of
integers allocated by the <BR>> function.<BR>><BR>> As no specific
function to do that is provided, presumably we are supposed<BR>> to use
free(3). But in a DLL environment this is of course most <BR>>
problematic,<BR>> and indeed causes SEGVs when I do it.<BR>><BR>> I
think you need to add a pcap_free_datalinks() function. Or is there some<BR>>
other solution?<BR><BR>No other solution. This function was created within the
linux/unix <BR>environment, where it's safe to call malloc/free from across
DLLs/shared <BR>object boundaries (while it's not under Windows with the MS
CRT).<BR><BR>In the next days I will try to commit an implementation of
<BR>pcap_free_datalinks() in the libpcap source tree.<BR><BR>Have a nice
day<BR>GV<BR><BR>><BR>> EJP<BR>><BR>>
_______________________________________________<BR>> Winpcap-users mailing
list<BR>> Winpcap-users at <A href="http://winpcap.org"
target=_blank>winpcap.org</A><BR>> <A
href="https://www.winpcap.org/mailman/listinfo/winpcap-users"
target=_blank>https://www.winpcap.org/mailman/listinfo/winpcap-users</A>
<BR></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></BODY></HTML>