summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
Commit message (Collapse)AuthorAgeFilesLines
* Unconditionalize the definition of INET_ADDRSTRLEN andmike2002-04-101-2/+0
| | | | | INET6_ADDRSTRLEN. Doing this helps expose bogus redefinitions in 3rd party software.
* Use <net/fddi.h> rather than <netinet/if_fddi.h>.mdodd2002-04-061-1/+1
|
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-1/+1
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-018-12/+16
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* In nd6_lookup(), check if rt_llinfo is non-NULL to avoid returning anume2002-04-011-4/+9
| | | | | | | entry that has the LLINFO flag but is not a neighbor cache entry. Obtained from: KAME MFC after: 1 week
* Fix cached route problem.ume2002-03-291-0/+1
| | | | | | Submitted by: Keiichi SHIMA <keiichi@iij.ad.jp> (KAME) Reviewed by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> (KAME) MFC after: 1 week
* double m_free() - not critical. from niklas@openbsdume2002-03-291-3/+1
| | | | | Obtained from: KAME MFC after: 1 week
* Corrected arguments to key_allocsa called fromume2002-03-252-7/+11
| | | | | | | | {esp6, ah6}_ctlinput. Previous ones were uninitialized auto variables, which were completely bogus. Obtained from: KAME MFC after: 1 week
* 3rd arg to bcmp() was wrong. From: David Wang <dsw@juniper.net>ume2002-03-251-1/+1
| | | | | Obtained from: KAME MFC after: 1 week
* Remove references to vm_zone.h and switch over to the new uma API.jeff2002-03-201-2/+2
|
* Pacify gcc-3.1.peter2002-03-191-2/+1
|
* Remove duplicate extern declarations to silence warnings.alfred2002-03-194-9/+0
|
* put an extern for ip6_protox in here where it is only used for kernel compilingdarrenr2002-03-191-0/+1
|
* put an extern for inet6sw in here and make it active only for kernel compilingdarrenr2002-03-191-0/+4
|
* o Add INET_ADDRSTRLEN and INET6_ADDRSTRLEN defines to <arpa/inet.h>mike2002-03-101-0/+2
| | | | | | | for POSIX.1-2001 conformance. o Add magic to <netinet/in.h> and <netinet6/in6.h> to prevent redefining INET_ADDRSTRLEN and INET6_ADDRSTRLEN. o Add a note about missing typedefs in <arpa/inet.h>.
* - use des_ecb3_encrypt().ume2002-03-051-11/+9
| | | | | | | - style: added spaces after /* and before */ Obtained from: KAME MFC after: 2 weeks
* Oops, now, encription and decription are separate function.ume2002-03-051-2/+2
| | | | MFC after: 2 weeks
* - Speedup 3DES by using assembly code for i386.ume2002-03-051-2/+2
| | | | | | | - Sync des/blowfish to more recent openssl. Obtained from: KAME/NetBSD MFC after: 2 weeks
* - In nd6_rtrequest(), ignored a route when it is created by cloning andume2002-02-281-0/+21
| | | | | | | | | | is not a neighbor. see comments for the detailed reason. - Rejected the process of nd6_rtrequest() when the request is RESOLVE and the interface does not need neighbor caches. Obtained from: KAME MFC After: 1 week
* Fix another boatload of warnings (missing include) and a cosmeticpeter2002-02-282-0/+4
| | | | -Wuninitialized warning.
* 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.
OpenPOWER on IntegriCloud