The NetBSD Project

CVS log for src/sys/netinet/in_pcb.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / netinet

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.76 / (download) - annotate - [select for diffs], Fri Nov 4 09:03:20 2022 UTC (15 months, 3 weeks ago) by ozaki-r
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.75: +5 -5 lines
Diff to previous 1.75 (colored)

inpcb: use in_port_t for port numbers

Revision 1.75 / (download) - annotate - [select for diffs], Fri Nov 4 09:01:53 2022 UTC (15 months, 3 weeks ago) by ozaki-r
Branch: MAIN
Changes since 1.74: +21 -21 lines
Diff to previous 1.74 (colored)

inpcb: rename functions to in6pcb_*

Revision 1.74 / (download) - annotate - [select for diffs], Fri Nov 4 09:00:58 2022 UTC (15 months, 3 weeks ago) by ozaki-r
Branch: MAIN
Changes since 1.73: +23 -23 lines
Diff to previous 1.73 (colored)

inpcb: rename functions to inpcb_*

Inspired by rmind-smpnet patches.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Oct 28 05:25:36 2022 UTC (16 months ago) by ozaki-r
Branch: MAIN
Changes since 1.72: +41 -28 lines
Diff to previous 1.72 (colored)

inpcb: separate inpcb again to reduce the size of PCB for IPv4

The data size of PCB for IPv4 increased because of the merge of
struct in6pcb.  The change decreases the size to the original size by
separating struct inpcb (again).  struct in4pcb and in6pcb that embed
struct inpcb are introduced.

Even after the separation, users don't need to realize the separation
and only have to use some macros to access dedicated data.  For example,
inp->inp_laddr is now accessed through in4p_laddr(inp).

Revision 1.72 / (download) - annotate - [select for diffs], Fri Oct 28 05:23:09 2022 UTC (16 months ago) by ozaki-r
Branch: MAIN
Changes since 1.71: +1 -2 lines
Diff to previous 1.71 (colored)

Remove in_pcb_hdr.h

Revision 1.71 / (download) - annotate - [select for diffs], Fri Oct 28 05:18:39 2022 UTC (16 months ago) by ozaki-r
Branch: MAIN
Changes since 1.70: +174 -24 lines
Diff to previous 1.70 (colored)

inpcb: integrate data structures of PCB into one

Data structures of network protocol control blocks (PCBs), i.e.,
struct inpcb, in6pcb and inpcb_hdr, are not organized well.  Users of
the data structures have to handle them separately and thus the code
is cluttered and duplicated.

The commit integrates the data structures into one, struct inpcb.  As a
result, users of PCBs only have to handle just one data structure, so
the code becomes simple.

One drawback is that the data size of PCB for IPv4 increases by 40 bytes
(from 248 bytes to 288 bytes).

Revision 1.70 / (download) - annotate - [select for diffs], Fri Jun 10 09:54:54 2022 UTC (20 months, 2 weeks ago) by knakahara
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.69: +1 -2 lines
Diff to previous 1.69 (colored)

"inp_hash" is not used now.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Sep 8 14:12:57 2020 UTC (3 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.68: +4 -2 lines
Diff to previous 1.68 (colored)

Add IP_BINDANY, IPV6_BINDANY which can be used to bind to any address in
order to implement transparent proxies.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Aug 28 07:01:57 2020 UTC (3 years, 6 months ago) by riastradh
Branch: MAIN
Changes since 1.67: +23 -4 lines
Diff to previous 1.67 (colored)

netinet: Include the needful so include order doesn't matter.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Aug 20 21:21:32 2020 UTC (3 years, 6 months ago) by riastradh
Branch: MAIN
Changes since 1.66: +11 -1 lines
Diff to previous 1.66 (colored)

[ozaki-r] Changes to the kernel core for wireguard

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:06 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.65: +1 -2 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Sync with HEAD

Revision 1.66 / (download) - annotate - [select for diffs], Thu May 31 07:03:57 2018 UTC (5 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.65: +1 -2 lines
Diff to previous 1.65 (colored)

Remove support for non-IKE markers in the kernel. Discussed on tech-net@,
and now in PR/53334. Basically non-IKE markers come from a deprecated
draft, and our kernel code for them has never worked.

Setsockopt will now reject UDP_ENCAP_ESPINUDP_NON_IKE.

Perhaps we should also add a check in key_handle_natt_info(), to make
sure we also reject UDP_ENCAP_ESPINUDP_NON_IKE in the SADB.

Revision 1.63.6.2 / (download) - annotate - [select for diffs], Sun Mar 18 10:57:01 2018 UTC (5 years, 11 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.63.6.1: +4 -5 lines
Diff to previous 1.63.6.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

Pull up following revision(s) (requested by tih in ticket #639):
	sys/kern/uipc_socket.c: revision 1.258
	sys/kern/uipc_socket.c: revision 1.259
	sys/netinet/ip_input.c: revision 1.364 (via patch)
	sys/netinet/ip_output.c: revision 1.289
	sys/netinet/in.h: revision 1.102
	sys/netinet/in_pcb.c: revision 1.181
	share/man/man9/sockopt.9: revision 1.11
	sys/netinet/in_pcb.h: revision 1.65
	sys/sys/socketvar.h: revision 1.146
	sys/kern/uipc_syscalls.c: revision 1.189
	sys/netinet/ip_output.c: revision 1.290
	share/man/man4/ip.4: revision 1.41
	share/man/man4/ip.4: revision 1.42
	sys/kern/uipc_syscalls.c: revision 1.190

pass valsize for getsockopt like we do for setsockopt
make sure that we have enough space, don't require the exact size
(Tom Ivar Helbekkmo)

1) "#define ipi_spec_dst ipi_addr" in <netinet/in.h>
2) Change the IP_RECVPKTINFO option to control the generation of
   IP_PKTINFO control messages, the way it's done in Solaris.
3) Remove the superfluous IP_RECVPKTINFO control message.
4) Change the IP_PKTINFO option to do different things depending on
   the parameter it's supplied with:
   - If it's sizeof(int), assume it's being used as in Linux:
     - If it's non-zero, turn on the IP_RECVPKTINFO option.
     - If it's zero, turn off the IP_RECVPKTINFO option.
   - If it's sizeof(struct in_pktinfo), assume it's being used as in
     Solaris, to set a default for the source interface and/or
     source address for outgoing packets on the socket.
