Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   ozaki-r
Date:           Fri Oct 28 05:18:39 UTC 2022

Modified Files:
        src/sys/netinet: in_pcb.c in_pcb.h ip_output.c portalgo.c portalgo.h
            raw_ip.c tcp_input.c tcp_output.c tcp_subr.c tcp_syncache.c
            tcp_timer.c tcp_usrreq.c tcp_var.h tcp_vtw.c udp_usrreq.c
        src/sys/netinet6: icmp6.c in6_pcb.c in6_pcb.h in6_src.c ip6_input.c
            ip6_output.c ip6_var.h raw_ip6.c udp6_usrreq.c udp6_var.h
        src/sys/netipsec: ipsec.c ipsec.h ipsec6.h

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.192 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.70 -r1.71 src/sys/netinet/in_pcb.h
cvs rdiff -u -r1.320 -r1.321 src/sys/netinet/ip_output.c
cvs rdiff -u -r1.11 -r1.12 src/sys/netinet/portalgo.c
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet/portalgo.h \
    src/sys/netinet/tcp_syncache.c
cvs rdiff -u -r1.181 -r1.182 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.434 -r1.435 src/sys/netinet/tcp_input.c
cvs rdiff -u -r1.214 -r1.215 src/sys/netinet/tcp_output.c
cvs rdiff -u -r1.291 -r1.292 src/sys/netinet/tcp_subr.c
cvs rdiff -u -r1.96 -r1.97 src/sys/netinet/tcp_timer.c
cvs rdiff -u -r1.232 -r1.233 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.197 -r1.198 src/sys/netinet/tcp_var.h
cvs rdiff -u -r1.21 -r1.22 src/sys/netinet/tcp_vtw.c
cvs rdiff -u -r1.261 -r1.262 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.252 -r1.253 src/sys/netinet6/icmp6.c
cvs rdiff -u -r1.171 -r1.172 src/sys/netinet6/in6_pcb.c
cvs rdiff -u -r1.53 -r1.54 src/sys/netinet6/in6_pcb.h
cvs rdiff -u -r1.88 -r1.89 src/sys/netinet6/in6_src.c
cvs rdiff -u -r1.226 -r1.227 src/sys/netinet6/ip6_input.c
cvs rdiff -u -r1.229 -r1.230 src/sys/netinet6/ip6_output.c
cvs rdiff -u -r1.92 -r1.93 src/sys/netinet6/ip6_var.h
cvs rdiff -u -r1.178 -r1.179 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.150 -r1.151 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.30 -r1.31 src/sys/netinet6/udp6_var.h
cvs rdiff -u -r1.173 -r1.174 src/sys/netipsec/ipsec.c
cvs rdiff -u -r1.91 -r1.92 src/sys/netipsec/ipsec.h
cvs rdiff -u -r1.30 -r1.31 src/sys/netipsec/ipsec6.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index