altq_rio.c (147256) | altq_rio.c (164033) |
---|---|
1/* $FreeBSD: head/sys/contrib/altq/altq/altq_rio.c 147256 2005-06-10 16:49:24Z brooks $ */ | 1/* $FreeBSD: head/sys/contrib/altq/altq/altq_rio.c 164033 2006-11-06 13:42:10Z rwatson $ */ |
2/* $KAME: altq_rio.c,v 1.17 2003/07/10 12:07:49 kjc Exp $ */ 3 4/* 5 * Copyright (C) 1998-2003 6 * Sony Computer Science Laboratories Inc. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 516 unchanged lines hidden (view full) --- 526 struct ifnet *ifp; 527 int error = 0; 528 529 /* check super-user privilege */ 530 switch (cmd) { 531 case RIO_GETSTATS: 532 break; 533 default: | 2/* $KAME: altq_rio.c,v 1.17 2003/07/10 12:07:49 kjc Exp $ */ 3 4/* 5 * Copyright (C) 1998-2003 6 * Sony Computer Science Laboratories Inc. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 516 unchanged lines hidden (view full) --- 526 struct ifnet *ifp; 527 int error = 0; 528 529 /* check super-user privilege */ 530 switch (cmd) { 531 case RIO_GETSTATS: 532 break; 533 default: |
534#if (__FreeBSD_version > 400000) | 534#if (__FreeBSD_version > 700000) 535 if ((error = priv_check(p, PRIV_ALTQ_MANAGE)) != 0) 536 return (error); 537#elsif (__FreeBSD_version > 400000) |
535 if ((error = suser(p)) != 0) 536 return (error); 537#else 538 if ((error = suser(p->p_ucred, &p->p_acflag)) != 0) 539 return (error); 540#endif 541 break; 542 } --- 308 unchanged lines hidden --- | 538 if ((error = suser(p)) != 0) 539 return (error); 540#else 541 if ((error = suser(p->p_ucred, &p->p_acflag)) != 0) 542 return (error); 543#endif 544 break; 545 } --- 308 unchanged lines hidden --- |