5) Return what Linux or Solaris compatible code expects, depending
   on data size, and just added a fallback to a Linux (and current NetBSD)
   compatible value if the size is unknown (as it is now), or,
   in the future, if the calling application specifies a receiving
   buffer that doesn't match either data item.

From: Tom Ivar Helbekkmo

new sentence-new line

Remove comment now that the getsockopt code passes the size.

Add a new sockopt member to keep track of the actual size of the option
that should be returned to the caller in getsockopt(2).
(Tom Ivar Helbekkmo)

Revision 1.65 / (download) - annotate - [select for diffs], Mon Jan 1 00:51:36 2018 UTC (6 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.64: +4 -5 lines
Diff to previous 1.64 (colored)

1) "#define ipi_spec_dst ipi_addr" in <netinet/in.h>
2) Change the IP_RECVPKTINFO option to control the generation of
   IP_PKTINFO control messages, the way it's done in Solaris.
3) Remove the superfluous IP_RECVPKTINFO control message.
4) Change the IP_PKTINFO option to do different things depending on
   the parameter it's supplied with:
   - If it's sizeof(int), assume it's being used as in Linux:
     - If it's non-zero, turn on the IP_RECVPKTINFO option.
     - If it's zero, turn off the IP_RECVPKTINFO option.
   - If it's sizeof(struct in_pktinfo), assume it's being used as in
     Solaris, to set a default for the source interface and/or
     source address for outgoing packets on the socket.
5) Return what Linux or Solaris compatible code expects, depending
   on data size, and just added a fallback to a Linux (and current NetBSD)
   compatible value if the size is unknown (as it is now), or,
   in the future, if the calling application specifies a receiving
   buffer that doesn't match either data item.

From: Tom Ivar Helbekkmo

Revision 1.63.6.1 / (download) - annotate - [select for diffs], Thu Dec 21 21:08:13 2017 UTC (6 years, 2 months ago) by snj
Branch: netbsd-8
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)

Pull up following revision(s) (requested by ryo in ticket #445):
	distrib/sets/lists/debug/mi: revision 1.222
	distrib/sets/lists/tests/mi: revision 1.760
	share/man/man4/ip.4: revision 1.38
	sys/netinet/in.c: revision 1.207
	sys/netinet/in.h: revision 1.101
	sys/netinet/in_pcb.c: revision 1.179
	sys/netinet/in_pcb.h: revision 1.64
	sys/netinet/ip_output.c: revision 1.284, 1.286
	sys/netinet/ip_var.h: revision 1.120-1.121
	sys/netinet/raw_ip.c: revision 1.166-1.167
	sys/netinet/udp_usrreq.c: revision 1.235-1.236
	sys/netinet/udp_var.h: revision 1.42
	tests/net/net/Makefile: revision 1.21
	tests/net/net/t_pktinfo_send.c: revision 1.1-1.2
Add support IP_PKTINFO for sendmsg(2).
The source address or output interface can be specified by adding IP_PKTINFO
to the control part of the message on a SOCK_DGRAM or SOCK_RAW socket.
Reviewed by ozaki-r@ and christos@. thanks.
--
As is the case with IPV6_PKTINFO, IP_PKTINFO can be sent without EADDRINUSE
even if the UDP address:port in use is specified.

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:04 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.50.2.1: +11 -4 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

update from HEAD

Revision 1.55.2.5 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:12 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.55.2.4: +5 -1 lines
Diff to previous 1.55.2.4 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

Sync with HEAD

Revision 1.64 / (download) - annotate - [select for diffs], Thu Aug 10 04:31:58 2017 UTC (6 years, 6 months ago) by ryo
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, nick-nhusb-base-20170825
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)

Add support IP_PKTINFO for sendmsg(2).

The source address or output interface can be specified by adding IP_PKTINFO
to the control part of the message on a SOCK_DGRAM or SOCK_RAW socket.

Reviewed by ozaki-r@ and christos@. thanks.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:05 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.61: +4 -1 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

Sync with HEAD

Revision 1.60.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:50 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.60.2.1: +4 -1 lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)

Sync with HEAD

Revision 1.63 / (download) - annotate - [select for diffs], Thu Mar 2 05:29:31 2017 UTC (6 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.62: +4 -2 lines
Diff to previous 1.62 (colored)

Make sure imo_membership is protected by inp's lock (solock)

Revision 1.62 / (download) - annotate - [select for diffs], Wed Feb 22 07:05:04 2017 UTC (7 years ago) by ozaki-r
Branch: MAIN
Changes since 1.61: +2 -1 lines
Diff to previous 1.61 (colored)

Add assertions and comments for lock states of socket and pcb

Revision 1.55.2.4 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:59 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.55.2.3: +2 -1 lines
Diff to previous 1.55.2.3 (colored) to branchpoint 1.55 (colored)

Sync with HEAD

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:51 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.61 / (download) - annotate - [select for diffs], Thu Dec 8 05:16:33 2016 UTC (7 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored)

Add rtcache_unref to release points of rtentry stemming from rtcache

In the MP-safe world, a rtentry stemming from a rtcache can be freed at any
points. So we need to protect rtentries somehow say by reference couting or
passive references. Regardless of the method, we need to call some release
function of a rtentry after using it.

The change adds a new function rtcache_unref to release a rtentry. At this
point, this function does nothing because for now we don't add a reference
to a rtentry when we get one from a rtcache. We will add something useful
in a further commit.

This change is a part of changes for MP-safe routing table. It is separated
to avoid one big change that makes difficult to debug by bisecting.

Revision 1.55.2.3 / (download) - annotate - [select for diffs], Sun May 29 08:44:38 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.55.2.2: +2 -1 lines
Diff to previous 1.55.2.2 (colored) to branchpoint 1.55 (colored)

Sync with HEAD

Revision 1.60 / (download) - annotate - [select for diffs], Tue Apr 26 08:44:44 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored)

