summaryrefslogtreecommitdiff
path: root/sys/netinet
AgeCommit message (Collapse)Author
2004-12-10Add carp_set_enaddr(), call carp_set_state() after changing the vhidRyan Thomas McBride
to trigger a gratuitous arp and update arp tables on other hosts.
2004-12-10Rename carp_output() to carp_fix_lladdr().Ryan Thomas McBride
2004-12-08* knfPatrick Latifi
* M_WAITOK -> M_NOWAIT * FREE() only when necessary * join_multicast6 for ip6 addresses mcbride ok
2004-12-08allow ToS to be set on raw ip socketsHenning Brauer
From: "Esben Norby (ST/LMD)" <esben.norby@ericsson.com> ok hshoexer markus millert
2004-12-08Remove code duplication duplication. Use carpdetach() in carp_clone_destroy().Ryan Thomas McBride
2004-12-08Merge in more fixes from a pre-carpdev diff from Chris Pascoe.Ryan Thomas McBride
2004-12-08Check if_type in carp_carpdev_state() to make sure we're notRyan Thomas McBride
dealing with a carp interface.
2004-12-07Convert carp(4) to behave more like a regular interface, much in the sameRyan Thomas McBride
style as vlan(4). carp interfaces no longer require the physical interface to be on the same subnet as the carp interface, or even that the physical interface has an adress at all, so CARP can now be used on /30 networks. ok deraadt@ henning@
2004-12-06also consider NFS_PORT to be a reserved port, as in 1.18 or something likeTheo de Raadt
that.
2004-12-06ipsec udpencap check was done after baddynamicports ports checks (thoseTheo de Raadt
tables only map from 512 to 1023 using bitmaps, sorry); ok hshoexer
2004-11-30Use %s, not %d to print the interface name. From Max Laier.Ryan Thomas McBride
2004-11-28Reverse bogus sc == NULL check in CARP_LOG(), from Max Laier.Ryan Thomas McBride
2004-11-25resolve conflict between M_TUNNEL and M_ANYCAST6, remove M_COMP (it'sMarkus Friedl
only set and never read), update documentation; ok fgsch, deraadt, millert
2004-11-25use ttl from setsockopt(), similar to bsd/os; ok henning, mcbride, fgschMarkus Friedl
2004-11-25fix for race between invocation for timer and network inputMarkus Friedl
1) add a reaper for TCP and SYN cache states (cf. netbsd pr 20390) 2) additional check for TCP_TIMER_ISARMED(TCPT_REXMT) in tcp_timer_persist() with mickey@; ok deraadt@
2004-11-24Multicast routing cleanup from Pavlin RadoslavovRyan Thomas McBride
- sync ip_mroute.c with NetBSD - import some FreeBSD changes to MFC entry handling - set im->im_vif correctly when sending IGMPMSG_WRONGVIF - increment mrtstat.mrts_upcalls correctly - return error from get_sg_cnt() if there is no matching forwarding entry ok henning@ brad@ naddy@
2004-11-23remove wrong comments; ok deraadtMarkus Friedl
2004-11-19Plug memory leak. Found by pat@. Thanks!Hans-Joerg Hoexer
ok myself markus@
2004-11-18for loopback, set ia_dstaddr instead of ia_ifa.ifa_dstaddr in in_ifinit()Daniel Hartmeier
found by Ruslan Ermilov, ok markus@ http://marc.theaimsgroup.com/?l=freebsd-net&m=110072900204253
2004-11-17ip6_plen does not include the size of the ipv6 header; ok itojunMarkus Friedl
2004-11-17Improved logging for advertisement failures: Add some carpstats.carps_onomem++Ryan Thomas McBride
when sending advertisements fail due to ENOBUGS, and some CARP_LOG for other failures. From camield@
2004-11-16Call arprequest/ether_output at splsoftnet(). From Chris Pascoe.Ryan Thomas McBride
ok henning@
2004-11-10Add some (ifp != NULL) checks to ip_fragment() so it can be used even if thereRyan Thomas McBride
is no struct ifnet associated with the outgoing interface of the packet. Necessary for upcoming Protocol Independent Multicast support. From Pavlin Radoslavov ok henning@ djm@ markus@
2004-10-28define IFT_CARP, and set if_type to that on carp interfaces insteadHenning Brauer
of hiding under IFT_PROPVIRTUAL, ryan daniel ok
2004-10-28Modulate tcp_now by a random amount on a per-connection basis.Ryan Thomas McBride
ok markus@ frantzen@
2004-10-18Do not embed an ip header with a decremented ttl into an icmp message.Otto Moerbeek
Wait with the decrement until after the copy is done. Resolves checksum mismatches on the embedded header, as reported by tcpdump. ok markus@ itojun@
2004-10-06set the congestion window to two segments (instead of only one), this matchesMarkus Friedl
the window size he have when entering the established state. ok deraadt@
2004-10-06Unbreak tcpdump on the carp interface; variable shadowing pointed out byRyan Thomas McBride
Patrick Latifi (diff based on his).
2004-10-05Call ip_output at splsoftnet() when sending advertisements; also don't stopRyan Thomas McBride
sending advertisements if we can't tag the mbuf. Problem report and fix from Chris Pascoe, thanks. ok henning@
2004-09-24pmtu support for udpencap; ok hshoexer, hoMarkus Friedl
2004-09-24pass segment size to userland; ok deraadt@Markus Friedl
2004-09-23add ETHER_MAX_DIX_LENBrad Smith
2004-09-23remove some more compile time overrides, use the sysctl's.Brad Smith
ok markus@
2004-09-22account for linkhdr size when choosing mbufs vs mbuf clustersTheo de Raadt
ok dhartmei markus claudio henning mcbride ...
2004-09-18Oops, copy a pointer to ac_if, not the first bytes of the struct itself.Ryan Thomas McBride
Actually this doesn't matter right now, as the first bytes of struct ifnet are a pointer to the softc, which has ac_if at the beginning and thus by fluke the pointer is correct. This also makes the sc to ifp conversion for carp_macmatch6().
2004-09-18Store the carp interface ifp in PACKET_TAG_CARP instead of a pointer toRyan Thomas McBride
carp_softc.
2004-09-17Remove option EON from kernel and options(4)Mathieu Sauve-Frankel
ok henning@
2004-09-16Clean up CARP_LOG macro and include the physical interfaceRyan Thomas McBride
that bogus packets arrive on.
2004-09-16don't send partial segments if SS_ISSENDING is set, rememberMarkus Friedl
TF_LASTIDLE across invocations of tcp_output (from freebsd); ok mcbride
2004-08-31Prevent backup CARP hosts from replying to arp requests, fixes strangenessRyan Thomas McBride
with some layer-3 switches. From Bill Marquette. ok henning@ mickey@ dhartmei@ and deraadt@
2004-08-24Don't allow SIOCGET{VIF,SG}CNT from sockets other than the multicast router.Brad Smith
From NetBSD Fixes PR 3825 ok mcbride@ canacar@ claudio@
2004-08-10remove in_pcbnotify, it is no longer used.Markus Friedl
2004-08-10replace in_pcbnotify with in_pcbhashlookup and avoid looping overMarkus Friedl
all connections; ok dhartmei, canacar, mcbride
2004-08-10verify th_seq in icmp errors; report Fernando Gont; ok mcbride@, dhartmei@Markus Friedl
2004-08-04use CIRCLEQ_XXX; ok mcbride, miodMarkus Friedl
2004-07-31remove GATEWAY and IPFORWARDING option knobs, use the sysctl.Brad Smith
ok mcbride@ miod@ deraadt@
2004-07-31- formattingBrad Smith
- add comment
2004-07-29Document the CARP header layout.Ryan Thomas McBride
2004-07-17netiso traces hide everywhere... millert okHenning Brauer
2004-07-16undo 1.148, otherwise we have assymmetric cwnd when entering ESTABLISHED:Markus Friedl
2mss on the server side, and 1mss on the client.