netdev
[Top] [All Lists]

firewall code in 2.2.19

To: alan@xxxxxxxxxxxxxxxxxxx
Subject: firewall code in 2.2.19
From: sridhar <sridharv@xxxxxxx>
Date: Sat, 14 Jul 2001 16:52:26 -0400
Sender: owner-netdev@xxxxxxxxxxx
hi alan ,
 have a question about the firewall code in the 2.2.19 kernel. it has 2
functions called register_fw and call_fw. register adds a packet filter
to the linked list and call_fw traverses the list and calls the
appropriate functions. call_fw doesn't have any semaphores for accessing
the linked list. isn't it necessary?
register() uses a semaphore to prevent 2 ppl from adding at the same
time.
pl clarify
sridhar
first i thot it may be because a process may not be preempted in the
kernel mode .. but doesn't seem so.



<Prev in Thread] Current Thread [Next in Thread>
  • firewall code in 2.2.19, sridhar <=