Deleted Added
full compact
altq_red.c (130368) altq_red.c (164033)
1/* $FreeBSD: head/sys/contrib/altq/altq/altq_red.c 130368 2004-06-12 00:57:20Z mlaier $ */
1/* $FreeBSD: head/sys/contrib/altq/altq/altq_red.c 164033 2006-11-06 13:42:10Z rwatson $ */
2/* $KAME: altq_red.c,v 1.18 2003/09/05 22:40:36 itojun Exp $ */
3
4/*
5 * Copyright (C) 1997-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

--- 766 unchanged lines hidden (view full) ---

776 struct ifnet *ifp;
777 int error = 0;
778
779 /* check super-user privilege */
780 switch (cmd) {
781 case RED_GETSTATS:
782 break;
783 default:
2/* $KAME: altq_red.c,v 1.18 2003/09/05 22:40:36 itojun Exp $ */
3
4/*
5 * Copyright (C) 1997-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

--- 766 unchanged lines hidden (view full) ---

776 struct ifnet *ifp;
777 int error = 0;
778
779 /* check super-user privilege */
780 switch (cmd) {
781 case RED_GETSTATS:
782 break;
783 default:
784#if (__FreeBSD_version > 400000)
784#if (__FreeBSD_version > 700000)
785 if ((error = priv_check(p, PRIV_ALTQ_MANAGE)) != 0)
786#elsif (__FreeBSD_version > 400000)
785 if ((error = suser(p)) != 0)
786#else
787 if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
788#endif
789 return (error);
790 break;
791 }
792

--- 711 unchanged lines hidden ---
787 if ((error = suser(p)) != 0)
788#else
789 if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
790#endif
791 return (error);
792 break;
793 }
794

--- 711 unchanged lines hidden ---