Sweep unnecessary route.h inclusions

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:25 2015 UTC (8 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.55.2.1: +4 -4 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored)

Sync with HEAD

Revision 1.59 / (download) - annotate - [select for diffs], Sun May 24 15:43:45 2015 UTC (8 years, 9 months ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.58: +1 -2 lines
Diff to previous 1.58 (colored)

remove transitional functions in{,6}_pcbconnect_m() that were used in
converting protocol user requests to accept sockaddr instead of mbufs.

remove tcp_input copy in to mbuf from sockaddr and just copy to sockaddr
to make it possible for the transitional functions to go away.

no version bump since these functions only existed for a short time and
were commented as adapters (they appeared in 7.99.15).

Revision 1.58 / (download) - annotate - [select for diffs], Sat May 2 17:18:03 2015 UTC (8 years, 9 months ago) by rtr
Branch: MAIN
Changes since 1.57: +3 -2 lines
Diff to previous 1.57 (colored)

make connect syscall use sockaddr_big and modify pr_{send,connect}
nam parameter type from buf * to sockaddr *.

final commit for parameter type changes to protocol user requests

* bump kernel version to 7.99.15 for parameter type changes to pr_{send,connect}

Revision 1.57 / (download) - annotate - [select for diffs], Fri Apr 24 22:32:37 2015 UTC (8 years, 10 months ago) by rtr
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

make accept, getsockname and getpeername syscalls use sockaddr_big and modify
pr_{accept,sockname,peername} nam parameter type from mbuf * to sockaddr *.

* retained use of mbuftypes[MT_SONAME] for now.
* bump to netbsd version 7.99.12 for parameter type change.

patch posted to tech-net@ 2015/04/19

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:23 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Sync with HEAD

Revision 1.56 / (download) - annotate - [select for diffs], Fri Apr 3 20:01:07 2015 UTC (8 years, 10 months ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

* change pr_bind to accept struct sockaddr * instead of struct mbuf *
* update protocol bind implementations to use/expect sockaddr *
  instead of mbuf *
* introduce sockaddr_big struct for storage of addr data passed via
  sys_bind; sockaddr_big is of sufficient size and alignment to
  accommodate all addr data sizes received.
* modify sys_bind to allocate sockaddr_big instead of using an mbuf.
* bump kernel version to 7.99.9 for change to pr_bind() parameter type.

Patch posted to tech-net@
  http://mail-index.netbsd.org/tech-net/2015/03/15/msg005004.html

The choice to use a new structure sockaddr_big has been retained since
changing sockaddr_storage size would lead to unnecessary ABI change. The
use of the new structure does not preclude future work that increases
the size of sockaddr_storage and at that time sockaddr_big may be
trivially replaced.

Tested by mrg@ and myself, discussed with rmind@, posted to tech-net@

Revision 1.55 / (download) - annotate - [select for diffs], Tue Nov 25 15:04:37 2014 UTC (9 years, 3 months ago) by seanb
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.54: +2 -1 lines
Diff to previous 1.54 (colored)

Clean up any dangling ifp references in (struct in6pcb *)->in6p_v4moptions
(v4 multicast options off v4 mapped v6 socket) on interface destruction.  The
code to clean this up in a true v4 socket was moved to its own function
which is now also called in the corresponding place for v6 sockets on
interface destruction.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:35 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.50: +17 -16 lines
Diff to previous 1.50 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.51.6.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:25 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.51: +1 -3 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Rebase.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Aug 5 05:24:26 2014 UTC (9 years, 6 months ago) by rtr
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.53: +1 -1 lines
Diff to previous 1.53 (colored)

revert the removal of struct lwp * parameter from bind, listen and connect
user requests.

this should resolve the issue relating to nfs client hangs presented
recently by wiz on current-users@

Revision 1.53 / (download) - annotate - [select for diffs], Thu Jul 24 15:12:03 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

split PRU_BIND and PRU_LISTEN function out of pr_generic() usrreq
switches and put into separate functions
  xxx_bind(struct socket *, struct mbuf *)
  xxx_listen(struct socket *)

  - always KASSERT(solocked(so)) even if not implemented

  - replace calls to pr_generic() with req = PRU_BIND with call to
    pr_bind()

  - replace calls to pr_generic() with req = PRU_LISTEN with call to
    pr_listen()

  - drop struct lwp * parameter from at_pcbsetaddr(), in_pcbbind() and
    unp_bind() and always use curlwp.

rename existing functions that operate on PCB for consistency (and to
free up their names for xxx_{bind,listen}() PRUs

  - l2cap_{bind,listen}() -> l2cap_{bind,listen}_pcb()
  - sco_{bind,listen}() -> sco_{bind,listen}_pcb()
  - rfcomm_{bind,listen}() -> rfcomm_{bind,listen}_pcb()

patch reviewed by rmind

welcome to netbsd 6.99.48

Revision 1.52 / (download) - annotate - [select for diffs], Thu May 22 22:01:12 2014 UTC (9 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.51: +1 -3 lines
Diff to previous 1.51 (colored)

- Add in_init() and move some functions, variables and sysctls into in.c
  where they belong to.  Make some functions and variables static.
- ip_input.c: reduce some #ifdefs, cleanup a little.
- Move some sysctls into ip_flow.c as they belong there.

No functional change.

Revision 1.49.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:09 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.49.2.1: +17 -14 lines
Diff to previous 1.49.2.1 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.51.2.3 / (download) - annotate - [select for diffs], Sun May 18 17:46:13 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.51.2.2: +4 -2 lines
Diff to previous 1.51.2.2 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

sync with head

Revision 1.51.2.2 / (download) - annotate - [select for diffs], Mon Sep 23 00:57:53 2013 UTC (10 years, 5 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.51.2.1: +5 -5 lines
Diff to previous 1.51.2.1 (colored) to branchpoint 1.51 (colored)

- Add some initial locking to the IPv4 PCB.
- Rename inpcb_lookup_*() routines to be more accurate and add comments.
- Add some comments about connection life-cycle WRT socket layer.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Wed Jul 17 03:16:31 2013 UTC (10 years, 7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.51: +134 -49 lines
Diff to previous 1.51 (colored)

Checkpoint work in progress:
- Move PCB structures under __INPCB_PRIVATE, adjust most of the callers
  and thus make IPv4 PCB structures mostly opaque.  Any volunteers for
  merging in6pcb with inpcb (see rpaulo-netinet-merge-pcb branch)?
- Move various global vars to the modules where they belong, make them static.
- Some preliminary work for IPv4 PCB locking scheme.
- Make raw IP code mostly MP-safe.  Simplify some of it.
- Rework "fast" IP forwarding (ipflow) code to be mostly MP-safe.  It should
  run from a software interrupt, rather than hard.
- Rework tun(4) pseudo interface to be MP-safe.
- Work towards making some other interfaces more strict.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jun 27 19:38:16 2013 UTC (10 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: tls-earlyentropy, rmind-smpnet
Changes since 1.50: +17 -14 lines
Diff to previous 1.50 (colored)

implement IP_PKTINFO and IP_RECVPKTINFO.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:46 2012 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

sync with head

Revision 1.50 / (download) - annotate - [select for diffs], Mon Jun 25 15:28:39 2012 UTC (11 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

rename rfc6056 -> portalgo, requested by yamt

Revision 1.49 / (download) - annotate - [select for diffs], Sat Sep 24 17:18:17 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.48: +3 -1 lines
Diff to previous 1.48 (colored)

Add inet4 part of the rfc6056 code contributed by Vlad Balan as part of
Google SoC-2011

Revision 1.47.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:55 2011 UTC (12 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.47: +4 -3 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Sync with HEAD.

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Tue May 31 03:05:07 2011 UTC (12 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.47: +4 -3 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

sync with head

Revision 1.48 / (download) - annotate - [select for diffs], Tue May 3 18:28:45 2011 UTC (12 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.47: +4 -3 lines
Diff to previous 1.47 (colored)

Reduces the resources demanded by TCP sessions in TIME_WAIT-state using
methods called Vestigial Time-Wait (VTW) and Maximum Segment Lifetime
Truncation (MSLT).

MSLT and VTW were contributed by Coyote Point Systems, Inc.

Even after a TCP session enters the TIME_WAIT state, its corresponding
socket and protocol control blocks (PCBs) stick around until the TCP
Maximum Segment Lifetime (MSL) expires.  On a host whose workload
necessarily creates and closes down many TCP sockets, the sockets & PCBs
for TCP sessions in TIME_WAIT state amount to many megabytes of dead
weight in RAM.

Maximum Segment Lifetimes Truncation (MSLT) assigns each TCP session to
a class based on the nearness of the peer.  Corresponding to each class
is an MSL, and a session uses the MSL of its class.  The classes are
loopback (local host equals remote host), local (local host and remote
host are on the same link/subnet), and remote (local host and remote
host communicate via one or more gateways).  Classes corresponding to
nearer peers have lower MSLs by default: 2 seconds for loopback, 10
seconds for local, 60 seconds for remote.  Loopback and local sessions
expire more quickly when MSLT is used.

Vestigial Time-Wait (VTW) replaces a TIME_WAIT session's PCB/socket
dead weight with a compact representation of the session, called a
"vestigial PCB".  VTW data structures are designed to be very fast and
memory-efficient: for fast insertion and lookup of vestigial PCBs,
the PCBs are stored in a hash table that is designed to minimize the
number of cacheline visits per lookup/insertion.  The memory both
for vestigial PCBs and for elements of the PCB hashtable come from
fixed-size pools, and linked data structures exploit this to conserve
memory by representing references with a narrow index/offset from the
start of a pool instead of a pointer.  When space for new vestigial PCBs
runs out, VTW makes room by discarding old vestigial PCBs, oldest first.
VTW cooperates with MSLT.

It may help to think of VTW as a "FIN cache" by analogy to the SYN
cache.

A 2.8-GHz Pentium 4 running a test workload that creates TIME_WAIT
sessions as fast as it can is approximately 17% idle when VTW is active
versus 0% idle when VTW is inactive.  It has 103 megabytes more free RAM
when VTW is active (approximately 64k vestigial PCBs are created) than
when it is inactive.

Revision 1.45.10.2 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:24 2009 UTC (14 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.45.10.1: +2 -1 lines
Diff to previous 1.45.10.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

sync with head.

Revision 1.45.24.1 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:48 2009 UTC (14 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.45: +5 -3 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Sync with HEAD.

Revision 1.45.10.1 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:25 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.45: +4 -3 lines
Diff to previous 1.45 (colored)

sync with head.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jul 17 22:02:54 2009 UTC (14 years, 7 months ago) by minskim
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (colored)

Add the IP_MINTTL socket option.

The IP_MINTTL option may be used on SOCK_STREAM sockets to discard
packets with a TTL lower than the option value.  This can be used to
implement the Generalized TTL Security Mechanism (GTSM) according to
RFC 3682.

OK'ed by christos@.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jul 16 04:09:51 2009 UTC (14 years, 7 months ago) by minskim
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6
Changes since 1.45: +4 -3 lines
Diff to previous 1.45 (colored)

Add the IP_RECVTTL option support.

If the IP_RECVTTL option is enabled on a SOCK_DGRAM socket, the
recvmsg(2) call will return the TTL of the received datagram.  The
msg_control field in the msghdr structure points to a buffer that
contains a cmsghdr structure followed by the TTL value.

Modeled after FreeBSD implementation.

Revision 1.43.8.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:38 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.43: +1 -1 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Dec 16 18:39:57 2007 UTC (16 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, vmlocking2-base3, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, jym-xensuspend
Changes since 1.44: +1 -2 lines
Diff to previous 1.44 (colored)

Oops. Remove kauth.h inclusion.

Pointed out by gdt@, thanks.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Dec 16 14:12:34 2007 UTC (16 years, 2 months ago) by elad
Branch: MAIN
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored)

Really fix low port allocation, by always passing a valid lwp to
in_pcbbind().

Okay dyoung@.

Note that the network code is another candidate for major cleanup... also
note that this issue is likely to be present in netinet6 code, too.

Revision 1.42.30.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:47 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.42: +8 -1 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

sync with HEAD

Revision 1.39.6.3 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:07 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.39.6.2: +8 -1 lines
Diff to previous 1.39.6.2 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

sync with head.

Revision 1.42.14.1 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:48 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.42: +8 -1 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Sync with head.

Revision 1.42.28.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:18 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.42: +8 -1 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Sync with HEAD.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Sep 19 04:33:43 2007 UTC (16 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, mjf-devfs, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-merge1, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2
Changes since 1.42: +8 -1 lines
Diff to previous 1.42 (colored)

1) Introduce a new socket option, (SOL_SOCKET, SO_NOHEADER), that
   tells a socket that it should both add a protocol header to tx'd
   datagrams and remove the header from rx'd datagrams:

        int onoff = 1, s = socket(...);
        setsockopt(s, SOL_SOCKET, SO_NOHEADER, &onoff);

2) Add an implementation of (SOL_SOCKET, SO_NOHEADER) for raw IPv4
   sockets.

3) Reorganize the protocols' pr_ctloutput implementations a bit.
   Consistently return ENOPROTOOPT when an option is unsupported,
   and EINVAL if a supported option's arguments are incorrect.
   Reorganize the flow of code so that it's more clear how/when
   options are passed down the stack until they are handled.

   Shorten some pr_ctloutput staircases for readability.

4) Extract common mbuf code into subroutines, add new sockaddr
   methods, and introduce a new subroutine, fsocreate(), for reuse
   later; use it first in sys_socket():

struct mbuf *m_getsombuf(struct socket *so)

        Create an mbuf and make its owner the socket `so'.

struct mbuf *m_intopt(struct socket *so, int val)

        Create an mbuf, make its owner the socket `so', put the
        int `val' into it, and set its length to sizeof(int).


int fsocreate(..., int *fd)

        Create a socket, a la socreate(9), put the socket into the
        given LWP's descriptor table, return the descriptor at `fd'
        on success.

void *sockaddr_addr(struct sockaddr *sa, socklen_t *slenp)
const void *sockaddr_const_addr(const struct sockaddr *sa, socklen_t *slenp)

        Extract a pointer to the address part of a sockaddr.  Write
        the length of the address  part at `slenp', if `slenp' is
        not NULL.

socklen_t sockaddr_getlen(const struct sockaddr *sa)

        Return the length of a sockaddr.  This just evaluates to
        sa->sa_len.  I only add this for consistency with code that
        appears in a portable userland library that I am going to
        import.

const struct sockaddr *sockaddr_any(const struct sockaddr *sa)

        Return the "don't care" sockaddr in the same family as
        `sa'.  This is the address a client should sobind(9) if it
        does not care the source address and, if applicable, the
        port et cetera that it uses.

const void *sockaddr_anyaddr(const struct sockaddr *sa, socklen_t *slenp)

        Return the "don't care" sockaddr in the same family as
        `sa'.  This is the address a client should sobind(9) if it
        does not care the source address and, if applicable, the
        port et cetera that it uses.

Revision 1.39.6.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:33 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.39.6.1: +3 -3 lines
Diff to previous 1.39.6.1 (colored) to branchpoint 1.39 (colored)

sync with head.

Revision 1.41.4.8 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:47 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.41.4.7: +3 -3 lines
Diff to previous 1.41.4.7 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

sync with head

Revision 1.41.8.1 / (download) - annotate - [select for diffs], Fri Aug 11 15:46:33 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

sync with head

Revision 1.42 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:13 2006 UTC (17 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, rpaulo-netinet-merge-pcb-base, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, hpcarm-cleanup, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: vmlocking, matt-armv6, jmcneill-pm
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Use the LWP cached credentials where sane.

Revision 1.39.6.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:11:01 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

sync with head.

Revision 1.41.4.7 / (download) - annotate - [select for diffs], Fri Feb 10 19:28:39 2006 UTC (18 years ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.41.4.6: +37 -9 lines
Diff to previous 1.41.4.6 (colored) to branchpoint 1.41 (colored)

* move IN6_HASH() to ifdef INET6
* introduce INP_SOCKAF() from FreeBSD
* add IN{,6}PCBHASH_{CONNECT,PORT,BIND} from in6_pcb.c and in_pcb.c

Revision 1.41.4.6 / (download) - annotate - [select for diffs], Tue Feb 7 06:32:04 2006 UTC (18 years ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.41.4.5: +18 -1 lines
Diff to previous 1.41.4.5 (colored) to branchpoint 1.41 (colored)

Add FreeBSD's locking defines (currently defined to nothing) and a
'struct lock' inside 'struct inpcb'.

Revision 1.41.4.5 / (download) - annotate - [select for diffs], Tue Feb 7 06:21:31 2006 UTC (18 years ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.41.4.4: +2 -2 lines
Diff to previous 1.41.4.4 (colored) to branchpoint 1.41 (colored)

Fix wrong indentation.

Revision 1.41.4.4 / (download) - annotate - [select for diffs], Sun Feb 5 03:01:32 2006 UTC (18 years ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.41.4.3: +1 -4 lines
Diff to previous 1.41.4.3 (colored) to branchpoint 1.41 (colored)

Remove 'inp_options' and 'in6p_options' define.

Revision 1.41.4.3 / (download) - annotate - [select for diffs], Sat Feb 4 03:26:27 2006 UTC (18 years ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.41.4.2: +2 -3 lines
Diff to previous 1.41.4.2 (colored) to branchpoint 1.41 (colored)

struct mbuf can be shared between in4p_depend and in6p_depend.

Revision 1.41.4.2 / (download) - annotate - [select for diffs], Sat Feb 4 03:24:01 2006 UTC (18 years ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.41.4.1: +6 -1 lines
Diff to previous 1.41.4.1 (colored) to branchpoint 1.41 (colored)

Add IN6P_{ATTACHED,BOUND,CONNECTED} for KAME src compatibility.

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Wed Feb 1 23:55:47 2006 UTC (18 years ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.41: +229 -25 lines
Diff to previous 1.41 (colored)

Merge in6pcb with inpcb and remove inpcb_hdr since that's no longer needed.

Revision 1.33.2.5 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:24 2005 UTC (18 years, 2 months ago) by christos
Branch: ktrace-lwp
Changes since 1.33.2.4: +3 -3 lines
Diff to previous 1.33.2.4 (colored) next main 1.34 (colored)

Sync with head.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Dec 10 23:36:23 2005 UTC (18 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, ktrace-lwp-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Multiple inclusion protection, as suggested by christos@ on tech-kern@
few days ago.

Revision 1.39.12.1 / (download) - annotate - [select for diffs], Tue Nov 22 16:08:21 2005 UTC (18 years, 3 months ago) by yamt
Branch: yamt-readahead
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

sync with head.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Nov 15 18:39:46 2005 UTC (18 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-readahead-base3, yamt-readahead-base2
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Pass the current process structure to in_pcbconnect() so that it can
pass it to in_pcbbind() so that can allocate a low numbered port
if setsockopt() has been used to set IP_PORTRANGE to IP_PORTRANGE_LOW.
While there, fail in_pcbconnect() if the in_pcbbind() fails - rather
than sending the request out from a port of zero.
This has been largely broken since the socket option was added in 1998.

Revision 1.38.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:33 2005 UTC (18 years, 10 months ago) by kent
Branch: kent-audio2
Changes since 1.38: +5 -1 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

sync with -current

Revision 1.33.2.4 / (download) - annotate - [select for diffs], Tue Feb 15 21:33:39 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.3: +5 -1 lines
Diff to previous 1.33.2.3 (colored)

Sync with HEAD.

Revision 1.38.6.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:54 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.38: +5 -1 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

sync with head.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Feb 12 12:31:07 2005 UTC (19 years ago) by manu
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base, yamt-km-base4, yamt-km-base3, yamt-km-base2, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Branch point for: yamt-readahead, yamt-lazymbuf
Changes since 1.38: +5 -1 lines
Diff to previous 1.38 (colored)

Add support for IPsec Network Address Translator traversal (NAT-T), as
described by RFC 3947 and 3948.

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:37:11 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.2: +1 -1 lines
Diff to previous 1.33.2.2 (colored)

Fix the sync with head I botched.

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:53 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.1: +0 -0 lines
Diff to previous 1.33.2.1 (colored)

Sync with HEAD.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:36 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33: +41 -62 lines
Diff to previous 1.33 (colored)

Sync with HEAD

Revision 1.38 / (download) - annotate - [select for diffs], Wed Apr 21 17:49:46 2004 UTC (19 years, 10 months ago) by itojun
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1, BEFORE-IPF413
Branch point for: yamt-km, kent-audio2
Changes since 1.37: +21 -21 lines
Diff to previous 1.37 (colored)

no space between function name and paren: foo (blah) -> foo(blah)

Revision 1.37 / (download) - annotate - [select for diffs], Sun Apr 18 21:00:35 2004 UTC (19 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.36: +27 -27 lines
Diff to previous 1.36 (colored)

De __P()

Revision 1.36 / (download) - annotate - [select for diffs], Thu Oct 23 20:55:08 2003 UTC (20 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, BEFORE-IPF411
Changes since 1.35: +1 -3 lines
Diff to previous 1.35 (colored)

Remove all the code to maintain ia_inpcbs.  This information was only used to
close sockets on address changes, which was deemed to be a bad idea and was
summarily removed, so there is no point in wasting effort on maintaining it
any more.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Sep 4 09:16:58 2003 UTC (20 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.34: +16 -31 lines
Diff to previous 1.34 (colored)

revamp inpcb/in6pcb so that they are more aligned with each other.
in6pcb lookup now uses hash(9).

Revision 1.34 / (download) - annotate - [select for diffs], Thu Aug 7 16:33:10 2003 UTC (20 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.33: +2 -6 lines
Diff to previous 1.33 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jun 15 02:49:33 2003 UTC (20 years, 8 months ago) by matt
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored)

Change the way multicasts are kept.  They now use a hash table in the same
manner as the ifaddr hash table.  By doing this, the mkludge code can go
away.  At the same time, keep track of what pcbs are using what ifaddr and
when an address is deleted from an interface, notify/abort all sockets
that have that address as a source.  Switch IGMP and multicasts to use pools
for allocation.  Fix a number of potential problems in the igmp code where
allocation failures could cause a trap/panic.

Revision 1.29.6.3 / (download) - annotate - [select for diffs], Mon Nov 11 22:15:17 2002 UTC (21 years, 3 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.29.6.2: +3 -4 lines
Diff to previous 1.29.6.2 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

Catch up to -current

Revision 1.32 / (download) - annotate - [select for diffs], Sat Nov 2 19:03:44 2002 UTC (21 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.31: +3 -4 lines
Diff to previous 1.31 (colored)

cleanup ipsec.h dependency.  commented by perry, sync w/kame

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Sun Jun 23 17:50:44 2002 UTC (21 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

catch up with -current on kqueue branch

Revision 1.30.14.1 / (download) - annotate - [select for diffs], Thu Jun 20 15:52:16 2002 UTC (21 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

catch up with -current.

Revision 1.29.6.2 / (download) - annotate - [select for diffs], Thu Jun 20 03:48:35 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.29.6.1: +3 -3 lines
Diff to previous 1.29.6.1 (colored) to branchpoint 1.29 (colored)

Catch up to -current.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jun 9 16:33:38 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gehenna-devsw-base
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

whitespace

Revision 1.29.6.1 / (download) - annotate - [select for diffs], Fri Aug 24 00:12:25 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

Catch up with -current.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jul 2 15:25:35 2001 UTC (22 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: kqueue, gehenna-devsw
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

on interface removal, remove multicast groups joined from pcb, before
removing interface addresses.  without the change, we may deref
NULL pointer in in_pcbpurgeif().  from jinmei@kame, sync with kame

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:10:23 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27: +3 -4 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.29 / (download) - annotate - [select for diffs], Wed Feb 2 23:28:09 2000 UTC (24 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, chs-ubc2-newbase
Branch point for: nathanw_sa
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

PRU_PURGEADDR -> PRU_PURGEIF, per a discussion w/ itojun.  In the IPv4
and IPv6 code, also use this to traverse PCB tables, looking for cached
routes referencing the dying ifnet, forcing them to be refreshed.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jan 31 14:18:53 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.27: +2 -4 lines
Diff to previous 1.27 (colored)

bring in latest KAME ipsec tree.
- interop issues in ipcomp is fixed
- padding type (after ESP) is configurable
- key database memory management (need more fixes)
- policy specification is revisited

XXX m->m_pkthdr.rcvif is still overloaded - hope to fix it soon

Revision 1.26.10.2 / (download) - annotate - [select for diffs], Tue Nov 30 13:35:26 1999 UTC (24 years, 3 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.26.10.1: +1 -3 lines
Diff to previous 1.26.10.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)

bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.26.8.1 / (download) - annotate - [select for diffs], Thu Jul 1 23:47:00 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.26: +40 -1 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync w/ -current.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jul 1 08:12:50 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.26: +40 -1 lines
Diff to previous 1.26 (colored)

IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628.
(Sorry for a big commit, I can't separate this into several pieces...)
Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.

- sys/kern: do not assume single mbuf, accept chained mbuf on passing
  data from userland to kernel (or other way round).
- "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ
  package (ftp://ftp.csl.sony.co.jp/pub/kjc/).
- sys/netinet/tcp*: IPv4/v6 dual stack tcp support.
- sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those
  file to be there so we patch it up.
- sys/netinet: IPsec additions are here and there.
- sys/netinet6/*: most of IPv6 code sits here.
- sys/netkey: IPsec key management code
- dev/pci/pcidevs: regen

In my understanding no code here is subject to export control so it
should be safe.

Revision 1.26.10.1 / (download) - annotate - [select for diffs], Mon Jun 28 06:36:59 1999 UTC (24 years, 8 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990705, kame_14_19990628
Changes since 1.26: +40 -1 lines
Diff to previous 1.26 (colored)

KAME/NetBSD 1.4 SNAP kit, dated 19990628.

NOTE: this branch (kame) is used just for refernce.  this may not compile
due to multiple reasons.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Oct 5 14:33:14 1998 UTC (25 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Branch point for: kame, chs-ubc2
Changes since 1.25: +1 -3 lines
Diff to previous 1.25 (colored)

* in_pcblookup_port(): deprecate INPLOOKUP_WILDCARD and flags in favour
  of a lookup_wildcard arg; simplifies the logic a bit.
* when assigning ephemeral ports in in_pcbbind(), always call
  in_pcblookup_port() with lookup_wildcard=1, so that ephemeral port
  allocation on sockets with SO_REUSEADDR set won't potentially bind to a
  port in use by something else (principle of least surprise).

Revision 1.25 / (download) - annotate - [select for diffs], Mon May 18 17:10:37 1998 UTC (25 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Move the ppcb pointer towards the front of the structure so that it and the
pcb chain pointers can possibly be in the same cache line.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Feb 10 01:26:36 1998 UTC (26 years ago) by perry
Branch: MAIN
Changes since 1.23: +6 -1 lines
Diff to previous 1.23 (colored)

add/cleanup multiple inclusion protection.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jan 7 22:51:24 1998 UTC (26 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.22: +6 -1 lines
Diff to previous 1.22 (colored)

add the following, derived from FreeBSD:
* IP_PORTRANGE socket option, which controls how the ephemeral ports
  are allocated. it takes the following settings:
	IP_PORTRANGE_DEFAULT	use anonportmin (49152) -> anonportmax (65535)
	IP_PORTRANGE_HIGH	as IP_PORTRANGE_DEFAULT (retained for FreeBSD
				compat reasons, where these are separate)
	IP_PORTRANGE_LOW	use 600 -> 1023. only works if uid==0.
* in_pcb flag INP_ANONPORT. set if port was allocated ephmerally

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Mon Jan 5 09:54:05 1998 UTC (26 years, 1 month ago) by thorpej
Branch: WFJ-920714, CSRG
CVS Tags: lite-2, lite-1, date-03-may-96
Changes since 1.1.1.1: +19 -22 lines
Diff to previous 1.1.1.1 (colored)

Import sys/netinet from 4.4BSD-Lite for reference purposes.

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Tue Oct 14 10:29:29 1997 UTC (26 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.20.2.1: +2 -1 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 14 00:52:45 1997 UTC (26 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Add support for returning maximum supported MTU when ip_output fails with
EMSGSIZE.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Mon Sep 29 07:21:18 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Sep 22 21:39:42 1997 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored)

Implement in_pcbrtentry() - return the route associated with a PCB.  If
one does not exist, attempt to allocate one.  This is mostly pulled from
tcp_input.c.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jul 23 21:26:44 1997 UTC (26 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp
Branch point for: marc-pcmcia
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Pull SYN_cache_branch down into the main line.

Revision 1.19.8.1 / (download) - annotate - [select for diffs], Wed May 14 17:00:56 1997 UTC (26 years, 9 months ago) by mellon
Branch: SYN_cache_branch
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Change return value for in_pcbnotify().

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 11 05:21:09 1997 UTC (27 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi, SYN_cache_cur_base
Branch point for: SYN_cache_branch
Changes since 1.18: +4 -2 lines
Diff to previous 1.18 (colored)

Implement the IP_RECVIF socket option: supply a datagram packet's incoming
interface using a sockaddr_dl in a control mbuf.

Implement SO_TIMESTAMP for IP datagrams.

Move packet information option processing into a generic function
so that they work with multicast UDP and raw IP as well as unicast UDP.

Contributed by Bill Fenner <fenner@parc.xerox.com>.

Revision 1.14.4.1 / (download) - annotate - [select for diffs], Wed Dec 11 04:01:02 1996 UTC (27 years, 2 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

From trunk:
Eliminate SS_PRIV; instead, pass down a proc pointer to the usrreq methods
that need it.
Fix numerous memory leaks and bogus return values.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Sep 17 17:10:20 1996 UTC (27 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Overlay inp_faddr and inp_laddr into the header prototype.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Sep 15 18:11:07 1996 UTC (27 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +30 -21 lines
Diff to previous 1.16 (colored)

Hash unconnected PCBs.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Sep 9 14:51:13 1996 UTC (27 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +8 -8 lines
Diff to previous 1.15 (colored)

Add in_nullhost() and in_hosteq() macros, to hide some protocol
details.  Also, fix a bug in TCP wrt SYN+URG packets.

Revision 1.15 / (download) - annotate - [select for diffs], Wed May 22 13:55:27 1996 UTC (27 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
PRU_CONTROL.  The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 13 23:42:00 1996 UTC (28 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.13: +11 -11 lines
Diff to previous 1.13 (colored)

netinet prototypes

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Fri Feb 2 06:12:50 1996 UTC (28 years, 1 month ago) by mycroft
Branch: netbsd-1-1
Changes since 1.12: +10 -3 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Bring in changes for mondo patch 2.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jan 31 03:49:30 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.12: +10 -3 lines
Diff to previous 1.12 (colored)

Build a hash table of PCBs.  Hash function needs tweaking.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jun 18 20:01:13 1995 UTC (28 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001
Branch point for: netbsd-1-1
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

convert pcb lists to CIRCLEQs, so that the end can be looked at more
easily, and so that the original (insque/remque) logic can be effectively
mimiced.  (This fixes a bug in the previous set of list changes.)
also (since terminator is no longer null) reinstate uninitted list checks,
but mark them XXX.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jun 12 06:49:56 1995 UTC (28 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

in_pcbnotify*() don't return anything.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 12 00:47:35 1995 UTC (28 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +17 -9 lines
Diff to previous 1.9 (colored)

Various cleanup, including:
* Convert several data structures to use queue.h.
* Split in_pcbnotify() into two parts; one for notifying a specific PCB, and
one for notifying all PCBs for a particular foreign address.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Apr 13 06:28:48 1995 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.8: +14 -14 lines
Diff to previous 1.8 (colored)

be a bit more careful and explicit with types.  (basically a large no-op.)

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 26 20:32:24 1995 UTC (28 years, 11 months ago) by jtc
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

KERNEL -> _KERNEL

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 29 06:38:08 1994 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.6 / (download) - annotate - [select for diffs], Fri May 13 06:06:10 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +19 -28 lines
Diff to previous 1.5 (colored)

Update to 4.4-Lite networking code, with a few local changes.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jan 8 21:21:41 1994 UTC (30 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Fix some inconsistent spacing; spaces at the end of lines, etc.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 8 23:46:31 1993 UTC (30 years, 2 months ago) by hpeyerl
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

More multicast stuff.
>From Chris Maeda, cmaeda@cs.washington.edu
These patches are derived from the IP Multicast patches for BSDI.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 03:50:06 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, magnum-base, magnum
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

more rcsid additions and file header cleanups

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 19 03:48:26 1993 UTC (30 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +5 -0 lines
Diff to previous 1.1 (colored)

Add consistent multiple-inclusion protection.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>