pf_altq.h (ab875b713d0afab5f0650f06d48a38777a7ae43e) pf_altq.h (0a70aaf8f5d93454d0940a09b94deecd7aa5fa0d)
1/*
2 * Copyright (c) 2001 Daniel Hartmeier
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

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

40 u_int maxpktsize;
41 u_int ns_per_byte;
42 u_int maxidle;
43 int minidle;
44 u_int offtime;
45 int flags;
46};
47
1/*
2 * Copyright (c) 2001 Daniel Hartmeier
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

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

40 u_int maxpktsize;
41 u_int ns_per_byte;
42 u_int maxidle;
43 int minidle;
44 u_int offtime;
45 int flags;
46};
47
48struct codel_opts {
49 u_int target;
50 u_int interval;
51 int ecn;
52};
53
48struct priq_opts {
49 int flags;
50};
51
52struct hfsc_opts {
53 /* real-time service curve */
54 u_int rtsc_m1; /* slope of the 1st segment in bps */
55 u_int rtsc_d; /* the x-projection of m1 in msec */

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

98 uint8_t priority; /* priority */
99 uint8_t local_flags; /* dynamic interface */
100#define PFALTQ_FLAG_IF_REMOVED 0x01
101
102 uint16_t qlimit; /* queue size limit */
103 uint16_t flags; /* misc flags */
104 union {
105 struct cbq_opts cbq_opts;
54struct priq_opts {
55 int flags;
56};
57
58struct hfsc_opts {
59 /* real-time service curve */
60 u_int rtsc_m1; /* slope of the 1st segment in bps */
61 u_int rtsc_d; /* the x-projection of m1 in msec */

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

104 uint8_t priority; /* priority */
105 uint8_t local_flags; /* dynamic interface */
106#define PFALTQ_FLAG_IF_REMOVED 0x01
107
108 uint16_t qlimit; /* queue size limit */
109 uint16_t flags; /* misc flags */
110 union {
111 struct cbq_opts cbq_opts;
112 struct codel_opts codel_opts;
106 struct priq_opts priq_opts;
107 struct hfsc_opts hfsc_opts;
108 struct fairq_opts fairq_opts;
109 } pq_u;
110
111 uint32_t qid; /* return value */
112};
113
114#endif /* _NET_PF_ALTQ_H_ */
113 struct priq_opts priq_opts;
114 struct hfsc_opts hfsc_opts;
115 struct fairq_opts fairq_opts;
116 } pq_u;
117
118 uint32_t qid; /* return value */
119};
120
121#endif /* _NET_PF_ALTQ_H_ */