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:   riastradh
Date:           Wed Jan 20 21:44:00 UTC 2016

Modified Files:
        src/sys/net: if_stf.c raw_cb.h raw_usrreq.c rtsock.c
        src/sys/netatalk: at_proto.c
        src/sys/netinet: if_arp.c in_gif.c in_proto.c ip_mroute.c
        src/sys/netinet6: in6_gif.c in6_proto.c ip6protosw.h
        src/sys/netipsec: keysock.c keysock.h xform_ipip.c
        src/sys/netnatm: natm_proto.c
        src/sys/sys: protosw.h

Log Message:
Eliminate struct protosw::pr_output.

You can't use this unless you know what it is a priori: the formal
prototype is variadic, and the different instances (e.g., ip_output,
route_output) have different real prototypes.

Convert the only user of it, raw_send in net/raw_cb.c, to take an
explicit callback argument.  Convert the only instances of it,
route_output and key_output, to such explicit callbacks for raw_send.
Use assertions to make sure the conversion to explicit callbacks is
warranted.

Discussed on tech-net with no objections:
https://mail-index.netbsd.org/tech-net/2016/01/16/msg005484.html


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/net/if_stf.c
cvs rdiff -u -r1.25 -r1.26 src/sys/net/raw_cb.h
cvs rdiff -u -r1.54 -r1.55 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.174 -r1.175 src/sys/net/rtsock.c
cvs rdiff -u -r1.18 -r1.19 src/sys/netatalk/at_proto.c
cvs rdiff -u -r1.199 -r1.200 src/sys/netinet/if_arp.c
cvs rdiff -u -r1.68 -r1.69 src/sys/netinet/in_gif.c
cvs rdiff -u -r1.115 -r1.116 src/sys/netinet/in_proto.c
cvs rdiff -u -r1.133 -r1.134 src/sys/netinet/ip_mroute.c
cvs rdiff -u -r1.65 -r1.66 src/sys/netinet6/in6_gif.c
cvs rdiff -u -r1.107 -r1.108 src/sys/netinet6/in6_proto.c
cvs rdiff -u -r1.22 -r1.23 src/sys/netinet6/ip6protosw.h
cvs rdiff -u -r1.48 -r1.49 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.7 -r1.8 src/sys/netipsec/keysock.h
cvs rdiff -u -r1.32 -r1.33 src/sys/netipsec/xform_ipip.c
cvs rdiff -u -r1.15 -r1.16 src/sys/netnatm/natm_proto.c
cvs rdiff -u -r1.65 -r1.66 src/sys/sys/protosw.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