summaryrefslogtreecommitdiffstats
path: root/sys/netipx/spx.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-05-25 11:50:58 +0000
committerrwatson <rwatson@FreeBSD.org>2009-05-25 11:50:58 +0000
commit4fabf30357d7af0989b425e3954d9fdaa2a74e39 (patch)
tree817bde8815924bccf9b571d23b28dcc678ddc0a3 /sys/netipx/spx.h
parentf10db480e16bda328e69f9a8efbdc5b9fe325236 (diff)
downloadFreeBSD-src-4fabf30357d7af0989b425e3954d9fdaa2a74e39.zip
FreeBSD-src-4fabf30357d7af0989b425e3954d9fdaa2a74e39.tar.gz
Rather than store a skeleton IPX header in an mbuf hung off the SPX
PCB, simply embed it in the PCB, avoiding additional memory overhead, memory allocation overhead, and removing one of the few remaining uses of dtom() in the network stack. Restore misplaced spx_ctlinput() from an earlier commit. MFC after: 1 month
Diffstat (limited to 'sys/netipx/spx.h')
-rw-r--r--sys/netipx/spx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netipx/spx.h b/sys/netipx/spx.h
index 044b6d4..2f4d210 100644
--- a/sys/netipx/spx.h
+++ b/sys/netipx/spx.h
@@ -129,7 +129,7 @@ struct spxpcb {
u_short s_mtu; /* Max packet size for this stream */
/* use sequence fields in headers to store sequence numbers for this
connection */
- struct ipx *s_ipx;
+ struct ipx s_ipx;
struct spxhdr s_shdr; /* prototype header to transmit */
#define s_cc s_shdr.spx_cc /* connection control (for EM bit) */
#define s_dt s_shdr.spx_dt /* datastream type */
@@ -138,7 +138,7 @@ struct spxpcb {
#define s_seq s_shdr.spx_seq /* sequence number */
#define s_ack s_shdr.spx_ack /* acknowledge number */
#define s_alo s_shdr.spx_alo /* allocation number */
-#define s_dport s_ipx->ipx_dna.x_port /* where we are sending */
+#define s_dport s_ipx.ipx_dna.x_port /* where we are sending */
struct spxhdr s_rhdr; /* last received header (in effect!)*/
u_short s_rack; /* their acknowledge number */
u_short s_ralo; /* their allocation number */
OpenPOWER on IntegriCloud