3
3
3ka5_cat2013-05-26 22:43:35
Drivers
3ka5_cat, 2013-05-26 22:43:35

Filter-hook driver: dispatcher not called?

Good day
I'm trying to write a legacy filter-hook driver that would block traffic on a specific port.
I specify the dispatcher

DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = DrvDispatch;

I launch the driver on the Ipfilter target.
net start ipfilterdriver
After that, I launch my filter in debugging through VisualDDK. But when sending packets, the dispatcher is not called.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
3
3ka5_cat, 2013-05-27
@3ka5_cat

I forgot to register the filter-hook callback function immediately in the DriverEntry.
Registering and Clearing a Filter Hook

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question