summaryrefslogtreecommitdiff
path: root/sys/net
AgeCommit message (Collapse)Author
2005-06-08if a cloned interface's destroy function fails, re-join the interface classHenning Brauer
group, spotted by and ok markus
2005-06-08netns bits dieHenning Brauer
2005-06-08kill NS and DECNET bitsHenning Brauer
2005-06-08bye bye netns (and a few leftover DECNET bits while here)Henning Brauer
2005-06-08huch, more netns shitzHenning Brauer
2005-06-08kill some leftover bits from netns and iso routingHenning Brauer
2005-06-08no more netns handling for the various tunnel devices and loopbackHenning Brauer
2005-06-08in rtlabel_name2id, handle the case of an empty name: return 0Henning Brauer
label id 0 means "no label". in pf_ioctl, where this is used to filter based on a label, this is an error condition. for the other 2 cases, messages on the routing socket, this allows for an sockaddr_rtlabel to be always present for messages on the routing socket, and when it is all zero it is exactly like if there was no sockaddr_rtlabel at all. ryan ok
2005-06-08more inet6 stuff that got exposedTheo de Raadt
2005-06-08handle ramdisks, and kernels without inet6; henning okTheo de Raadt
2005-06-07introduce a default "external" interface group, containing the interface(s)Henning Brauer
the the default route(s) point to. handles IPv4 and IPv6 as well as multipath routes. follows default route changes, of course. eases writing pf rulesets especially on laptops etc. that use different interfaces depending on the environment (wired, wireless, ...) ok theo ryan
2005-06-07oopsTheo de Raadt
2005-06-07avoid retarded C unsigned char -> signed integer promotion rules.Theo de Raadt
mac->ac_enaddr[2] << 24 resulted in sign extension smashing other stuff djast@cs.toronto.edu, ok mickey
2005-06-07de-register, ok henningCamiel Dobbelaar
2005-06-07Run vlan_input before bridge_input, and change vlan_input to notCamiel Dobbelaar
consume vlan frames that no vlan interface wants, so they can still be bridged. This way, the bridge can bridge encapsulated frames _and_ bridge between vlan interfaces. ok henning markus
2005-06-07fix a possible panic in error path,Can Erkin Acar
do not try to check debug status of a non existing interface in server mode.
2005-06-07do not handle CCITT any longerHenning Brauer
2005-06-06Backout 1.64, switch back to two-pool allocation scheme (with oldnointrDaniel Hartmeier
allocator on one pool). Should fix PR 4231 and 4240, but reintroduces 4186. ok deraadt@
2005-06-06use a define instead of hardcoding "all" in 3 placesHenning Brauer
2005-06-06make cloned interfaces join an interface class group (carp for carpX, tunHenning Brauer
for tunX etc) in if_clone_create and leave it in if_clone_destroy, ryan ok
2005-06-05const'ify the char *groupname param to if_addgroup and if_delgroupHenning Brauer
2005-06-05const'ify the char * parameter to pfi_kif_get and pfi_group_changeHenning Brauer
2005-06-02tsc, ryan left debug crap behindHenning Brauer
2005-06-01when dumping policies, skip those attached to a socket.Hans-Joerg Hoexer
ok ho
2005-05-28Remove duplicate pfi_ifs.Ryan Thomas McBride
2005-05-28Only protect IDs by suser()Hans-Joerg Hoexer
ok ho
2005-05-28Add SA replay counter synchronization to pfsync(4). Required for IPsecHakan Olsson
failover gateways. ok mcbride@, "looks good" hshoexer@
2005-05-27add missing free on error. thanks to Andrey Matveev.Reyk Floeter
2005-05-27Use rtm_fmask instead of rtm_use.Ryan Thomas McBride
ok marius@ claudio@
2005-05-27Calculate an MD5 checksum over the main pf ruleset.Marco Pfatschbacher
This is the basis for further pfsync improvements, to ensure that pf rules are in sync with the master. "get it in" mcbride@
2005-05-27pass UID_MAX/NO_PID when the socket lookup failed, so tcpdump canDaniel Hartmeier
suppress output in this case.
2005-05-27-in our current model, a kif has either a pointer to an interface (ifnet) orHenning Brauer
a group, or there cannot be addresses associated with it. so we can get rid of checking kifs in the 3rd case and just be done with it. -we don't need to try to manually clear the table used for the (interface) notation when both the ifp and the group pointers are NULL, the pfr_set_addrs call will do the right thing with an empty set of addrs suggested by cedric, ryan ok
2005-05-27add back ACCEPT_GLAGS and active flag check, pointed out by cedricHenning Brauer
2005-05-27Convert IPSP_IPSEC_x to SADB_X_FLOW_TYPE_x. hshoexer@ ok.Hakan Olsson
2005-05-27Must convert back from IPPROTO_x to SADB_SATYPE_x. hshoexer@ okHakan Olsson
2005-05-27log two pairs of uid/pid through pflog: the uid/pid of the process thatDaniel Hartmeier
inserted the rule which causes the logging. secondly, the uid/pid of the process in case the logged packet is delivered to/from a local socket. a lookup of the local socket can be forced for logged packets with a new option, 'log (user)'. make tcpdump print the additional information when -e and -v is used. note: this changes the pflog header struct, rebuild all dependancies. ok bob@, henning@.
2005-05-27Add rtm_fmask define to make the (ab)use of rtm_use more obvious.Ryan Thomas McBride
Suggestion from Cedric Berger ok marius@ claudio@
2005-05-27Use export_flow() to wrap policies retrieved via sysctl in pfkey messageHans-Joerg Hoexer
ok ho markus
2005-05-27Add export_flow()Hans-Joerg Hoexer
ok ho markus
2005-05-27only access if_linkstatehooks inside splnet.Marco Pfatschbacher
with pascoe@
2005-05-27Allow us to clear the RTM_JUMBO flag as well as set it.Ryan Thomas McBride
Reported by Cedric Berger
2005-05-27Experimental support for opportunitic use of jumbograms where only some hostsRyan Thomas McBride
on the local network support them. This adds a new socket option, SO_JUMBO, and a new route flag, RTF_JUMBO. If _both_ the socket option is set and the route for the host has RTF_JUMBO set, ip_output will fragment the packet to the largest possible size for the link, ignoring the card's MTU. The semantics of this feature will be evolving rapidly; talk to us if you intend to use it. ok deraadt@ marius@
2005-05-26remove last races of SIOCADDRT and SIOCDELRT, the 4.3BSD routing table ioctlsHenning Brauer
theo ok
2005-05-26support 'log' and 'log-all' in 'nat/rdr/binat pass' rules. original patchDaniel Hartmeier
from camield@. use #defines PF_LOG, PF_LOGALL instead of magic constants. ok frantzen@, camield@
2005-05-26turd polishingHenning Brauer
2005-05-26repair (self) notation - just attach "self" to the "all" groupHenning Brauer
2005-05-26deny groupnames ending in digits in if_addgroup, frantzen okHenning Brauer
(this has been on my todo, mike beat me to it with the check in ifconfig, but we want it here too)
2005-05-26oups another unused varHenning Brauer
2005-05-26unused varHenning Brauer
2005-05-26remove the interface family group (i. e. "em" for "em0")Henning Brauer
I foudn this stupid from the beginning on :) talked about and agreed with ryan and theo on the hike