mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-08 00:34:57 +03:00
Correct Spelling (#458)
* spelling: accepts * spelling: account * spelling: accept * spelling: accumulate * spelling: adapter * spelling: address * spelling: additional * spelling: aggressive * spelling: adhered * spelling: allowed * spelling: ambiguous * spelling: amount * spelling: anonymous * spelling: acquisition * spelling: assemble * spelling: associated * spelling: assigns * spelling: attach * spelling: attempt * spelling: attribute * spelling: authenticate * spelling: authentication * spelling: available * spelling: bridging * spelling: cascade * spelling: cancel * spelling: check * spelling: challenge * spelling: changing * spelling: characters * spelling: cloud * spelling: compare * spelling: communication * spelling: compatible * spelling: compatibility * spelling: completion * spelling: complete * spelling: computers * spelling: configure * spelling: configuration * spelling: conformant * spelling: connection * spelling: contains * spelling: continuously * spelling: continue * spelling: convert * spelling: counters * spelling: create * spelling: created * spelling: cumulate * spelling: currently * spelling: debugging * spelling: decryption * spelling: description * spelling: default * spelling: driver * spelling: delete * spelling: destination * spelling: disabled * spelling: different * spelling: dynamically * spelling: directory * spelling: disappeared * spelling: disable * spelling: doesn't * spelling: download * spelling: dropped * spelling: enable * spelling: established * spelling: ether * spelling: except * spelling: expired * spelling: field * spelling: following * spelling: forever * spelling: firewall * spelling: first * spelling: fragment * spelling: function * spelling: gateway * spelling: identifier * spelling: identify * spelling: incoming * spelling: information * spelling: initialize * spelling: injection * spelling: inner * spelling: instead * spelling: installation * spelling: inserted * spelling: integer * spelling: interrupt * spelling: intuitive * spelling: interval * spelling: january * spelling: keybytes * spelling: know * spelling: language * spelling: length * spelling: library * spelling: listener * spelling: maintain * spelling: modified * spelling: necessary * spelling: number * spelling: obsoleted * spelling: occurred * spelling: occurring * spelling: occur * spelling: original * spelling: omittable * spelling: omit * spelling: opening * spelling: operation * spelling: packet * spelling: parameters * spelling: pointed * spelling: popupmenuopen * spelling: privilege * spelling: product * spelling: protection * spelling: promiscuous * spelling: prompt * spelling: query * spelling: random * spelling: reconnection * spelling: revocation * spelling: received * spelling: red hat * spelling: registry * spelling: release * spelling: retrieve
This commit is contained in:
committed by
Moataz Elmasry
parent
03443ab1c4
commit
ac865f04fc
@ -129,7 +129,7 @@ NTSTATUS NPF_Open(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
||||
Open->DeviceExtension=DeviceExtension;
|
||||
|
||||
|
||||
// Save the Irp here for the completeion routine to retrieve
|
||||
// Save the Irp here for the completion routine to retrieve
|
||||
Open->OpenCloseIrp=Irp;
|
||||
|
||||
// Allocate a packet pool for our xmit and receive packets
|
||||
@ -259,7 +259,7 @@ NTSTATUS NPF_Open(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
||||
//
|
||||
// Try to open the MAC
|
||||
//
|
||||
IF_LOUD(DbgPrint("NPF: Openinig the device %ws, BindingContext=%d\n",DeviceExtension->AdapterName.Buffer, Open);)
|
||||
IF_LOUD(DbgPrint("NPF: Opening the device %ws, BindingContext=%d\n",DeviceExtension->AdapterName.Buffer, Open);)
|
||||
|
||||
NdisOpenAdapter(
|
||||
&Status,
|
||||
@ -675,7 +675,7 @@ NPF_ResetComplete(IN NDIS_HANDLE ProtocolBindingContext,IN NDIS_STATUS Status)
|
||||
|
||||
PLIST_ENTRY ResetListEntry;
|
||||
|
||||
IF_LOUD(DbgPrint("NPF: PacketResetComplte\n");)
|
||||
IF_LOUD(DbgPrint("NPF: PacketResetComplete\n");)
|
||||
|
||||
Open= (POPEN_INSTANCE)ProtocolBindingContext;
|
||||
|
||||
@ -700,7 +700,7 @@ NPF_ResetComplete(IN NDIS_HANDLE ProtocolBindingContext,IN NDIS_STATUS Status)
|
||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
|
||||
IF_LOUD(DbgPrint("NPF: PacketResetComplte exit\n");)
|
||||
IF_LOUD(DbgPrint("NPF: PacketResetComplete exit\n");)
|
||||
|
||||
return;
|
||||
|
||||
|
@ -118,7 +118,7 @@ DriverEntry(
|
||||
}
|
||||
else
|
||||
{
|
||||
// Windows XP, 2003 and follwing want only NDIS_FLAGS_DONT_LOOPBACK
|
||||
// Windows XP, 2003 and following want only NDIS_FLAGS_DONT_LOOPBACK
|
||||
g_SendPacketFlags = NDIS_FLAGS_DONT_LOOPBACK;
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@
|
||||
|
||||
Command used to send a buffer of packets in a single system call. Every packet in the buffer is preceded by
|
||||
a sf_pkthdr structure. The timestamps of the packets are used to synchronize the write, i.e. the packets
|
||||
are sent to the network respecting the intervals specified in the sf_pkthdr structure assiciated with each
|
||||
are sent to the network respecting the intervals specified in the sf_pkthdr structure associated with each
|
||||
packet. NPF_BufferedWrite() function is invoked to send the packets.
|
||||
*/
|
||||
#define BIOCSENDPACKETSSYNC 9033
|
||||
@ -287,7 +287,7 @@ typedef struct __CPU_Private_Data
|
||||
ULONG C; ///< Zero-based index of the consumer in the buffer. It indicates the first free byte to be read.
|
||||
ULONG Free; ///< Number of the free bytes in the buffer
|
||||
PUCHAR Buffer; ///< Pointer to the kernel buffer used to capture packets.
|
||||
ULONG Accepted; ///< Number of packet that current capture instance acepted, from its opening. A packet
|
||||
ULONG Accepted; ///< Number of packet that current capture instance accepted, from its opening. A packet
|
||||
///< is accepted if it passes the filter and fits in the buffer. Accepted packets are the
|
||||
///< ones that reach the application.
|
||||
///< This number is related to the particular CPU this structure is referring to.
|
||||
@ -318,7 +318,7 @@ typedef struct _OPEN_INSTANCE
|
||||
{
|
||||
PDEVICE_EXTENSION DeviceExtension; ///< Pointer to the _DEVICE_EXTENSION structure of the device on which
|
||||
///< the instance is bound.
|
||||
NDIS_HANDLE AdapterHandle; ///< NDIS idetifier of the adapter used by this instance.
|
||||
NDIS_HANDLE AdapterHandle; ///< NDIS Identifier of the adapter used by this instance.
|
||||
UINT Medium; ///< Type of physical medium the underlying NDIS driver uses. See the
|
||||
///< documentation of NdisOpenAdapter in the MS DDK for details.
|
||||
NDIS_HANDLE PacketPool; ///< Pool of NDIS_PACKET structures used to transfer the packets from and to the NIC driver.
|
||||
@ -333,7 +333,7 @@ typedef struct _OPEN_INSTANCE
|
||||
HANDLE ReadEventHandle; ///< Handle of the event on which the read calls on this instance must wait.
|
||||
UNICODE_STRING ReadEventName; ///< Name of the event on which the read calls on this instance must wait.
|
||||
///< The event is created with a name, so it can be used at user level to know when it
|
||||
///< is possible to access the driver without being blocked. This fiels stores the name
|
||||
///< is possible to access the driver without being blocked. This field stores the name
|
||||
///< that and is used by the BIOCGEVNAME IOCTL call.
|
||||
PUCHAR bpfprogram; ///< Pointer to the filtering pseudo-code associated with current instance of the driver.
|
||||
///< This code is used only in particular situations (for example when the packet received
|
||||
@ -381,7 +381,7 @@ typedef struct _OPEN_INSTANCE
|
||||
MEM_TYPE mem_ex; ///< Memory used by the TME virtual co-processor
|
||||
TME_CORE tme; ///< Data structure containing the virtualization of the TME co-processor
|
||||
NDIS_SPIN_LOCK MachineLock; ///< SpinLock that protects the mem_ex buffer
|
||||
UINT MaxFrameSize; ///< Maximum frame size that the underlying MAC acceptes. Used to perform a check on the
|
||||
UINT MaxFrameSize; ///< Maximum frame size that the underlying MAC accepts. Used to perform a check on the
|
||||
///< size of the frames sent with NPF_Write() or NPF_BufferedWrite().
|
||||
CpuPrivateData CpuData[1024]; ///< Pool of kernel buffer structures, one for each CPU.
|
||||
ULONG ReaderSN; ///< Sequence number of the next packet to be read from the pool of kernel buffers.
|
||||
@ -812,7 +812,7 @@ NPF_ReadRegistry(
|
||||
);
|
||||
|
||||
/*!
|
||||
\brief Function used by NPF_ReadRegistry() to quesry the registry keys associated woth NPF if the driver
|
||||
\brief Function used by NPF_ReadRegistry() to query the registry keys associated woth NPF if the driver
|
||||
is manually installed via the control panel.
|
||||
|
||||
Normally not used in recent versions of NPF.
|
||||
@ -844,7 +844,7 @@ VOID NPF_BindAdapter(
|
||||
\brief Callback for NDIS UnbindAdapterHandler.
|
||||
\param Status out variable filled by NPF_UnbindAdapter with the status of the unbind operation.
|
||||
\param ProtocolBindingContext Context of the function. Contains a pointer to the OPEN_INSTANCE structure associated with current instance.
|
||||
\param UnbindContext Specifies a handle, supplied by NDIS, that NPF can use to complete the opration.
|
||||
\param UnbindContext Specifies a handle, supplied by NDIS, that NPF can use to complete the operation.
|
||||
|
||||
Function called by NDIS when a new adapter is removed from the machine without shutting it down.
|
||||
NPF_UnbindAdapter closes the adapter calling NdisCloseAdapter() and frees the memory and the structures
|
||||
|
@ -306,7 +306,7 @@ struct _PACKET_OID_DATA {
|
||||
ULONG Oid; ///< OID code. See the Microsoft DDK documentation or the file ntddndis.h
|
||||
///< for a complete list of valid codes.
|
||||
ULONG Length; ///< Length of the data field
|
||||
UCHAR Data[1]; ///< variable-lenght field that contains the information passed to or received
|
||||
UCHAR Data[1]; ///< variable-length field that contains the information passed to or received
|
||||
///< from the adapter.
|
||||
};
|
||||
typedef struct _PACKET_OID_DATA PACKET_OID_DATA, *PPACKET_OID_DATA;
|
||||
@ -346,7 +346,7 @@ LONG PacketDumpRegistryKey(PCHAR KeyName, PCHAR FileName);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* We load dinamically the dag library in order link it only when it's present on the system */
|
||||
/* We load dynamically the dag library in order link it only when it's present on the system */
|
||||
#ifdef HAVE_DAG_API
|
||||
typedef dagc_t* (*dagc_open_handler)(const char *source, unsigned flags, char *ebuf); ///< prototype used to dynamically load the dag dll
|
||||
typedef void (*dagc_close_handler)(dagc_t *dagcfd); ///< prototype used to dynamically load the dag dll
|
||||
|
@ -70,7 +70,7 @@ NTSTATUS NPF_Read(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)
|
||||
|
||||
if( Open->Bound == FALSE )
|
||||
{
|
||||
// The Network adapter has been removed or diasabled
|
||||
// The Network adapter has been removed or disabled
|
||||
EXIT_FAILURE(0);
|
||||
}
|
||||
|
||||
@ -130,7 +130,7 @@ NTSTATUS NPF_Read(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)
|
||||
*(LONGLONG*)(CurrBuff+sizeof(struct bpf_hdr))=Open->Npackets.QuadPart;
|
||||
*(LONGLONG*)(CurrBuff+sizeof(struct bpf_hdr)+8)=Open->Nbytes.QuadPart;
|
||||
|
||||
//reset the countetrs
|
||||
//reset the counters
|
||||
NdisAcquireSpinLock( &Open->CountersLock );
|
||||
Open->Npackets.QuadPart=0;
|
||||
Open->Nbytes.QuadPart=0;
|
||||
|
@ -217,7 +217,7 @@ NPF_BufferedWrite(
|
||||
// Start from the first packet
|
||||
winpcap_hdr = (struct sf_pkthdr*)UserBuff;
|
||||
|
||||
// Chech the consistency of the user buffer
|
||||
// Check the consistency of the user buffer
|
||||
if( (PCHAR)winpcap_hdr + winpcap_hdr->caplen + sizeof(struct sf_pkthdr) > EndOfUserBuff )
|
||||
{
|
||||
IF_LOUD(DbgPrint("Buffered Write: bogus packet buffer\n");)
|
||||
|
@ -207,7 +207,7 @@ int dagc_stats(dagc_t *dagcfd, dagc_stats_t *ps);
|
||||
* for open, close and write. However, if the programmer uses these functions, he is more protected
|
||||
* against file format changes (for example if the file format will have an header in the future).
|
||||
* Moreover, assuming that the user knows the file format is a bad practice: providing
|
||||
* simple simple save functionality is more intutive and user-friendly.
|
||||
* simple simple save functionality is more intuitive and user-friendly.
|
||||
*/
|
||||
int dagc_dumpfile_open(dagc_t *dagcfd, char* name);
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
||||
//
|
||||
// emit routine to update the jump table
|
||||
//
|
||||
void emit_lenght(binary_stream *stream, ULONG value, UINT len)
|
||||
void emit_length(binary_stream *stream, ULONG value, UINT len)
|
||||
{
|
||||
(stream->refs)[stream->bpf_pc]+=len;
|
||||
stream->cur_ip+=len;
|
||||
@ -115,7 +115,7 @@ BPF_filter_function BPFtoX86(struct bpf_insn *prog, UINT nins, INT *mem)
|
||||
|
||||
// the first pass will emit the lengths of the instructions
|
||||
// to create the reference table
|
||||
emitm=emit_lenght;
|
||||
emitm=emit_length;
|
||||
|
||||
for(pass=0;;){
|
||||
|
||||
|
@ -397,7 +397,7 @@ u_int bpf_filter(register struct bpf_insn *pc,
|
||||
\return The portion of the packet to keep, in bytes. 0 means that the packet must be rejected, -1 means that
|
||||
the whole packet must be kept.
|
||||
|
||||
This function is used when NDIS passes the packet to NPF_tap() in two buffers instaed than in a single one.
|
||||
This function is used when NDIS passes the packet to NPF_tap() in two buffers instead than in a single one.
|
||||
*/
|
||||
u_int bpf_filter_with_2_buffers(register struct bpf_insn *pc,
|
||||
register u_char *p,
|
||||
|
Reference in New Issue
Block a user