Network.cc (9594:219ad5fe8c04) Network.cc (9860:7248fa3e6e0f)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 57 unchanged lines hidden (view full) ---

66{
67 m_data_msg_size = RubySystem::getBlockSizeBytes() + m_control_msg_size;
68}
69
70uint32_t
71Network::MessageSizeType_to_int(MessageSizeType size_type)
72{
73 switch(size_type) {
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 57 unchanged lines hidden (view full) ---

66{
67 m_data_msg_size = RubySystem::getBlockSizeBytes() + m_control_msg_size;
68}
69
70uint32_t
71Network::MessageSizeType_to_int(MessageSizeType size_type)
72{
73 switch(size_type) {
74 case MessageSizeType_Undefined:
75 panic("Can't convert Undefined MessageSizeType to integer");
76 break;
77 case MessageSizeType_Control:
78 case MessageSizeType_Request_Control:
79 case MessageSizeType_Reissue_Control:
80 case MessageSizeType_Response_Control:
81 case MessageSizeType_Writeback_Control:
82 case MessageSizeType_Broadcast_Control:
83 case MessageSizeType_Multicast_Control:
84 case MessageSizeType_Forwarded_Control:

--- 22 unchanged lines hidden ---
74 case MessageSizeType_Control:
75 case MessageSizeType_Request_Control:
76 case MessageSizeType_Reissue_Control:
77 case MessageSizeType_Response_Control:
78 case MessageSizeType_Writeback_Control:
79 case MessageSizeType_Broadcast_Control:
80 case MessageSizeType_Multicast_Control:
81 case MessageSizeType_Forwarded_Control:

--- 22 unchanged lines hidden ---