Source-Changes archive

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

CVS commit: syssrc



Module Name:    syssrc
Committed By:   itojun
Date:           Wed Mar  1 12:49:54 UTC 2000

Modified Files:
        syssrc/sys/kern: uipc_mbuf.c uipc_mbuf2.c
        syssrc/sys/netinet: igmp.c in_gif.c ip_fil.c ip_icmp.c ip_input.c
            ip_ipip.c ip_mroute.c ip_output.c raw_ip.c tcp_input.c tcp_output.c
            tcp_subr.c udp_usrreq.c
        syssrc/sys/netinet6: icmp6.c in6_gif.c ip6_output.c ipsec.c ipsec.h
            mld6.c nd6_nbr.c raw_ip6.c udp6_usrreq.c
        syssrc/sys/netiso: if_eon.c tp_inet.c
        syssrc/sys/netns: ns_ip.c
        syssrc/sys/sys: mbuf.h

Log Message:
introduce m->m_pkthdr.aux to hold random data which needs to be passed
between protocol handlers.

ipsec socket pointers, ipsec decryption/auth information, tunnel
decapsulation information are in my mind - there can be several other usage.
at this moment, we use this for ipsec socket pointer passing.  this will
avoid reuse of m->m_pkthdr.rcvif in ipsec code.

due to the change, MHLEN will be decreased by sizeof(void *) - for example,
for i386, MHLEN was 100 bytes, but is now 96 bytes.
we may want to increase MSIZE from 128 to 256 for some of our architectures.

take caution if you use it for keeping some data item for long period
of time - use extra caution on M_PREPEND() or m_adj(), as they may result
in loss of m->m_pkthdr.aux pointer (and mbuf leak).

this will bump kernel version.

(as discussed in tech-net, tested in kame tree)


To generate a diff of this commit:
cvs rdiff -r1.44 -r1.45 syssrc/sys/kern/uipc_mbuf.c
cvs rdiff -r1.3 -r1.4 syssrc/sys/kern/uipc_mbuf2.c
cvs rdiff -r1.22 -r1.23 syssrc/sys/netinet/igmp.c
cvs rdiff -r1.9 -r1.10 syssrc/sys/netinet/in_gif.c
cvs rdiff -r1.42 -r1.43 syssrc/sys/netinet/ip_fil.c \
    syssrc/sys/netinet/ip_icmp.c
cvs rdiff -r1.102 -r1.103 syssrc/sys/netinet/ip_input.c
cvs rdiff -r1.8 -r1.9 syssrc/sys/netinet/ip_ipip.c
cvs rdiff -r1.45 -r1.46 syssrc/sys/netinet/ip_mroute.c
cvs rdiff -r1.68 -r1.69 syssrc/sys/netinet/ip_output.c
cvs rdiff -r1.51 -r1.52 syssrc/sys/netinet/raw_ip.c
cvs rdiff -r1.104 -r1.105 syssrc/sys/netinet/tcp_input.c
cvs rdiff -r1.54 -r1.55 syssrc/sys/netinet/tcp_output.c
cvs rdiff -r1.88 -r1.89 syssrc/sys/netinet/tcp_subr.c
cvs rdiff -r1.62 -r1.63 syssrc/sys/netinet/udp_usrreq.c
cvs rdiff -r1.25 -r1.26 syssrc/sys/netinet6/icmp6.c \
    syssrc/sys/netinet6/udp6_usrreq.c
cvs rdiff -r1.12 -r1.13 syssrc/sys/netinet6/in6_gif.c
cvs rdiff -r1.16 -r1.17 syssrc/sys/netinet6/ip6_output.c
cvs rdiff -r1.17 -r1.18 syssrc/sys/netinet6/ipsec.c \
    syssrc/sys/netinet6/nd6_nbr.c
cvs rdiff -r1.11 -r1.12 syssrc/sys/netinet6/ipsec.h \
    syssrc/sys/netinet6/mld6.c
cvs rdiff -r1.21 -r1.22 syssrc/sys/netinet6/raw_ip6.c
cvs rdiff -r1.27 -r1.28 syssrc/sys/netiso/if_eon.c
cvs rdiff -r1.17 -r1.18 syssrc/sys/netiso/tp_inet.c
cvs rdiff -r1.24 -r1.25 syssrc/sys/netns/ns_ip.c
cvs rdiff -r1.48 -r1.49 syssrc/sys/sys/mbuf.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