summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a version field to `struct xucred' in place of one of thedd2002-02-271-5/+1
| | | | | | | | | | | | spares (the size of the field was changed from u_short to u_int to reflect what it really ends up being). Accordingly, change users of xucred to set and check this field as appropriate. In the kernel, this is being done inside the new cru2x() routine which takes a `struct ucred' and fills out a `struct xucred' according to the former. This also has the pleasant sideaffect of removing some duplicate code. Reviewed by: rwatson
* Fix warnings caused by discarding const.alfred2002-02-276-9/+11
| | | | Hairy Eyeball At: peter
* Fix warnings in the gif(4) driver so it compiles with -Werror.brooks2002-02-261-2/+1
|
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-182-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm
* Corrected an argument to in6_pcbnotify().ume2002-02-041-2/+3
| | | | | Obtained from: KAME MFC after: 1 week
* - Check the address family of a cached destination, in case ofume2002-01-211-1/+4
| | | | | | | sharing the cache with IPv4. - Check if the cached route is up in in6_selectsrc(). Obtained from: KAME
* Initialise the intrq_present fields at runtime, not link time. This allowsmsmith2002-01-081-1/+1
| | | | | | us to load protocols at runtime, and avoids the use of common variables. Also fix the ip6_intrq assignment so that it works at all.
* Staticise the fw chain.msmith2002-01-081-1/+1
|
* Back out cometic changes. This is for easily syncing with KAME in other BSDs.sumikawa2001-12-171-5/+5
|
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-101-1/+1
| | | | also don't use ANSI string concatenation.
* - Replace M_WAIT with M_TRYWAIT since the M_WAIT flag is deprecated.arr2001-12-091-1/+1
| | | | Spotted by: bde
* fixed the cast128 calculation with a short cipher key length.ume2001-11-271-1/+2
| | | | | | | the memory was overridden when the key length was less than 16 bytes. Obtained from: KAME MFC after: 1 week
* Introduce a syncache, which enables FreeBSD to withstand a SYN floodjlemon2001-11-221-1/+1
| | | | | | | DoS in an improved fashion over the existing code. Reviewed by: silby (in a previous iteration) Sponsored by: DARPA, NAI Labs
* Give struct socket structures a ref counting interface similar todillon2001-11-171-1/+1
| | | | | | | vnodes. This will hopefully serve as a base from which we can expand the MP code. We currently do not attempt to obtain any mutex or SX locks, but the door is open to add them when we nail down exactly how that part of it is going to work.
* o Replace reference to 'struct proc' with 'struct thread' in 'structrwatson2001-11-081-1/+1
| | | | | | | | | | | | | | | sysctl_req', which describes in-progress sysctl requests. This permits sysctl handlers to have access to the current thread, permitting work on implementing td->td_ucred, migration of suser() to using struct thread to derive the appropriate ucred, and allowing struct thread to be passed down to other code, such as network code where td is not currently available (and curproc is used). o Note: netncp and netsmb are not updated to reflect this change, as they are not currently KSE-adapted. Reviewed by: julian Obtained from: TrustedBSD Project
* Fixed the behavior when there is no inbound policy for the ipsecume2001-11-061-0/+8
| | | | | | | | | | | | | tunneled packet. When there is no suitable inbound policy for the packet of the ipsec tunnel mode, the kernel never decapsulate the tunneled packet as the ipsec tunnel mode even when the system wide policy is "none". Then the kernel leaves the generic tunnel module to process this packet. If there is no rule of the generic tunnel, the packet is rejected and the statistics will be counted up. Obtained from: KAME MFC after: 1 week
* Fix fragmented packet handling.sumikawa2001-10-291-2/+2
| | | | | Obtained from: KAME MFC after: 3 weeks
* Pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2.ru2001-10-173-8/+6
| | | | | | | | | | | | | | | | | | | | Have sys/net/route.c:rtrequest1(), which takes ``rt_addrinfo *'' as the argument. Pass rt_addrinfo all the way down to rtrequest1 and ifa->ifa_rtrequest. 3rd argument of ifa->ifa_rtrequest is now ``rt_addrinfo *'' instead of ``sockaddr *'' (almost noone is using it anyways). Benefit: the following command now works. Previously we needed two route(8) invocations, "add" then "change". # route add -inet6 default ::1 -ifp gif0 Remove unsafe typecast in rtrequest(), from ``rtentry *'' to ``sockaddr *''. It was introduced by 4.3BSD-Reno and never corrected. Obtained from: BSD/OS, NetBSD MFC after: 1 month PR: kern/28360
* Pull fix for memory leak in in6_losing() from netinet/in_pcb.c,v 1.85.ru2001-10-171-3/+2
| | | | MFC after: 1 week
* Fixed to process a IPv6 packet when ah transport after esp tunnelume2001-10-171-3/+42
| | | | | | | | should be applied. the SA of AH transport could not be selected from the SAD because of this bug. Obtained from: KAME MFC after: 1 week
* catch forwarded ipv6 packets with pfil_hooks for outbound things toodarrenr2001-10-151-0/+34
|
* Make faith loadable, unloadable, and clonable.brooks2001-09-258-40/+11
|
* Removed a wrong comment.sumikawa2001-09-201-5/+0
| | | | | Obtained from: KAME MFC after: 1 week
* KSE Milestone 2julian2001-09-1213-59/+61
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Patches from KAME to remove usage of Varargs in existingjulian2001-09-076-42/+16
| | | | | | | IPV4 code. For now they will still have some in the developing stuff (IPv6) Submitted by: Keiichi SHIMA / <keiichi@iij.ad.jp> Obtained from: KAME
* Wrap array accesses in macros, which also happen to be lvalues:jlemon2001-09-068-20/+18
| | | | | | | ifnet_addrs[i - 1] -> ifaddr_byindex(i) ifindex2ifnet[i] -> ifnet_byindex(i) This is intended to ease the conversion to SMPng.
* Patches from Keiichi SHIMA <keiichi@iij.ad.jp>julian2001-09-033-12/+9
| | | | | | to make ip use the standard protosw structure again. Obtained from: Well, KAME I guess.
* Add missing "opt_inet6.h" header.jlemon2001-08-311-0/+1
|
* Fix fencepost error causing creation of 0-length mbufs when the boundaryfenner2001-08-201-2/+2
| | | | between header and data fell on the boundary between two mbufs.
* Fix unaligned access (fault) on alpha with ndp -p/-r and sysctl -a.simokawa2001-08-101-2/+2
| | | | | | Discussed on users@jp.ipv6.org MFC candidate.
* When running aplication joined multicast address,ume2001-08-043-0/+47
| | | | | | | | | | | | | | removing network card, and kill aplication. imo_membership[].inm_ifp refer interface pointer after removing interface. When kill aplication, release socket,and imo_membership. imo_membership use already not exist interface pointer. Then, kernel panic. PR: 29345 Submitted by: Inoue Yuichi <inoue@nd.net.fujitsu.co.jp> Obtained from: KAME MFC after: 3 days
* When global anycast address was assigned to lo0, wrong sourceume2001-08-031-3/+5
| | | | | | | | address was selected. Reported by: Shingo WATANABE <nabe@nabechan.org> Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> MFC after: 3 days
* move ipsec security policy allocation into in_pcballoc, beforeume2001-07-262-14/+0
| | | | | | | | making pcbs available to the outside world. otherwise, we will see inpcb without ipsec security policy attached (-> panic() in ipsec.c). Obtained from: KAME MFC after: 3 days
* do not M_WAITOK in in6_update_ifa(), since this function can be calledume2001-07-151-1/+6
| | | | | | | under splnet(). (some comment was added by KAME) PR: 28927 MFC after: 1 week
* soopt_mcopyout() frees mbuf if error occurs, and DOES NOT free it if it isume2001-07-081-2/+6
| | | | | | | | successful. This part was lacked during merge. Obtained from: KAME MFC after: 1 week
* The m_free call in the ip6_fw_ctl_ptr == NULL case apparentlyume2001-07-071-2/+0
| | | | | | | | tries to free uninitialized mbuf. This was my mistake during recent KAME merge. This part is for *BSD other than FreeBSD. Submitted by: Alexander N. Kabaev <ak03@gte.com>
* When the link-layer address of a router changes, select theume2001-07-041-0/+18
| | | | | | | | best router again. In particular, when the neighbor entry is newly created, it might affect the selection policy. Obtained from: KAME MFC after: 1 week
* use TAILQ_FOREACH() in searching address listume2001-07-031-2/+1
| | | | | Obtained from: KAME MFC after: 1 week
* gif(4) and stf(4) modernization:brooks2001-07-023-25/+0
| | | | | | | | | | | - Remove gif dependencies from stf. - Make gif and stf into modules - Make gif cloneable. PR: kern/27983 Reviewed by: ru, ume Obtained from: NetBSD MFC after: 1 week
* - create an entry of IPV6CTL_STATS sysctl.ume2001-06-281-0/+2
| | | | | | | | | - fix the problem that netstat doesn't show raw6 and icmp6 pcblist. - make netstat use sysctl to retreive stats of ipv6 and icmpv6 instead of kread. Obtained from: KAME MFC after: 1 week
* Fix typo (s/=/+=/) in previous commit.kuriyama2001-06-281-1/+1
|
* refresh default router list on nd6_purge(), only if we are anume2001-06-271-4/+6
| | | | | | autoconfigured host. Obtained from: KAME
* Merge from netinet/ip_fw.c (1.117 -> 1.118).kuriyama2001-06-241-45/+69
| | | | | | | o Use syslog(3) interface for logging. Reviewed by: ume MFC after: 10 days
* remove IN6_IS_ADDR_ANY macro (outside of standard, #if 0'ed for a long time)ume2001-06-241-7/+0
| | | | | Obtained from: KAME MFC after: 10 days
* disallow setsockopt(IPV6_V6ONLY) for already bound sockets.ume2001-06-241-0/+11
| | | | | Obtained from: KAME MFC after: 10 days
* on icmp6 node information query (FQDN), do not return hostnames withume2001-06-241-2/+6
| | | | | | | | two dots (like "foo..bar"). 0-length labels are not distinguishable with multiple name replies. Obtained from: KAME MFC after: 10 days
* decrease warningume2001-06-241-2/+4
| | | | | Obtained from: KAME MFC after: 10 days
* Nuke the comment about MIP6. We don't have MIP6 code, yet.ume2001-06-241-12/+0
| | | | MFC after: 10 days
* Add IFT_L2VLAN for supported NDP type. IPv6 over VLAN works now.sumikawa2001-06-192-0/+9
| | | | | Obtained from: KAME MFC after: 2 weeks
* call pfxlist_onlink_check() at the end of in6_tmpifadd(), to make sureume2001-06-181-0/+11
| | | | | | | a temporary address generated from a detached public one also detached. Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> Obtained from: KAME
OpenPOWER on IntegriCloud