summaryrefslogtreecommitdiff
path: root/sys/net
AgeCommit message (Collapse)Author
2004-02-24sysctl knob for bpf tunables. some tips from canacar@Ted Unangst
ok canacar@ deraadt@ mcbride@
2004-02-24Remove redundant logging from pf_test_other().Ryan Thomas McBride
ok henning@ cedric@
2004-02-24KNFRyan Thomas McBride
2004-02-23prevent backward jumps; pls@egsys.hu; ok canacar, deraadtMarkus Friedl
2004-02-20Make pfsync deal with clearing states bound to a group or interface (egRyan Thomas McBride
pfctl -i fxp0 -Fs). Also don't send out individual state deletions if we're sending a clear message, move pfsync_clear_states() inside splnet, and fix if_pfsync.h includes in pf.c and pf_ioctl.c. ok cedric@ dhartmei@
2004-02-19Makes pfctl -Fs and pfctl -w works with the optional -i specifier.Cedric Berger
Kernel/Userland Sync needed. ok dhartmei@ jmc@ markus@ mcbride@
2004-02-19the 2nd round of the qid assignment change.Kenjiro Cho
make the semantics in line with the tag assignment, which simplifies the id management in pf. ok, henning@
2004-02-17Tighten pfi_skip_if() up, and a bit of KNF. ok mcbride@Cedric Berger
2004-02-1518 -> ETHER_ADDR_LEN*3 in ether_sprintf() for clarityAnil Madhavapeddy
itojun@ ok
2004-02-13Do an explicit pf_update_anchor_rules() after an anchor gets removed.Marco Pfatschbacher
In some situations not all anchor rules got updated properly, so they still refered to already freed anchors. OK dhartmei@ mcbride@ cedric@ henning@
2004-02-12from camield:Henning Brauer
se hash instead of linked list to speed up tag to vlan interface mapping ok markus@ and myself
2004-02-10KNFDaniel Hartmeier
2004-02-10plug mbuf leak (ip_fragment() always free mbuf on error). tested by cedric,Jun-ichiro itojun Hagino
dhartmei ok
2004-02-10KNFHenning Brauer
2004-02-10Make pfsync work correctly with IP options on 64-bit alignmentRyan Thomas McBride
sensitive CPUs. Pointed out by deraadt@.
2004-02-09Repair "set loginterface". Don't flush stats on pfctl -e. pf_status.sinceCedric Berger
is the time of last "pf -e" or "pf -d". ok dhartmei@ henning@
2004-02-08if_detach_rtdelete(): abort and restart rn_walktree() if a cloning routeMarkus Friedl
gets deleted; fixes pr 3649; ok henning, deraadt, dhartmei
2004-02-08Fix kernel panic which occurs under very high load:Ryan Thomas McBride
- Make sure we calculate the correct maximum size for PFSYNC_ACT_UREQ. - Make pfsync_sendout() return immediately if there is nothing to send.
2004-02-07Use the offset provided to us by m_pulldown(), rather than using size ofRyan Thomas McBride
ip and pfsync headers. This makes us behave correctly if the packet is spread across multiple mbufs (which does not appear to happen in practice).
2004-02-06as seen in netbsd. crank bpf sizes to adapt to faster networks.Ted Unangst
max size goes to 2MB, default goes to 32k. ok canacar@ mcbride@
2004-02-04Fix a number of bugs with setting pool limits which I introduced withRyan Thomas McBride
source-tracking. Found by Pyun YongHyeon. Also add support to pfctl to set the src-nodes pool limit. "Luckily" some of the bugs cancel each other out; update kernel before pfctl. ok dhartmei@
2004-02-02missing #if NPF > 0. ok henning@Cedric Berger
2004-02-02Do not evaluate pfi_index2kif[ifp->if_index] if PF is disabled.Cedric Berger
Safer and faster since we know that ifp->if_index can potentially be garbage. ok dhartmei@
2004-01-27drop packet if kif == NULL; ok henning deraadtMarkus Friedl
2004-01-27don't convert tcpmd5 to ip-over-ip in SADB_X_GETSPROTO; from hshoexerMarkus Friedl
2004-01-26- use SIOC[GS]WAVELAN.Federico G. Schwindt
- fill ac_enaddr correctly. - put ic_myaddr back.
2004-01-22- Include the value of pf_state.timeout in pfsync messagesRyan Thomas McBride
- Fix the expiry time calculations, for real - Unbreak the collapsing of multiple updates into one And a little KNF for good measure.
2004-01-20the pfsync interface does not have a baudrate, so don't claim 100 MBit/sHenning Brauer
ok mcbride@
2004-01-20Ignore pfsync packets if pf is not running.Ryan Thomas McBride
2004-01-19Update comment; handling PFSYNC_ACT_UPD in pfsync_input() is no longerRyan Thomas McBride
optional.
2004-01-19Clean up creation and expiry timestamp calculations.Ryan Thomas McBride
2004-01-18Port is already stored in network byte order, no need to convert.Ryan Thomas McBride
2004-01-16Fix IPv6 stateful tcp scrubbing by not dereferencing a null pointer.Ryan Thomas McBride
ok dhartmei@ frantzen@
2004-01-15add a RTM_IFANNOUNCE message; from netbsd; ok itojun, henningMarkus Friedl
2004-01-12use klist_invalidate to permit destroy while kqueued. ok mpf@Ted Unangst
2004-01-09fix leak ether_deatch(): if if_free_sadl() is called before if_detach()Markus Friedl
then ifnet_addrs[ifp->if_index] leaks; if it's called after if_detach() then if_free_sadl() does nothing; ok itojun
2004-01-07PFI_MTYPE leak; ok cedric@Markus Friedl
2004-01-07ieee80211 framework from NetBSD; ok'd by several people some time ago.Federico G. Schwindt
more fixes comming.
2004-01-06Drop UDP packets with destination port 0, or zero or oversized payloadDaniel Hartmeier
length (same as udp_input() does, if pf is not enabled). Found by Pyun YongHyeon. ok cedric@, ho@, henning@ and markus@.
2004-01-05stop ifc_destroy() if there are still knotes registered.Marco Pfatschbacher
ok mcbride@ markus@
2004-01-050 -> (void *)NULL for last argument of icmp_error(), which is of typeDaniel Hartmeier
struct ifnet *, from Pyun YongHyeon
2004-01-05Repair my merging error, simplify DIOCCLRSTATUS code. ok dhartmei@Cedric Berger
2004-01-05Repair merge errors. Thanks Pyun YongHyeon, Sorry Henning :)Cedric Berger
2004-01-04oops... string.h ended up being included twice; pointed out by espiePeter Valchev
2004-01-04better macro name (IF_LOCKED -> BOUND_IFACE). from markus.Cedric Berger
2004-01-04include proper protos for userland; deraadtPeter Valchev
2004-01-03make sure userland sees memcmp and friends (gcc3)Marc Espie
okay frantzen@
2004-01-03put an mi wrapper around stdarg.h/varargs.h. gcc3 moved stdarg/varargs macrosMarc Espie
to built-ins, so eventually we will have one version of these files. Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes. okay millert@, drahn@, miod@.
2003-12-31spacing. note this, cedricTheo de Raadt
2003-12-31delay interfaces attach until "self" has been created; ok cedric@Markus Friedl