neighbour.c (6e9041c6ddd6cbdc61d87bcaca8ca7bb17c28377) | neighbour.c (fe2c6338fd2c6f383c4d4164262f35c8f3708e1f) |
---|---|
1/* 2 * Generic address resolution entity 3 * 4 * Authors: 5 * Pedro Roque <roque@di.fc.ul.pt> 6 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 7 * 8 * This program is free software; you can redistribute it and/or --- 2751 unchanged lines hidden (view full) --- 2760} 2761EXPORT_SYMBOL(neigh_app_ns); 2762#endif /* CONFIG_ARPD */ 2763 2764#ifdef CONFIG_SYSCTL 2765static int zero; 2766static int unres_qlen_max = INT_MAX / SKB_TRUESIZE(ETH_FRAME_LEN); 2767 | 1/* 2 * Generic address resolution entity 3 * 4 * Authors: 5 * Pedro Roque <roque@di.fc.ul.pt> 6 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 7 * 8 * This program is free software; you can redistribute it and/or --- 2751 unchanged lines hidden (view full) --- 2760} 2761EXPORT_SYMBOL(neigh_app_ns); 2762#endif /* CONFIG_ARPD */ 2763 2764#ifdef CONFIG_SYSCTL 2765static int zero; 2766static int unres_qlen_max = INT_MAX / SKB_TRUESIZE(ETH_FRAME_LEN); 2767 |
2768static int proc_unres_qlen(ctl_table *ctl, int write, void __user *buffer, 2769 size_t *lenp, loff_t *ppos) | 2768static int proc_unres_qlen(struct ctl_table *ctl, int write, 2769 void __user *buffer, size_t *lenp, loff_t *ppos) |
2770{ 2771 int size, ret; | 2770{ 2771 int size, ret; |
2772 ctl_table tmp = *ctl; | 2772 struct ctl_table tmp = *ctl; |
2773 2774 tmp.extra1 = &zero; 2775 tmp.extra2 = &unres_qlen_max; 2776 tmp.data = &size; 2777 2778 size = *(int *)ctl->data / SKB_TRUESIZE(ETH_FRAME_LEN); 2779 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); 2780 --- 257 unchanged lines hidden --- | 2773 2774 tmp.extra1 = &zero; 2775 tmp.extra2 = &unres_qlen_max; 2776 tmp.data = &size; 2777 2778 size = *(int *)ctl->data / SKB_TRUESIZE(ETH_FRAME_LEN); 2779 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); 2780 --- 257 unchanged lines hidden --- |