summaryrefslogtreecommitdiff
path: root/sys/net
AgeCommit message (Collapse)Author
2002-09-15Make compile with -Werror (unused vars warnings)Niklas Hallqvist
2002-09-13Paul Mackerras and the Australian National University have worked thingsTheo de Raadt
out, and as a result, Paul now owns copyright on all these files, with the proper terms.
2002-09-11KNF - return is not a function.Jun-ichiro itojun Hagino
2002-08-28Fix a problem where passing NULL as a pointer with varargs does not promotePer Fogelstrom
NULL to full 64 bits on a 64 bit address system. Soultion is to add a (void *) cast before NULL. This makes a 64 bit MIPS kernel work and will probably help future 64 bit ports as well. OK from art@
2002-08-12Use state tree instead of separate (flat) list to find NAT proxy ports,Daniel Hartmeier
allows to use the same proxy port with different external peers. From Ryan McBride
2002-08-08th_flags doesn't have to be equal to TH_SYN to generate modulator, it'sDaniel Hartmeier
sufficient if TH_SYN is set and TH_ACK is unset, ignore TH_ECN etc. ok frantzen@
2002-08-07consistently check byte order of ether_type; pointed out by dhartmeiJason Wright
2002-07-31fix potential NULL pointer deref. From: tedu <grendel@zeitbombe.org>Jun-ichiro itojun Hagino
2002-07-30no need for check if m0 is NULL, as we have touched it already.Jun-ichiro itojun Hagino
From: tedu <grendel@zeitbombe.org>
2002-07-24Use host order when adding packet size to interface statistics counter.Daniel Hartmeier
Only affects pfctl -si output for IPv6. And some whitespace KNF.
2002-07-18make it compile by removing unused local varsMichael Shalayeff
2002-07-17Don't dereference freed memory.Artur Grabowski
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.