inet.cc (2665:a124942bacb8) inet.cc (5782:ff12aefd2cc2)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
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;

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

201 vec.push_back(RangeIn(ntohs(sack[0]), ntohs(sack[1])));
202 all -= len;
203 data += len;
204 }
205
206 return false;
207}
208
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
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;

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

201 vec.push_back(RangeIn(ntohs(sack[0]), ntohs(sack[1])));
202 all -= len;
203 data += len;
204 }
205
206 return false;
207}
208
209int
210hsplit(const EthPacketPtr &ptr)
211{
212 int split_point = 0;
213
214 IpPtr ip(ptr);
215 if (ip) {
216 split_point = ip.pstart();
217
218 TcpPtr tcp(ip);
219 if (tcp)
220 split_point = tcp.pstart();
221
222 UdpPtr udp(ip);
223 if (udp)
224 split_point = udp.pstart();
225 }
226 return split_point;
227}
228
229
209/* namespace Net */ }
230/* namespace Net */ }