delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/23/06:24:55

Date: Fri, 23 Oct 1998 13:19:40 +0200 (MET DST)
From: Wojciech Piechowski <voyt AT ds2 DOT pg DOT gda DOT pl>
To: djgpp AT delorie DOT com
Subject: Re: Packet driver
In-Reply-To: <70oqdj$1re$1@jupiter.cs.uml.edu>
Message-ID: <Pine.GSO.3.96.981023131658.26664A-100000@delta.ds2.pg.gda.pl>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On 22 Oct 1998, Ngan Tran wrote:

> Hi
> Does anyone know how to put the Ethernet card into promiscuous mode
> using the packet driver interface?
> Ngan

6.18. set_rcv_mode()		extended driver function
set_rcv_mode(handle, mode)
	AH	20
	BX	handle
	CX	mode

error return:
	carry	set
	DH	error code

	possible errors:
		BAD_HANDLE
		BAD_MODE

non-error return:
	carry	clear

Mode 6 enables catching all packets.

--------------------\  Wojciech  Piechowski  /----------------------------
Student informatyki   \ voyt AT ds2 DOT pg DOT gda DOT pl /   Student of computer science
Politechnika Gdanska    \________________/  Technical University of Gdansk

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019