Extending Npcap

Holger Pfrommer <[email protected]> Fri, 6 Sep 2019 06:51:08 +0000
Newsgroups gmane.comp.security.nmap.devel
Message-ID <[email protected]>
--===============0038150250151830034==
Content-Language: de-DE
Content-Type: multipart/alternative;
	boundary="_000_c9b45eb3ddf54fe288f65c9d0a8545d1hilschercom_"

--_000_c9b45eb3ddf54fe288f65c9d0a8545d1hilschercom_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Cheers,

I'd like to extend Npcap library to support an additional capture device. G=
oal is to contribute the code to your nice project so it'll be available to=
 the whole public in future.
I already have an (up-to-date) running libpcap implementation for Linux and=
 also (an older implementation) for WinPcap.

As far as I understood, Npcap is based in libpcap and thus would not requir=
e any separate implementation for Windows?

So what would be the best way to get my code into an upcoming release of Np=
cap?
Should I contribute my code to the-tcpdump-group/libpcap project and it'll =
find its way to Npcap? Should I contribute to nmap/libpcap?
Or do I even have to push the Windows-only part of the old WinPcap source t=
o nmap/npcap (packetWin7)?

Best regards,
Holger


Hilscher Gesellschaft f?r Systemautomation mbH   |  Rheinstrasse 15  |  657=
95 Hattersheim  |  Germany  |  www.hilscher.com<http://www.hilscher.com>
Sitz der Gesellschaft / place of business: Hattersheim  |  Gesch?ftsf?hrer =
/ managing director: Dipl.-Ing. Hans-J?rgen Hilscher
Handelsregister / commercial register: Frankfurt B 26873  |  Ust. Idnr. / V=
AT No.: DE113852715
Registergericht / register court: Amtsgericht Frankfurt/Main

Important Information:
This e-mail message including its attachments contains confidential and leg=
ally protected information solely intended for the addressee. If you are no=
t the intended addressee of this message, please contact the addresser imme=
diately and delete this message including its attachments. The unauthorized=
 dissemination, copying and change of this e-mail are strictly forbidden. T=
he addresser shall not be liable for the content of such changed e-mails.

Wichtiger Hinweis:
Diese E-Mail einschlie?lich ihrer Anh?nge enth?lt vertrauliche und rechtlic=
h gesch?tzte Informationen, die nur f?r den Adressaten bestimmt sind. Sollt=
en Sie nicht der bezeichnete Adressat sein, so teilen Sie dies bitte dem Ab=
sender umgehend mit und l?schen Sie diese Nachricht und ihre Anh?nge. Die u=
nbefugte Weitergabe, das Anfertigen von Kopien und jede Ver?nderung der E-M=
ail ist untersagt. Der Absender haftet nicht f?r Inhalte von ver?nderten E-=
Mails.

--_000_c9b45eb3ddf54fe288f65c9d0a8545d1hilschercom_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:36.0pt;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.E-MailFormatvorlage19
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:1720476636;
	mso-list-type:hybrid;
	mso-list-template-ids:-1264127118 1557686068 67567619 67567621 67567617 67=
567619 67567621 67567617 67567619 67567621;}
@list l0:level1
	{mso-level-start-at:0;
	mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Symbol;
	mso-fareast-font-family:Calibri;
	mso-bidi-font-family:"Times New Roman";}
@list l0:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:"Courier New";}
@list l0:level3
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Wingdings;}
@list l0:level4
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Symbol;}
@list l0:level5
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:"Courier New";}
@list l0:level6
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Wingdings;}
@list l0:level7
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Symbol;}
@list l0:level8
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:"Courier New";}
@list l0:level9
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-18.0pt;
	font-family:Wingdings;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"DE" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Cheers,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I&#8217;d like to extend Npcap =
library to support an additional capture device. Goal is to contribute the =
code to your nice project so it&#8217;ll be available to the whole public i=
n future.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I already have an (up-to-date) =
running libpcap implementation for Linux and also (an older implementation)=
 for WinPcap.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">As far as I understood, Npcap i=
