PERFORCE change 128383 for review

Kip Macy kmacy at FreeBSD.org
Tue Oct 30 19:45:38 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=128383

Change 128383 by kmacy at kmacy:storage:toestack on 2007/10/31 02:44:53

	set the IP address when doing an active connect

Affected files ...

.. //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c#7 edit

Differences ...

==== //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c#7 (text+ko) ====

@@ -361,10 +361,9 @@
 	OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, atid));
 	req->local_port = inp->inp_lport;
 	req->peer_port = inp->inp_fport;
-#ifdef notyet	
-	req->local_ip = inp->inp_laddr;
-	req->peer_ip = inp->inp_faddr;
-#endif
+	memcpy(&req->local_ip, &inp->inp_laddr, 4);
+	memcpy(&req->peer_ip, &inp->inp_faddr, 4);
+
 	req->opt0h = htonl(calc_opt0h(so) | V_L2T_IDX(e->idx) |
 			   V_TX_CHANNEL(e->smt_idx));
 	req->opt0l = htonl(calc_opt0l(so));


More information about the p4-projects mailing list