patch-2.1.80 linux/net/core/neighbour.c
Next file: linux/net/core/skbuff.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Thu Jan 15 14:33:07 1998
- Orig file:
v2.1.79/linux/net/core/neighbour.c
- Orig date:
Mon Jan 12 22:09:24 1998
diff -u --recursive --new-file v2.1.79/linux/net/core/neighbour.c linux/net/core/neighbour.c
@@ -432,7 +432,7 @@
if (state&(NUD_PERMANENT|NUD_IN_TIMER))
goto next_elt;
- if (n->used - n->confirmed < 0)
+ if ((long)(n->used - n->confirmed) < 0)
n->used = n->confirmed;
if (atomic_read(&n->refcnt) == 0 &&
@@ -795,17 +795,17 @@
while (skb != (struct sk_buff*)&tbl->proxy_queue) {
struct sk_buff *back = skb;
+ long tdif = back->stamp.tv_usec - now;
+
skb = skb->next;
- if (back->stamp.tv_usec - now <= 0) {
+ if (tdif <= 0) {
__skb_unlink(back, &tbl->proxy_queue);
if (tbl->proxy_redo)
tbl->proxy_redo(back);
else
kfree_skb(back, FREE_WRITE);
- } else {
- if (!sched_next || back->stamp.tv_usec - now < sched_next)
- sched_next = back->stamp.tv_usec - now;
- }
+ } else if (!sched_next || tdif < sched_next)
+ sched_next = tdif;
}
del_timer(&tbl->proxy_timer);
if (sched_next) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov