Re: [tcpdump-workers] libdlpi with libpcap

2008-04-07 Thread Sagun Shakya
Guy Harris wrote: sagun shakya wrote: When the features mentioned above integrate into Solaris, an extensible way to open DLPI links under different directories will be required. The libdlpi(3LIB) library provides an interface that provides an abstraction around this so that DLPI applications

Re: [tcpdump-workers] libdlpi with libpcap

2008-04-06 Thread Guy Harris
sagun shakya wrote: When the features mentioned above integrate into Solaris, an extensible way to open DLPI links under different directories will be required. The libdlpi(3LIB) library provides an interface that provides an abstraction around this so that DLPI applications do not need to kno

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-03-13 Thread sagun shakya
Guy Harris wrote: sagun shakya wrote: Being new to the process of submitting patches here, do I need to provide a patch via the patch tracker in sourceforge.net or uploading the diff and new files to the bugid will suffice? Please let me know. So what license/copyright should be applied to p

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-03-13 Thread Guy Harris
sagun shakya wrote: Being new to the process of submitting patches here, do I need to provide a patch via the patch tracker in sourceforge.net or uploading the diff and new files to the bugid will suffice? Please let me know. So what license/copyright should be applied to pcap-libdlpi.c? A l

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-03-07 Thread sagun shakya
Hi, I've added the new files and diffs on for the changes needed in libpcap for : 1882884 Add libpcap support for new Solaris features https://sourceforge.net/tracker/?func=detail&atid=469577&aid=1882884&group_id=53067 Being new to the process of submitting patches here, do I need to provid

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-20 Thread sagun shakya
I've updated the webrev that fixes your commets. Updated webrev can be found at: http://cr.opensolaris.org/~sagun/libpcap-review2/ Guy Harris wrote: It says, in a comment you added to configure.in: + # Due to a gcc bug (6619485), the default search path for 32-bit + # libraries d

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-16 Thread Guy Harris
sagun shakya wrote: I agree, I'll add this to the configure script of tcpdump. This would also be applicable for wireshark then? Yes, and probably Snort and other apps using libpcap. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-16 Thread sagun shakya
Guy Harris wrote: On Feb 13, 2008, at 6:14 PM, sagun shakya wrote: Updated webrev can be found at: http://cr.opensolaris.org/~sagun/libpcap-review2/ Why did you add a AC_CHECK_HEADERS(sys/bufmod.h) check to configure.in after the check for libdlpi? It's checked for later in the case

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-16 Thread sagun shakya
Guy Harris wrote: On Feb 13, 2008, at 6:14 PM, sagun shakya wrote: Updated webrev can be found at: http://cr.opensolaris.org/~sagun/libpcap-review2/ It says, in a comment you added to configure.in: + # Due to a gcc bug (6619485), the default search path for 32-bit +

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-15 Thread Guy Harris
On Feb 13, 2008, at 6:14 PM, sagun shakya wrote: Updated webrev can be found at: http://cr.opensolaris.org/~sagun/libpcap-review2/ It says, in a comment you added to configure.in: + # Due to a gcc bug (6619485), the default search path for 32-bit + # libraries does not inclu

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-15 Thread Guy Harris
On Feb 13, 2008, at 6:14 PM, sagun shakya wrote: Updated webrev can be found at: http://cr.opensolaris.org/~sagun/libpcap-review2/ Why did you add a AC_CHECK_HEADERS(sys/bufmod.h) check to configure.in after the check for libdlpi? It's checked for later in the case statement if

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-14 Thread Sebastien Roy
sagun shakya wrote: Sebastien Roy wrote: sagun shakya wrote: pcap-int.h: * 71-98: These only apply when compiling with DLPI support. Perhaps Guy can answer this: Should there be some sort of #ifdef to make sure that these symbols don't pollute the namespace when compiled on other platform

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-14 Thread Sebastien Roy
sagun shakya wrote: sagun shakya wrote: Sebastien Roy wrote: pcap-int.h: * 71-98: These only apply when compiling with DLPI support. Perhaps Guy can answer this: Should there be some sort of #ifdef to make sure that these symbols don't pollute the namespace when compiled on other platform

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-13 Thread sagun shakya
Sebastien Roy wrote: sagun shakya wrote: pcap-int.h: * 71-98: These only apply when compiling with DLPI support. Perhaps Guy can answer this: Should there be some sort of #ifdef to make sure that these symbols don't pollute the namespace when compiled on other platforms? * 376-385: Same

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-13 Thread sagun shakya
sagun shakya wrote: Sebastien Roy wrote: Sorry, I hadn't generated the webrev. Here are the diffs against my previous updates. http://cr.opensolaris.org/~sagun/webrev-seb-comments/ The webrev against the libpcap source are here: http://cr.opensolaris.org/~sagun/libpcap-review2/ Gr

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-11 Thread Sebastien Roy
sagun shakya wrote: Sebastien Roy wrote: Thanks Sagun; do you have a webrev that diffs against your previous updates? Sorry, I hadn't generated the webrev. Here are the diffs against my previous updates. http://cr.opensolaris.org/~sagun/webrev-seb-comments/ The webrev against the libpcap s

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-11 Thread Sebastien Roy
sagun shakya wrote: Hi Seb and Guy, I've generated a new webrev that incorporates your comments. The webrev can be found at: http://cr.opensolaris.org/~sagun/libpcap-review2/ Thanks Sagun; do you have a webrev that diffs against your previous updates? -Seb - This is the tcpdump-workers lis

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-11 Thread sagun shakya
Sebastien Roy wrote: Sorry, I hadn't generated the webrev. Here are the diffs against my previous updates. http://cr.opensolaris.org/~sagun/webrev-seb-comments/ The webrev against the libpcap source are here: http://cr.opensolaris.org/~sagun/libpcap-review2/ Great. Only a couple of nits:

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-11 Thread sagun shakya
Sebastien Roy wrote: sagun shakya wrote: Hi Seb and Guy, I've generated a new webrev that incorporates your comments. The webrev can be found at: http://cr.opensolaris.org/~sagun/libpcap-review2/ Thanks Sagun; do you have a webrev that diffs against your previous updates? Sorry, I hadn'

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-10 Thread sagun shakya
Hi Seb and Guy, I've generated a new webrev that incorporates your comments. The webrev can be found at: http://cr.opensolaris.org/~sagun/libpcap-review2/ In the changes, I have not added the support for consumers of libpcap to have access to raw WIFI frames. I will be sending those changes

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-01 Thread Peter Memishian
> With an 802.11 device, does turning DLPI_NATIVE on put the device into > monitor mode, or does it just cause it to supply 802.11 headers? It just causes it to supply 802.11 headers. We may later add support to monitor. > Is there a way to query whether a device supports DLPI_NATIVE >

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-01 Thread sagun shakya
Guy Harris wrote: On Feb 1, 2008, at 12:47 PM, sagun shakya wrote: Sebastien Roy wrote: * 118-123: I would think that in 2008, most compilers can do a better job at assigning register use than this (making every single variable a "register" variable.) You don't have to fix this; th

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-01 Thread Guy Harris
On Feb 1, 2008, at 12:47 PM, sagun shakya wrote: Sebastien Roy wrote: * 118-123: I would think that in 2008, most compilers can do a better job at assigning register use than this (making every single variable a "register" variable.) You don't have to fix this; this is more a question

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-01 Thread Guy Harris
On Feb 1, 2008, at 10:10 AM, Sebastien Roy wrote: * 118-123: I would think that in 2008, most compilers can do a better job at assigning register use than this (making every single variable a "register" variable.) You don't have to fix this; this is more a question for those more knowledg

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-01 Thread sagun shakya
Thanks Seb. I Will send out an updated webrev. My comments are below: Sebastien Roy wrote: http://cr.opensolaris.org/~sagun/libpcap/ aclocal.m4 and configure.in * The macros and code in these files seem to be going out of their way to support old versions of the public libdlpi library that d

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-01 Thread Peter Memishian
> > * 101: Perhaps this is a good time to ask about DLPI_NATIVE. For those > not familiar with the concept, the idea is that some DLPI providers > masquerade as a well-known media type by default, but can morph into > their "native" types on-demand. Recent Solaris WiFi DLPI devices behav

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-02-01 Thread Sebastien Roy
sagun shakya wrote: I've addressed all the comments from below and updated the webrev. http://cr.opensolaris.org/~sagun/libpcap/ While testing the changes I found out that my changes didn't work on a Solaris system that had libdlpi.h version that existed before the public libdlpi.h was integra

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-31 Thread sagun shakya
I've addressed all the comments from below and updated the webrev. http://cr.opensolaris.org/~sagun/libpcap/ While testing the changes I found out that my changes didn't work on a Solaris system that had libdlpi.h version that existed before the public libdlpi.h was integrated. Some changes had

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-30 Thread sagun shakya
sagun shakya wrote: Guy Harris wrote: I mostly fixed the comment changes, thinking they were trivial and left other Sun cstyle error alone. I can see how it is distracting while reviewing the actual changes. I've undone such changes and posted a new webrev at: http://cr.opensolaris.org/~

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-30 Thread sagun shakya
Thank you for reviewing the changes Guy! FYI, I've also filed bug # 1882884 " Add libpcap support for new Solaris features". Guy Harris wrote: I mostly fixed the comment changes, thinking they were trivial and left other Sun cstyle error alone. I can see how it is distracting while reviewi

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-30 Thread Guy Harris
sagun shakya wrote: I mostly fixed the comment changes, thinking they were trivial and left other Sun cstyle error alone. I can see how it is distracting while reviewing the actual changes. I've undone such changes and posted a new webrev at: http://cr.opensolaris.org/~sagun/libpcap/ pcap

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-30 Thread Peter Memishian
> It does? :-) > > Most files mostly use something akin to ANSI C-ified KNF (not > surprising, given that LBL is run by UCB :-)), which was the Sun style > back when I was there (in the days when dinosaurs^WSun-3's walked the > earth). > > That's largely the style I use, but I've gott

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-29 Thread sagun shakya
Guy Harris wrote: That's largely the style I use, but I've gotten into the habit of leaving parentheses out of the value in a return statement, but I might've let that creep into stuff I've written in libpcap - on the other hand, there was a mix of "return x;" and "return (x);" back in libpcap

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-29 Thread Guy Harris
Peter Memishian wrote: > I mostly fixed the comment changes, thinking they were trivial and left > other Sun cstyle error alone. I can see how it is distracting while > reviewing the actual changes. It's more than distracting -- it's incorrect. Code for libpcap follows its own style It

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-29 Thread Peter Memishian
> I mostly fixed the comment changes, thinking they were trivial and left > other Sun cstyle error alone. I can see how it is distracting while > reviewing the actual changes. It's more than distracting -- it's incorrect. Code for libpcap follows its own style and must not be changed to c

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-28 Thread sagun shakya
Peter Memishian wrote: > I mostly fixed the comment changes, thinking they were trivial and left > other Sun cstyle error alone. I can see how it is distracting while > reviewing the actual changes. It's more than distracting -- it's incorrect. Code for libpcap follows its own style and

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-28 Thread Peter Memishian
> Due to other work priority I wasn't able to work on fixing and > addressing these comments. I have finally addressed the comments from > Meem and made a few other changes. My comments are inline and please > find an update webrev at: > > http://cr.opensolaris.org/~sagun/libpcap/ I see a

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-28 Thread sagun shakya
Peter Memishian wrote: > Due to other work priority I wasn't able to work on fixing and > addressing these comments. I have finally addressed the comments from > Meem and made a few other changes. My comments are inline and please > find an update webrev at: > > http://cr.opensolaris.org/

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2008-01-27 Thread sagun shakya
Due to other work priority I wasn't able to work on fixing and addressing these comments. I have finally addressed the comments from Meem and made a few other changes. My comments are inline and please find an update webrev at: http://cr.opensolaris.org/~sagun/libpcap/ If you'd like to see the

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2007-11-30 Thread sagun shakya
Thanks Meem for your comments. I'll look at the comments and revise as needed. sagun Peter Memishian wrote: > As there are some clearview team members planning on reviewing the > changes and currently there are other high priority work ongoing, I am > extending the code review timer for ano

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2007-11-29 Thread sagun shakya
As there are some clearview team members planning on reviewing the changes and currently there are other high priority work ongoing, I am extending the code review timer for another two weeks. I'm setting the timer to December 13th, 2007. The webrev can be found at: http://cr.opensolaris.org/

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2007-11-19 Thread sagun shakya
Peter Memishian wrote: > I'll update the webrev after I hear back from others as well. Personally, I'd prefer to review the version with those changes applied, since the cruft Guy pointed out is distracting. I thought it would be more annoying to update the changes if people has already sta

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2007-11-18 Thread Peter Memishian
> I'll update the webrev after I hear back from others as well. Personally, I'd prefer to review the version with those changes applied, since the cruft Guy pointed out is distracting. -- meem - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2007-11-18 Thread sagun shakya
I forgot to mention that I would like to hear feedback by November 28th, considering it is holidays for most in the US between November 22-23rd. Thank you for reviewing the changes. See my responses inline. Guy Harris wrote: sagun shakya wrote: I have developed a prototype with the option

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2007-11-17 Thread Guy Harris
sagun shakya wrote: I have developed a prototype with the option 1 proposed. I would like to hear from you if you have any comments or feedback. The changes made to the libpcap library can be seen at the link below: http://cr.opensolaris.org/~sagun/libpcap/ Unless you expect there to be syste

Re: [clearview-discuss] [tcpdump-workers] libdlpi with libpcap

2007-11-16 Thread sagun shakya
Hi, I would like to hear from you for suggestions on how libpcap can be updated to libdlpi. I have a couple of possible approaches to make this addition but they may not necessarily be the best approach: 1) Introduce a new pcap-libdlpi-solaris.c file which will handle all the versions of Solar

Re: [tcpdump-workers] libdlpi with libpcap

2007-10-10 Thread sagun shakya
[Reposting as I had the put the wrong mailing list.] Thank you for your response. Please see my responses inline. Guy Harris wrote: Improvements after adding support to libpcap: - * Observe all IP layer network traffic, including loopback, IPMP gro

Re: [tcpdump-workers] libdlpi with libpcap

2007-10-08 Thread Guy Harris
On Oct 5, 2007, at 3:35 PM, sagun shakya wrote: Improvements after adding support to libpcap: - * Observe all IP layer network traffic, including loopback, IPMP group, IP tunnel traffic and IP layer network traffic flowing to and from a zone. Th

[tcpdump-workers] libdlpi with libpcap

2007-10-05 Thread sagun shakya
Scope: -- Add libpcap support for upcoming Solaris features such as vanity naming, IP Tunneling and IP observability. Reason for changes: --- When the features mentioned above integrate into Solaris, an extensible way to open DLPI links under different directories will be r