kern_poll.c (603724d3abed34351087e20b8cb363d8e02072c1) | kern_poll.c (97021c246444967a8f441a90076fb4f7ef22fb3a) |
---|---|
1/*- 2 * Copyright (c) 2001-2002 Luigi Rizzo 3 * 4 * Supported by: the Xorp Project (www.xorp.org) 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 507 unchanged lines hidden (view full) --- 516} 517 518/* 519 * Legacy interface for turning polling on all interfaces at one time. 520 */ 521static int 522poll_switch(SYSCTL_HANDLER_ARGS) 523{ | 1/*- 2 * Copyright (c) 2001-2002 Luigi Rizzo 3 * 4 * Supported by: the Xorp Project (www.xorp.org) 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 507 unchanged lines hidden (view full) --- 516} 517 518/* 519 * Legacy interface for turning polling on all interfaces at one time. 520 */ 521static int 522poll_switch(SYSCTL_HANDLER_ARGS) 523{ |
524 INIT_VNET_NET(curvnet); |
|
524 struct ifnet *ifp; 525 int error; 526 int val = polling; 527 528 error = sysctl_handle_int(oidp, &val, 0, req); 529 if (error || !req->newptr ) 530 return (error); 531 --- 65 unchanged lines hidden --- | 525 struct ifnet *ifp; 526 int error; 527 int val = polling; 528 529 error = sysctl_handle_int(oidp, &val, 0, req); 530 if (error || !req->newptr ) 531 return (error); 532 --- 65 unchanged lines hidden --- |