krping.c (f4ea84cea23fa8e6094f629cc3e4b1c39bd7bf34) | krping.c (cfaab41c950f791f7a528814c8bef91116fd7af1) |
---|---|
1/* 2 * Copyright (c) 2005 Ammasso, Inc. All rights reserved. 3 * Copyright (c) 2006-2009 Open Grid Computing, Inc. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 1974 unchanged lines hidden (view full) --- 1983 1984 if (name == NULL) 1985 return (0); 1986 CURVNET_SET_QUIET(TD_TO_VNET(curthread)); 1987 ifp = ifunit_ref(name); 1988 CURVNET_RESTORE(); 1989 if (ifp == NULL) 1990 return (0); | 1/* 2 * Copyright (c) 2005 Ammasso, Inc. All rights reserved. 3 * Copyright (c) 2006-2009 Open Grid Computing, Inc. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 1974 unchanged lines hidden (view full) --- 1983 1984 if (name == NULL) 1985 return (0); 1986 CURVNET_SET_QUIET(TD_TO_VNET(curthread)); 1987 ifp = ifunit_ref(name); 1988 CURVNET_RESTORE(); 1989 if (ifp == NULL) 1990 return (0); |
1991 retval = ifp->if_index; | 1991 retval = if_getindex(ifp); |
1992 if_rele(ifp); 1993 return (retval); 1994} 1995 1996int krping_doit(char *cmd) 1997{ 1998 struct krping_cb *cb; 1999 int op; --- 212 unchanged lines hidden --- | 1992 if_rele(ifp); 1993 return (retval); 1994} 1995 1996int krping_doit(char *cmd) 1997{ 1998 struct krping_cb *cb; 1999 int op; --- 212 unchanged lines hidden --- |