summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Sync with recent KAME.ume2001-06-1158-5329/+8603
| | | | | | | | | | | | | | | | | | This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks
* Make the default value of net.inet.ip.maxfragpackets andjesper2001-06-102-1/+3
| | | | | | | | net.inet6.ip6.maxfragpackets dependent on nmbclusters, defaulting to nmbclusters / 4 Reviewed by: bde MFC after: 1 week
* Add ``options RANDOM_IP_ID'' which randomizes the ID field of IP packets.kris2001-06-011-0/+4
| | | | | | | | | This closes a minor information leak which allows a remote observer to determine the rate at which the machine is generating packets, since the default behaviour is to increment a counter for each packet sent. Reviewed by: -net Obtained from: OpenBSD
* Back out jesper's 2001/05/31 14:58:11 PDT commit. It does not compile.obrien2001-06-011-1/+1
|
* Change the default value of net.inet6.ip6.maxfragpackets fromjesper2001-05-311-1/+1
| | | | | | 200 to NMBCLUSTERS/4 to match the IPv4 case. MFC after: 1 week
* Fix memory leak.ume2001-05-231-0/+2
| | | | Submitted by: itojun
* M_COPY_PKTHDR has to be done before MCLGET.ume2001-05-221-4/+5
| | | | Obtained from: KAME
* Plug memoly leak in overlaps fragment cases.sumikawa2001-05-201-0/+6
| | | | Obtained from: KAME
* Fix typo in previous commit.ume2001-04-201-1/+1
| | | | Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>
* - Fix to receive icmp6 echo reply within the host itself to ff02::1.ume2001-04-191-2/+32
| | | | | | | - Fix to receive icmp6 echo reply to link-local of itself. Reported by: Eriya Akasaka <eakasaka@rodfbs.org> Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>
* - correct logic of per-address input packet counts for lo0ume2001-04-051-16/+29
| | | | | | - reject packets to fe80::xxxx%lo0 (xxxx != 1) Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>
* Make per-address input packet counts for lo0 work.ume2001-03-281-6/+22
| | | | | Reported by: bmah Submitted by: Noriyasu KATO <noriyasu.kato@toshiba.co.jp> (via itojun)
* nuke IPSEC_SRCSEL which does not do the right thing.ume2001-03-161-33/+3
| | | | | | | adjust state->ro if the tunnel endpoint is offlink. KAME PR 233. PR: kern/21079
* Merge from kame (1.175 -> 1.176):kuriyama2001-03-161-1/+27
| | | | cope with freebsd4 bridge code.
* Plug several mbuf leaks in error cases (in nd6)bmilekic2001-03-111-3/+12
| | | | Submitted by: jhay
* More IP option length validation.kris2001-02-264-21/+41
| | | | | | | | | | | | | | | | | Includes the following revisions from KAME (two of these were actually committed previously but the CVS revisions weren't documented): 1.40 kame/kame/sys/netinet6/ah_core.c (committed in previous rev) 1.41 kame/kame/sys/netinet6/ah_core.c 1.28 kame/kame/sys/netinet6/ah_output.c (committed in previous rev) 1.29 kame/kame/sys/netinet6/ah_output.c 1.30 kame/kame/sys/netinet6/ah_output.c 1.129 kame/kame/sys/netinet6/nd6.c 1.130 kame/kame/sys/netinet6/nd6.c 1.24 kame/kame/sys/netinet6/dest6.c 1.25 kame/kame/sys/netinet6/dest6.c Obtained from: KAME
* Better detection of duplicated initialization.simokawa2001-02-201-2/+8
| | | | Obtained from: KAME
* Correct IPv4 option processing.kris2001-02-202-2/+22
| | | | | Submitted by: itojun Obtained from: KAME
* Switch to using a struct xucred instead of a struct xucred when notgreen2001-02-181-5/+9
| | | | | | | | | | | | | | | | | actually in the kernel. This structure is a different size than what is currently in -CURRENT, but should hopefully be the last time any application breakage is caused there. As soon as any major inconveniences are removed, the definition of the in-kernel struct ucred should be conditionalized upon defined(_KERNEL). This also changes struct export_args to remove dependency on the constantly-changing struct ucred, as well as limiting the bounds of the size fields to the correct size. This means: a) mountd and friends won't break all the time, b) mountd and friends won't crash the kernel all the time if they don't know what they're doing wrt actual struct export_args layout. Reviewed by: bde
* Fix typo: compatability -> compatibility.asmodai2001-02-061-1/+1
| | | | Compatability is not an existing english word.
* Fix typo: seperate -> separate.asmodai2001-02-061-1/+1
| | | | Seperate does not exist in the english language.
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedphk2001-02-062-3/+2
| | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh
* Yikes, these files bogusly #include "loop.h" but didn't use the value.peter2001-01-293-6/+0
| | | | My searching for NLOOP missed them. :-(
* Fix the vulnerability with TCP ECE packets recently fixed in ipfw.kris2001-01-232-5/+18
| | | | This is untested, but believed to work.
OpenPOWER on IntegriCloud