patch-2.1.30 linux/net/x25/x25_link.c

Next file: linux/net/x25/x25_timer.c
Previous file: linux/net/x25/x25_dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.29/linux/net/x25/x25_link.c linux/net/x25/x25_link.c
@@ -58,7 +58,7 @@
 
 	neigh->timer.data     = (unsigned long)neigh;
 	neigh->timer.function = &x25_link_timer;
-	neigh->timer.expires  = jiffies + 100;
+	neigh->timer.expires  = jiffies + (HZ / 1);
 
 	add_timer(&neigh->timer);
 }
@@ -240,10 +240,8 @@
 
 void x25_transmit_link(struct sk_buff *skb, struct x25_neigh *neigh)
 {
-#ifdef CONFIG_FIREWALL
-	if (call_fw_firewall(PF_X25, skb->dev, skb->data, NULL) != FW_ACCEPT)
+	if (call_fw_firewall(PF_X25, skb->dev, skb->data, NULL,&skb) != FW_ACCEPT)
 		return;
-#endif
 
 	switch (neigh->state) {
 		case X25_LINK_STATE_0:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov