ng_car.h (e43d33d286a1aa41b6fc6a209f28a18e8cd7437a) | ng_car.h (d0d2e523bafb74180f8bebb90788790f0d2f0290) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2005 Nuno Antunes <nuno.antunes@gmail.com> 5 * Copyright (c) 2007 Alexander Motin <mav@freebsd.org> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 89 unchanged lines hidden (view full) --- 98#define NG_CAR_CBS_MIN 8192 99#define NG_CAR_EBS_MIN 8192 100#define NG_CAR_CIR_DFLT 10240 101 102/* possible actions (...Action) */ 103enum { 104 NG_CAR_ACTION_FORWARD = 1, 105 NG_CAR_ACTION_DROP, | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2005 Nuno Antunes <nuno.antunes@gmail.com> 5 * Copyright (c) 2007 Alexander Motin <mav@freebsd.org> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 89 unchanged lines hidden (view full) --- 98#define NG_CAR_CBS_MIN 8192 99#define NG_CAR_EBS_MIN 8192 100#define NG_CAR_CIR_DFLT 10240 101 102/* possible actions (...Action) */ 103enum { 104 NG_CAR_ACTION_FORWARD = 1, 105 NG_CAR_ACTION_DROP, |
106 NG_CAR_ACTION_MARK, 107 NG_CAR_ACTION_SET_TOS | 106 NG_CAR_ACTION_MARK |
108}; 109 110/* operation modes (mode) */ 111enum { 112 NG_CAR_SINGLE_RATE = 0, 113 NG_CAR_DOUBLE_RATE, 114 NG_CAR_RED, 115 NG_CAR_SHAPE 116}; 117 | 107}; 108 109/* operation modes (mode) */ 110enum { 111 NG_CAR_SINGLE_RATE = 0, 112 NG_CAR_DOUBLE_RATE, 113 NG_CAR_RED, 114 NG_CAR_SHAPE 115}; 116 |
118/* mode options (opt) */ | 117/* mode options (bits in opt) */ |
119#define NG_CAR_COLOR_AWARE 1 120#define NG_CAR_COUNT_PACKETS 2 121 122/* Bulk config */ 123struct ng_car_bulkconf { 124 struct ng_car_hookconf upstream; 125 struct ng_car_hookconf downstream; 126}; --- 16 unchanged lines hidden --- | 118#define NG_CAR_COLOR_AWARE 1 119#define NG_CAR_COUNT_PACKETS 2 120 121/* Bulk config */ 122struct ng_car_bulkconf { 123 struct ng_car_hookconf upstream; 124 struct ng_car_hookconf downstream; 125}; --- 16 unchanged lines hidden --- |