inet_fragment.c (a57793651ff1a09ef18bade998632435ca2dc13f) | inet_fragment.c (b24b8a247ff65c01b252025926fe564209fae4fc) |
---|---|
1/* 2 * inet fragments management 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 52 unchanged lines hidden (view full) --- 61 rwlock_init(&f->lock); 62 63 f->rnd = (u32) ((num_physpages ^ (num_physpages>>7)) ^ 64 (jiffies ^ (jiffies >> 6))); 65 66 f->nqueues = 0; 67 atomic_set(&f->mem, 0); 68 | 1/* 2 * inet fragments management 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 52 unchanged lines hidden (view full) --- 61 rwlock_init(&f->lock); 62 63 f->rnd = (u32) ((num_physpages ^ (num_physpages>>7)) ^ 64 (jiffies ^ (jiffies >> 6))); 65 66 f->nqueues = 0; 67 atomic_set(&f->mem, 0); 68 |
69 init_timer(&f->secret_timer); 70 f->secret_timer.function = inet_frag_secret_rebuild; 71 f->secret_timer.data = (unsigned long)f; | 69 setup_timer(&f->secret_timer, inet_frag_secret_rebuild, 70 (unsigned long)f); |
72 f->secret_timer.expires = jiffies + f->ctl->secret_interval; 73 add_timer(&f->secret_timer); 74} 75EXPORT_SYMBOL(inet_frags_init); 76 77void inet_frags_fini(struct inet_frags *f) 78{ 79 del_timer(&f->secret_timer); --- 182 unchanged lines hidden --- | 71 f->secret_timer.expires = jiffies + f->ctl->secret_interval; 72 add_timer(&f->secret_timer); 73} 74EXPORT_SYMBOL(inet_frags_init); 75 76void inet_frags_fini(struct inet_frags *f) 77{ 78 del_timer(&f->secret_timer); --- 182 unchanged lines hidden --- |