s based in libpcap and thus would not require any separate implementation f=
or Windows?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">So what would be the best way t=
o get my code into an upcoming release of Npcap?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Should I contribute my code to =
the-tcpdump-group/libpcap project and it&#8217;ll find its way to Npcap? Sh=
ould I contribute to nmap/libpcap?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Or do I even have to push the W=
indows-only part of the old WinPcap source to nmap/npcap (packetWin7)?<o:p>=
</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span lang=3D"EN-US" =
style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:bl=
ack;mso-fareast-language:DE">Best regards,<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span lang=3D"EN-US" =
style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:bl=
ack;mso-fareast-language:DE">Holger<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span lang=3D"EN-US">=
<o:p>&nbsp;</o:p></span></p>
</div>
<div><span style=3D"color: gray;"><br style=3D"font-family: Arial; font-siz=
e: 12pt;">
</span><span style=3D"color: gray; font-family: arial;"><span style=3D"font=
-family: Arial; color: #ff0000; font-size: 7.5pt;">Hilscher Gesellschaft f&=
uuml;r Systemautomation mbH</span>
<span style=3D"font-family: Arial; font-size: 7.5pt;">&nbsp; |&nbsp; Rheins=
trasse 15&nbsp; |&nbsp; 65795 Hattersheim&nbsp; |&nbsp; Germany&nbsp; |&nbs=
p;
<a href=3D"http://www.hilscher.com"><span style=3D"color: gray;">www.hilsch=
er.com</span></a></span>
<span style=3D"font-family: Arial; font-size: 7.5pt;"><span style=3D"font-f=
amily: Arial; color: gray; font-size: 7.5pt;"><span style=3D"font-family: A=
rial; color: gray; font-size: 7.5pt;"><br>
Sitz der Gesellschaft / place of business: Hattersheim&nbsp; |&nbsp; Gesch&=
auml;ftsf&uuml;hrer / managing director: Dipl.-Ing.
</span><span style=3D"font-family: Arial; color: gray; font-size: 7.5pt;">H=
ans-J&uuml;rgen Hilscher<br>
Handelsregister / commercial register: Frankfurt B 26873&nbsp; |&nbsp; Ust.=
 Idnr. / VAT No.: DE113852715<br>
Registergericht / register court: Amtsgericht Frankfurt/Main<br>
<br>
<strong>Important Information:<br>
</strong>This e-mail message including its attachments contains confidentia=
l and legally protected information solely intended for the addressee. If y=
ou are not the intended addressee of this message, please contact the addre=
sser immediately and delete this
 message including its attachments. The unauthorized dissemination, copying=
 and change of this e-mail are strictly forbidden. The addresser shall not =
be liable for the content of such changed e-mails.
<br>
<br>
<strong>Wichtiger Hinweis:</strong></span> <span style=3D"font-family: Aria=
l; color: gray; font-size: 7.5pt;">
<br>
Diese E-Mail einschlie&szlig;lich ihrer Anh&auml;nge enth&auml;lt vertrauli=
che und rechtlich gesch&uuml;tzte Informationen, die nur f&uuml;r den Adres=
saten bestimmt sind. Sollten Sie nicht der bezeichnete Adressat sein, so te=
ilen Sie dies bitte dem Absender umgehend mit und l&ouml;schen
 Sie diese Nachricht und ihre Anh&auml;nge. Die unbefugte Weitergabe, das A=
nfertigen von Kopien und jede Ver&auml;nderung der E-Mail ist untersagt. De=
r Absender haftet nicht f&uuml;r Inhalte von ver&auml;nderten E-Mails.<br>
</span></span></span></span></div>
</body>
</html>

--_000_c9b45eb3ddf54fe288f65c9d0a8545d1hilschercom_--

--===============0038150250151830034==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/
--===============0038150250151830034==--