summaryrefslogtreecommitdiff
path: root/sys/netinet
AgeCommit message (Collapse)Author
2006-09-02increment ips_total too.liamjfoy
ok matt thomas
2006-08-31Add a mode to gre(4) that sends GRE tunnel packets in UDP datagrams.dyoung
Fix MOBILE encapsulation. Add many debugging printfs (mainly concerning UDP mode). Clean up the gre(4) code a bit. Add the capability to setup UDP tunnels to ifconfig. Update documentation. In UDP mode, gre(4) puts a GRE header onto transmitted packets, and hands them to a UDP socket for transmission. That is, the encapsulation looks like this: IP+UDP+GRE+encapsulated packet. There are two ways to set up a UDP tunnel. One way is to tell the source and destination IP+port to gre(4), and let gre(4) create the socket. The other way to create a UDP tunnel is for userland to "delegate" a UDP socket to the kernel.
2006-08-30Fix initializers.christos
2006-08-30fix initializerchristos
2006-08-30static comes firstchristos
2006-08-30fix initializerschristos
2006-08-30add missing initializerschristos
2006-08-30fix initializers and add const.christos
2006-08-30Fix initializerschristos
2006-08-28icmp_input: don't assume relations between PRC_ and ICMP_ values.yamt
2006-08-28Remove excess initializer.christos
2006-08-25One step closer to loadable domains. Store pointers to a domain's softmatt
interrupt queues so if_detach can remove packets to removed interfaces from them. This eliminates a lot of conditional ugly code in if.c
2006-07-30ugh.. more stuff that's overdue and should not be in 4.0: remove theelad
sysctl(9) flags CTLFLAG_READONLY[12]. luckily they're not documented so it's only half regression. only two knobs used them; proc.curproc.corename (check added in the existing handler; its CTLFLAG_ANYWRITE, yay) and net.inet.ip.forwsrcrt, that got its own handler now too.
2006-07-28Extract predicate M_UNWRITABLE(m, len), which is true iff lendyoung
consecutive bytes at the front of m are writable (i.e., neither shared nor read-only).
2006-07-28Fix mtod() usage. If we will write to the mbuf data, check whetherdyoung
the data is read-only/shared and call m_pullup(). Otherwise, extract a const pointer to the mbuf data. XXX I should extract a new macro, M_WRITABLE(m, len), that is true if m has len consecutive writable bytes at its front. KNF slightly. Use bpf_mtap_af().
2006-07-28Fix mtod() usage. If we will write to the mbuf data, check whetherdyoung
the data is read-only/shared and call m_pullup(). Otherwise, extract a const pointer to the mbuf data. XXX I should extract a new macro, M_WRITABLE(m, len), that is true if m has len consecutive writable bytes at its front.
2006-07-28Where mbuf data may be read-only/shared, use mtod(m, const ...).dyoung
Annotate a comparison and m_pullup() that seem unnecessary.
2006-07-28Use bpf_mtap_af(). KNF slightly.dyoung
2006-07-23Use the LWP cached credentials where sane.ad
2006-07-22revert stuff that shouldn't have gone in.rpaulo
2006-07-22TCP RFC is 793, not 783.rpaulo
2006-07-16get rid of CURTAIN() macro. inline the last use of it, togetherelad
with a nice XXX comment (assigned to me of course) that we should be doing this differently.
2006-07-12Remove test for M_CSUM_TSOv6 flag which is not (yet) defined intron
NetBSD-current.
2006-07-12Add diagnostic checks for hardware-assisted checksum related flags intron
the mbuf which supposed to get sent out: - Complain in ip_output() if any of the IPv6 related flags are set. - Complain in ip6_output() if any of the IPv4 related flags are set. - Complain in both functions if the flags indicate that both a TCP and UCP checksum should be calculated by the hardware.
2006-07-10Wrap long lines, unwrap a short line.peter
2006-07-10Moves the PF_GENERATED m_tag to the new packet in icmp_error.peter
This is needed because the pf code can call icmp_error with setting this tag, but the new packet should not be filtered when it comes back to pf(4). ok christos@
2006-06-13Prototype for tvtohz() is no longer needed here.riz
2006-06-13Remove implementation of tvtohz() - since the timecounters branchriz
was merged, this is now in sys/kern/kern_clock.c .
2006-06-07merge FreeBSD timecounters from branch simonb-timecounterskardel
- struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
2006-05-28remove some dead codeliamjfoy
ok christos@
2006-05-27Revert rev 1.241: calling m_makewritable() in tcp_input causes problems whenbouyer
it has to change the mbuf chain. I experience hard hang on a Xen2 domU after TCP connections have been closed, and a crash has been reported which may be caused by this too.
2006-05-25If we're going to byteswap fields in the TCP header, make sure the mbufbouyer
area is writable first.
2006-05-25Make sure the mbuf is writable before trying to write to it.bouyer
2006-05-25remove a little white spaceliamjfoy
2006-05-24Add a check for our own advertisements. This is due to non-simplexliamjfoy
interfaces which received the packets they have just sent. From: OpenBSD (rev. 1.124) ok: christos@
2006-05-18Integrate Common Address Redundancy Procotol (CARP) from OpenBSDliamjfoy
'pseudo-device carp' Thanks to: joerg@ christos@ riz@ and others who tested Ok: core@
2006-05-15kauth falloutchristos
2006-05-14integrate kauth.elad
2006-05-14Comment out attribute packed. Gcc4 warns us that the field is too narrowchristos
for packing. Produces the same size struct on i386 (28 bytes)
2006-05-12since ar_tha() can return NULL, don't pass it directly to functionsmrg
that expect real addresses. explicitly KASSERT() that it is not NULL in the kernel and just avoid using it userland. (the kernel could be more defensive about this, but, until now it would have just crashed anyway.)
2006-05-10quell GCC 4.1 uninitialised variable warnings.mrg
XXX: we should audit the tree for which old ones are no longer needed after getting the older compilers out of the tree..
2006-05-08#if -> #ifdefliamjfoy
ok christos
2006-05-05Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).rpaulo
* RFC 3542 isn't binary compatible with RFC 2292. * RFC 2292 support is on by default but can be disabled. * update ping6, telnet and traceroute6 to the new API. From the KAME project (www.kame.net). Reviewed by core.
2006-04-25- use MAXTTLliamjfoy
ok christos@
2006-04-15Coverity CID 1153: Add KASSERT before deref.christos
2006-04-15Coverity CID 1152: Add KASSERT before deref.christos
2006-04-15Coverity CID 1149: Add KASSERT before deref.christos
2006-04-15Coverity CID 1148: Add KASSERT before deref.christos
2006-04-15Coverity CID 1134: Protect against NULL deref.christos
2006-04-15Move pf2 assignment after we've assigned pf.christos