| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
"profile" files (bandwidth is mandatory when using a
profile, so it makes sense to have everything in one place).
Update the manpage accordingly.
Submitted by: Marta Carbone
|
|
|
|
|
|
| |
Detected building with gcc 4.3.3
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pipes, queues, tags, rule numbers and so on.
These are all different namespaces, and the only thing they have in
common is the fact they use a 16-bit slot to represent the argument.
There is some confusion in the code, mostly for historical reasons,
on how the values 0 and 65535 should be used. At the moment, 0 is
forbidden almost everywhere, while 65535 is used to represent a
'tablearg' argument, i.e. the result of the most recent table() lookup.
For now, try to use explicit constants for the min and max allowed
values, and do not overload the default rule number for that.
Also, make the MTAG_IPFW declaration only visible to the kernel.
NOTE: I think the issue needs to be revisited before 8.0 is out:
the 2^16 namespace limit for rule numbers and pipe/queue is
annoying, and we can easily bump the limit to 2^32 which gives
a lot more flexibility in partitioning the namespace.
MFC after: 5 days
|
|
|
|
| |
MFC after: 3 days
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
types of MAC overheads such as preambles, link level retransmissions
and more.
Note- this commit changes the userland/kernel ABI for pipes
(but not for ordinary firewall rules) so you need to rebuild
kernel and /sbin/ipfw to use dummynet features.
Please check the manpage for details on the new feature.
The MFC would be trivial but it breaks the ABI, so it will
be postponed until after 7.2 is released.
Interested users are welcome to apply the patch manually
to their RELENG_7 tree.
Work supported by the European Commission, Projects Onelab and
Onelab2 (contract 224263).
|
| |
|
|
|
|
|
|
|
|
|
| |
above to avoid referencing undefined terms (humans are not compilers
but still care about these things).
Change some .Sh to .Ss to better reflect the structure of the text.
No new content.
|
|
|
|
|
|
| |
and bump document date for previous change.
OKed by: piso
|
|
|
|
|
| |
-document fragment handling sysctls
-mention some caveats about fragments handling (and to deal with it)
|
| |
|
| |
|
|
|
|
|
| |
(unfortunately, it is far away; we need to pack this code in
a better way).
|
| |
|
| |
|
|\
| |
| |
| | |
Submitted by: CAIA (http://caia.swin.edu.au)
|
| | |
|
| |
| |
| |
| | |
from a struct sockaddr_in, so there is no need to initialize sin_len
|
| | |
|
| |
| |
| |
| |
| | |
Minor cleanup of the includes used by the various source files,
including annotations of why certain headers are used.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Usual moving of code with no changes from ipfw2.c to the
newly created files, and addition of prototypes to ipfw2.h
I have added forward declarations for ipfw_insn_* in ipfw2.h
to avoid a global dependency on ip_fw.h
|
| |
| |
| |
| |
| | |
To this purpose, add prototypes for global functions in ipfw2.h
and move there also the list of tokens used in various places in the code.
|
| |
| |
| |
| | |
we sort out all proper printf formats.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In this episode:
- introduce a common header with a minimal set of common definitions;
- bring the main() function and options parser in main.c
- rename the main functions with an ipfw_ prefix
No code changes except for the introduction of a global variable,
resvd_set_number, which stores the RESVD_SET value from ip_fw.h
and is used to remove the dependency of main.c from ip_fw.h
(and the subtree of dependencies) for just a single constant.
|
| |
| |
| |
| |
| | |
slightly reformat the help() text;
slightly correct the text for the 'extraneous filename' error message;
|
| |
| |
| |
| |
| | |
This will allow us to easily restore the original values when processing
commands from a file (where each individual line can have its own options).
|
| | |
|
| |
| |
| |
| |
| | |
change PRINT_UINT from a macro to a function (renaming is
postponed to reduce clutter)
|
| |
| |
| |
| |
| |
| | |
without having to check in each place.
Remove an wrong strdup from previous commit.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
program name, and ignore that entry. ipfw2.c code instead skips
this entry and starts with options at offset 0, relying on a more
tolerant implementation of the library.
This change fixes the issue by always passing a program name
in the first entry to getopt. The motivation for this change
is to remove a potential compatibility issue should we use
a different getopt() implementation in the future.
No functional changes.
Submitted by: Marta Carbone (parts)
MFC after: 4 weeks
|
| |
| |
| |
| |
| |
| | |
document why timeconv.h is needed
MFC after: 3 days
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
There are still several signed/unsigned warnings left, which
require a bit more study for a proper fix.
This file has grown beyond reasonable limits.
We really need to split it into separate components (ipv4, ipv6,
dummynet, nat, table, userland-kernel communication ...) so we can
make mainteinance easier.
MFC after: 1 weeks
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
| |
Submitted by: Andrey V. Elsukov<bu7cher@yandex.ru>
MFC after: 3 days
|
|
|
|
| |
in a previous commit.
|
|
|
|
|
|
|
|
| |
show_nat() from endless loop and makes work ipfw -n nat <...>.
PR: bin/128064
Submitted by: sem
MFC after: 1 month
|
|
|
|
| |
Noted by: ganbold@
|
|
|
|
|
|
|
| |
* add tables_max sysctl.
* add default_rule sysctl.
PR: 127058 (partially)
|
|
|
|
|
|
|
| |
'flush' actions on tables. Part of PR: 127058.
PR: 127058 (based on)
MFC after: 1 month
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
MFC after: 1 month
|
|
|
|
|
|
| |
available.
MFC after: 5 days.
|