ncp patch

Alexey Slynko slynko at tronet.ru
Fri Jan 20 09:52:30 PST 2006


Hi,

1) Swap m_getm arguments to correct order
Index: ./netproto/ncp/ncp_rq.c
===================================================================
RCS file: /mnt/share/dragonfly-cvs/src/sys/netproto/ncp/ncp_rq.c,v
retrieving revision 1.9
diff -u -r1.9 ncp_rq.c
--- ./netproto/ncp/ncp_rq.c	14 Jan 2006 13:36:40 -0000	1.9
+++ ./netproto/ncp/ncp_rq.c	20 Jan 2006 17:45:15 -0000
@@ -158,7 +158,7 @@
 		m->m_len += cplen;
 	}
 	if (size) {
-		m_getm(m, size, MT_DATA, MB_WAIT);
+		m_getm(m, size, MB_WAIT, MT_DATA);
 		while (size > 0){
 			m = m->m_next;
 			cplen = min(size, M_TRAILINGSPACE(m));
@@ -191,7 +191,7 @@
 		m->m_len += cplen;
 	}
 	if (size) {
-		m_getm(m, size, MT_DATA, MB_WAIT);
+		m_getm(m, size, MB_WAIT, MT_DATA);
 		while (size > 0){
 			m = m->m_next;
 			cplen = min(size, M_TRAILINGSPACE(m));




More information about the Submit mailing list