recv.c (1e2b44e78eead7bcadfbf96f70d95773191541c9) | recv.c (b7ff8b1036f0b0df1390ba6b5e9bc7ec458e857a) |
---|---|
1/* 2 * Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 778 unchanged lines hidden (view full) --- 787 minfo.lport = inc->i_hdr.h_sport; 788 minfo.fport = inc->i_hdr.h_dport; 789 } 790 791 minfo.flags = 0; 792 793 rds_info_copy(iter, &minfo, sizeof(minfo)); 794} | 1/* 2 * Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 778 unchanged lines hidden (view full) --- 787 minfo.lport = inc->i_hdr.h_sport; 788 minfo.fport = inc->i_hdr.h_dport; 789 } 790 791 minfo.flags = 0; 792 793 rds_info_copy(iter, &minfo, sizeof(minfo)); 794} |
795 796void rds6_inc_info_copy(struct rds_incoming *inc, 797 struct rds_info_iterator *iter, 798 struct in6_addr *saddr, struct in6_addr *daddr, 799 int flip) 800{ 801 struct rds6_info_message minfo6; 802 803 minfo6.seq = be64_to_cpu(inc->i_hdr.h_sequence); 804 minfo6.len = be32_to_cpu(inc->i_hdr.h_len); 805 806 if (flip) { 807 minfo6.laddr = *daddr; 808 minfo6.faddr = *saddr; 809 minfo6.lport = inc->i_hdr.h_dport; 810 minfo6.fport = inc->i_hdr.h_sport; 811 } else { 812 minfo6.laddr = *saddr; 813 minfo6.faddr = *daddr; 814 minfo6.lport = inc->i_hdr.h_sport; 815 minfo6.fport = inc->i_hdr.h_dport; 816 } 817 818 rds_info_copy(iter, &minfo6, sizeof(minfo6)); 819} |
|