summaryrefslogtreecommitdiff
path: root/sys/net
AgeCommit message (Collapse)Author
2002-07-15add u_int8_t ifnot to struct pf_rule to support matching packets on anyHenning Brauer
interface except the given one. adjust the pf_test_* functions and pf_skip_step accordingly. ok dhartmei@
2002-07-15remove duplicated interface check in test_icmpHenning Brauer
ok dhartmei@
2002-07-12Remove duplicate function declarations (they are in pfvar.h).Artur Grabowski
2002-07-11KNF.Artur Grabowski
From Lurene Angela Grenier <lurene@daemonkitty.net>
2002-07-10let IPv6 fragment go through based on normal rulesets.Jun-ichiro itojun Hagino
TODO: sort-of normalization against fragments for inspection ok dhartmei@
2002-07-05fix a small bug I found while installing a -current pf firewall at aHenning Brauer
client some days ago: if you had a rulefile with "set loginterface <interface>" and loaded through pfctl -e -f /etc/pf.conf, pfctl -si didn't display the interface stats, because on DIOCSTART pf_status.ifname was cleared and enableing is done after loading the ruleset. similar for DIOCCLRSTATUS, remember pf_status.ifname there as well. added feature: On DIOCSETSTATUSIF unset the statusinterface if pi->ifname is empty. ok dhartmei@
2002-07-03Change all variables definitions (int foo) in sys/sys/*.h to variableMiod Vallat
declarations (extern int foo), and compensate in the appropriate locations.
2002-07-03fix a null deref in sysctl_iflist()Michael Shalayeff
2002-07-02make it compile w/ ipsec and no pf ; smth that was left for homeworkMichael Shalayeff
2002-07-02inital -> initialNathan Binkert
2002-07-01Fix really long standing bug with fetching address cache entries:Jason Wright
handle ifbac_len == 0 as per the man page; Benny Holmgren <bigfoot@astrakan.hig.se>
2002-07-01license update of CMU parts. due to communication with wcw+@andrew.cmu.edu,Theo de Raadt
pushed for by tygs@netcologne.de. Apparently we also now known how to talk to the lawyers there, if we were so mad. Note that a few other copyright issues in pppd still remain, so this does not close this story.
2002-06-30Fix fallout from recent changes.Artur Grabowski
2002-06-30allocate sockaddr_dl for ifnet in if_alloc_sadl(), as we don't always knowJun-ichiro itojun Hagino
the size of sockaddr_dl on if_attach() - for instance, see ether_ifattach(). from netbsd. fgs ok
2002-06-28KNFTheo de Raadt
2002-06-25add ARP hardware type for IEEE1394Jun-ichiro itojun Hagino
2002-06-24KNFJun-ichiro itojun Hagino
2002-06-23g/c last remains of old ipv6 prefix managementJun-ichiro itojun Hagino
2002-06-19this was derived from UCB if_sl. therefore, we can update the UCB if_slTheo de Raadt
copyright contained in this. a license problem remains, of course...
2002-06-16Missing braces around else case, fixes a kernel crash introduced in r1.5 ifAaron Campbell
a non-existent interface is passed to "pfctl -l". Reported by grange@disorder.ru.
2002-06-15unnecessary () on castJason Wright
2002-06-15Transparent IPsec processing on the bridge; for now works only withAngelos D. Keromytis
static keys.
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-06-12import of netbsd's vlan multicast codeChris Cappuccio
this works better than what we have now, although i have not been able to extensively test it. several folks thought it should be added
2002-06-11split the grammar of scrub(fragcache) into scrub ... 'fragment reassemble',Mike Frantzen
'fragment crop' or a new 'fragment drop-ovl' which will drop overlapping fragments and all corresponding ones ok kjell@ with feedback from kjell@ and deraadt@. the rest are slacking
2002-06-11sprinkle splasserts where function comments tell us to.Artur Grabowski
2002-06-11splassert(IPL_NET) where comment says that we should.Artur Grabowski
2002-06-11splassert(IPL_SOFTNET) where comment indicate that.Artur Grabowski
2002-06-11KNF (tabs, return (x))Daniel Hartmeier
2002-06-11enumerate UDP and OTHER state levels (similar to tcp_fsm.h)Mike Frantzen
ok dhartmei@, henning@
2002-06-11SCRUB(fragcache) to do gap tracking and overlap pruning of IPv4 fragmentsMike Frantzen
without the memory overhead of the conventional defrag in SCRUB ok dhartmei@, idea by deraadt@
2002-06-11Make NAT proxy port range configurable per rule, for instance privilegedDaniel Hartmeier
source ports can mapped to privileged proxy ports, or source port 500 to proxy port 500. ok frantzen@
2002-06-11Don't panic when pf_insert_state() detects an attempt to insert aDaniel Hartmeier
duplicate key. Instead, log according to log level and return gracefully. ok frantzen@
2002-06-11KNF return x -> return (x), ok frantzen@Daniel Hartmeier
2002-06-11rework pfctl statistics displayHenning Brauer
move FCNT_NAMES from pfvar.h to pfctl_parser.h, only used by pfctl some input by nick@ ok frantzen@, dhartmei@
2002-06-10- stop abusing IFF_UP.Jun-ichiro itojun Hagino
- do not use L3 address pair for L2.5 address pair. configure L2.5 address pair by using "ifconfig tunnel". - IFF_LINK2 is not needed, as it is just a reverse of IFF_LINK0. - do not modify IFF_LINK1 when you modify protocol type. chris ok
2002-06-10Split common code which converts a multicast address to an ethernetChris Cappuccio
address from ether_addmulti() and ether_delmulti() into ether_multiaddr(), a'la netbsd. Also clean up some magic numbers. itojun likes it
2002-06-10Allow ports to be specified in nat rules, useful later on for individualDaniel Hartmeier
proxy port ranges.
2002-06-10#include <sys/timeout.h>, from Chris KuetheDaniel Hartmeier
2002-06-10easy error checks first.Jun-ichiro itojun Hagino
2002-06-10Don't #include <sys/malloc.h>Daniel Hartmeier
2002-06-10prevent mbuf leak on icmp_do_error() failure.Jun-ichiro itojun Hagino
NOTE: under 4.4BSD mbuf coding discipline, once you pass mbuf to a function like f(m), you no longer have ownership of the mbuf. the mbuf will always be freed by the called function f(). by keeping the programming rule you have less chance of memory leak.
2002-06-09Export compression info only if the SA (xform) is initialized.Angelos D. Keromytis
2002-06-09don't need device.hJason Wright
2002-06-09Make pf_nat.saddr/daddr a pf_rule_addr instead of pf_addr_wrap, so itDaniel Hartmeier
includes ports and operator.
2002-06-09if_addrlen need not be 4, set to 0. From: Martin Husemann <martin@duskware.de>Jun-ichiro itojun Hagino
2002-06-09make sure to bzero sockaddr_inJun-ichiro itojun Hagino
2002-06-09support SIO*PHYADDR, so that we can configure outer address with ifconfig(8)Jun-ichiro itojun Hagino
2002-06-09reapply patch from jasoni@ for ICMP6_PACKET_TOO_BIGPhilipp Buehler
both have been lost, due to diff thinking about reversing those lines after merge tested
2002-06-09reapply patch from jasoni@ for pf_route[6]Philipp Buehler