On Apr 7, 2005, at 7:33 AM, Brown, Mark C (GSE GCSM) wrote:
Here's a patch to allow the user to override the DLSAP in the DL_BIND_REQ via environment variable PCAP_SAP when running on HP-UX. There have been issues with other applications binding to 22
I.e., other applications trying to read raw packets?
The value of 22 for INSAP came from the sample code at
http://docs.hp.com/en/B2355-90139/apas03.html
and
http://docs.hp.com/en/B2355-90871/apas04.html
Is there anything special about a SAP of 22? It sounds as if there isn't, as you're implying that overriding 22 with a different SAP value still works.
What SAP values can be used for the raw mode DLPI service primitives? Perhaps, instead of hardcoding 22 and 24 in, pcap-dlpi.c should try all of the available SAP values until it finds one where you don't get EBUSY back from a bind, rather than, in effect, forcing the user to do that; forcing the user to do so by tweaking an environment variable can be made to work if you're running the capture program from the command line, and it's not interactive, but it's not so convenient if the capture is being done from an interactive program such as Ethereal or from a command-line program such as tcpdump being started from a cron or at job, for example.
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.