summaryrefslogtreecommitdiff
path: root/sys/netinet
AgeCommit message (Collapse)Author
2006-05-18Add a duplicate check for our own advertisements. This is necessaryMarco Pfatschbacher
for dumb non simplex interfaces, that receive packets they've just sent. Fixes bug 5121. OK deraadt@, mcbride@
2006-05-16- pcbflags is not modified in pcb_(dis)connect, so there's noMarkus Friedl
need to save/restore it. - inp->inp_laddr should be set _before_ calling pcb_disconnect(). otherwise pcb_disconnect() calls pcb_rehash() with the old laddr. [ currently this is not a problem since the hash ignores laddr ] tested by pedro
2006-05-11fix corruption of pim register packets. From Hideki ONO, thanks!Hans-Joerg Hoexer
ok mcbride@ itojun@
2006-04-27use underscore variants of _BYTE_ORDER macros which are always definedTed Unangst
ok deraadt millert
2006-04-25Remove virtual tunnel support from the mrouting code. The virtual tunnelClaudio Jeker
code breaks multicast on gif(4) interfaces and it is far better to configure a real gif(4) tunnel instead of a multicast tunnel as the latter is almost not manageable. OK norby@, mblamer@
2006-04-22Routes announced via rt_missmsg() do not have rtm_index set. While in mostClaudio Jeker
cases harmless it is used by the IPv6 code. The result is that bgpd is unable to assigning link local addresses to the correct interface. OK henning@ Fix for PR 5063.
2006-03-30fix a typoEsben Norby
ok claudio@
2006-03-26if_link_state_change() is more appropriate here.Camiel Dobbelaar
ok henning mcbride
2006-03-25allow bpf(4) to ignore packets based on their direction (inbound orDamien Miller
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
2006-03-23Set a carp MAC address of 00:00:00:00:00:00 if no vhid is assigned.Ryan Thomas McBride
ok henning@
2006-03-22prevent anything outside rote.c from accessing the routing table headsHenning Brauer
directly. rather provide a rt_lookup function for regular lookups, and a rt_gettable for those that need access to the head for some reason. the latter cases should be revisted later probably so that nothing outside the routing core code accesses the heads at all... tested claudio jolan me, ok claudio markus
2006-03-12mbuf use-after-free; ok henning, djm, bradMarkus Friedl
2006-03-07advertisment -> advertisement; from leonardo chiquitto filhoJason McIntyre
2006-03-05Use more queue macros rather than doing it by hand; ok otto@ krw@Miod Vallat
2006-03-05revert unrelated change that snuck into the last commit.Brad Smith
2006-03-04With the exception of two other small uncommited diffs this movesBrad Smith
the remainder of the network stack from splimp to splnet. ok miod@
2006-02-26unbreak tcp window update (restore 4.4lite code); netbsd pr 13952;Markus Friedl
ok claudio, henning, brad, djm, tedu
2006-02-21Fix a panic reported by D.Snezhkov by issuing an ifconfig command withClaudio Jeker
-alias and netmask used at the same time. This resulted in a corrupted routing table and a panic in rn_walktree after the interface was destroyed. OK krw@ henning@
2006-01-28Fix hmac calculation.Marco Pfatschbacher
Add some f's; do comparison in host byte order. OK mcbride@
2006-01-13Path MTU discovery for NAT-T.Marco Pfatschbacher
OK markus@, "looks good" hshoexer@
2006-01-03m_pullup the same amount we copied, not just the IP header.Marco Pfatschbacher
Any pf(4) translation that modifies more than IP addresses, was happening on the shared mbuf cluster. Thus we were sending icmp errors with corrupted payload. OK dhartmei@, markus@
2005-12-23Remove unnecessary #ifdef MROUTING blocks. OK brad@ markus@Claudio Jeker
2005-12-20use M_READONLY when trying to find out whether we have to copyMarkus Friedl
the mbuf before encryption. otherwise mbufs with M_EXT but w/o M_CLUSTER get modified; ok hshoexer
2005-12-11bitfields must be off an int or such typeTheo de Raadt
2005-12-10in ansi c, bitfields must be done against int, unsigned int, or _Bool.Theo de Raadt
so we must start to use u_int; ok cloder
2005-12-01allow RST if the th_seq matches rcv_nxt in case the RST follows theMarkus Friedl
data immediately. otherwise we would ignore RST for delayed acks; ok deraadt, dhartmei
2005-11-29Fix IPv6 hmac calculation.Marco Pfatschbacher
OK mcbride@
2005-11-29something in the eurobsdcon route-a-thon broke my simple home networkJolan Luff
router so back out the routing stuff to pre-eurobsdcon where my machine doesn't crash immediately. i am happy to test diffs and report success/failures but i am not happy to have instantaneous crashes when i reboot with a new kernel that was compiled from pristine sources. if you are going to be an elitist asshole then you could at least make sure your code works. ok and "be crass towards them" deraadt@
2005-11-27don't let anything outside route.c access the routing table heads directly,Henning Brauer
but go through a provided wrapper. also provide rt_lookup() instead of doing the lookup manually in many places. ryan ok
2005-11-27Completly remove transition path INIT -> MASTER.Marco Pfatschbacher
A bug introduced in -r 1.4 led lower priotorized hosts switching to MASTER state for a short time at bootup, if preemption was enabled. OK mcbride@
2005-11-27Sort the IP addresses in ascending order when doing the carp hmac; makesRyan Thomas McBride
alias address order on the interface irrelevant. prodding by henning@, ok mpf@
2005-11-24Remove kernfs, okay deraadt@.Pedro Martelletto
2005-11-20splimp -> splvm. mbuf allocation here.Brad Smith
ok henning@
2005-11-15Only two `h' in threshold.Miod Vallat
2005-11-04Add carp_hash() - hash the ethernet address of the ARP request and useRyan Thomas McBride
the result to determine which carp interface should answer rather than simply using the ip address. Fixes breakage debugged by Matt Bradford <m.bradford@isrc.qut.edu.au> 'just commit' deraadt@
2005-11-02inherit sack_enable from the listen socket, this should allow connectionsMarkus Friedl
with both sack and md5 options in SYN.
2005-10-31Fix a TAILQ_FOREACH where the item containing the next pointer could beChristopher Pascoe
freed. ok canacar deraadt
2005-10-24Remove redundant duplicate packet length check.Ryan Thomas McBride
ok mpf@
2005-10-17make pf use one mbuf tag instead of 6 distinct ones. use a little structHenning Brauer
in the data part for the data from the previously distinct tags. look up the tag early and carry a pointer to it around. makes the code easier and saves some tag lookups and thus helps performance, as proven by tests run by Schberle Dniel <Schoeberle.Daniel@aamtech.hu> Initially hacked up somewhere over the atlantic ocean in an A330 early testing reyk and moritz, "put it in" theo
2005-10-05Add multicast routing to GENERIC.Esben Norby
It is now possible to enable multicast routing in the kernel with the sysctl option net.inet.ip.mforwarding=1 Based on intial work by msf@ help claudio@ ok claudio@ deraadt@
2005-09-29Rework of multicast deletion code.Marco Pfatschbacher
The previous code could wrongly delete multicast groups on the parent interface. Now we forward only remembered delete requests to the carpdev. OK mcbride, mickey. "Get it in" deraadt.
2005-09-28Enable RFC3390 by default and remove a few compile time options whichBrad Smith
can be changed via sysctl's. ok markus@
2005-09-19A few 'demon' -> 'daemon'.Kenneth R Westerback
ok deraadt@
2005-09-19typoTheo de Raadt
2005-09-19Fix initialisation of baddynamicports.udp, busted since 1997, wow.Theo de Raadt
found by leonardo@iken.com.br
2005-08-31Comment out KASSERT(mc != NULL) in carp_ether_delmulti. Because we mess withRyan Thomas McBride
the multicast list elsewhere, it can occur under certain conditions (PR4475). ok deraadt@ mpf@
2005-08-11New counter for not joined IPv4 multicast groups.Marco Pfatschbacher
Don't count link local scope multicast as not forwardable. This stops ips_cantforward growing on carp(4) networks. tested and ok mcbride@, ok markus@.
2005-08-11don't accept SYN-only TCP options for established connections;Markus Friedl
cf FreeBSD-SA-05:15.tcp; ok claudio, mcbride
2005-08-05don't panic for SADB_ADD w/o enc/auth, with and ok hshoexer@Markus Friedl
2005-08-02change the TCP reass queue from LIST to TAILQ;Markus Friedl
ok henning claudio fgsch krw