From 8fd9a98abba7601189a8ce8871b9f6a8981ea7ef Mon Sep 17 00:00:00 2001 From: scipio Date: Thu, 8 Feb 2007 00:23:34 +0000 Subject: [PATCH] Remove LinkSrcPacket.nc --- tos/lib/net/le/LinkEstimatorP.nc | 6 ------ tos/lib/net/le/LinkSrcPacket.nc | 35 -------------------------------- 2 files changed, 41 deletions(-) delete mode 100644 tos/lib/net/le/LinkSrcPacket.nc diff --git a/tos/lib/net/le/LinkEstimatorP.nc b/tos/lib/net/le/LinkEstimatorP.nc index 2fee9a1d..58ab66c6 100644 --- a/tos/lib/net/le/LinkEstimatorP.nc +++ b/tos/lib/net/le/LinkEstimatorP.nc @@ -39,7 +39,6 @@ module LinkEstimatorP { interface LinkEstimator; interface Init; interface Packet; - interface LinkSrcPacket; } uses { @@ -559,11 +558,6 @@ implementation { } - // get the link layer source address for the incoming packet - command am_addr_t LinkSrcPacket.getSrc(message_t* msg) { - return call SubAMPacket.source(msg); - } - // user of link estimator calls send here // slap the header and footer before sending the message command error_t Send.send(am_addr_t addr, message_t* msg, uint8_t len) { diff --git a/tos/lib/net/le/LinkSrcPacket.nc b/tos/lib/net/le/LinkSrcPacket.nc deleted file mode 100644 index f19433fc..00000000 --- a/tos/lib/net/le/LinkSrcPacket.nc +++ /dev/null @@ -1,35 +0,0 @@ -/* $Id$ */ -/* - * "Copyright (c) 2005 The Regents of the University of California. - * All rights reserved. - * - * Permission to use, copy, modify, and distribute this software and its - * documentation for any purpose, without fee, and without written agreement is - * hereby granted, provided that the above copyright notice, the following - * two paragraphs and the author appear in all copies of this software. - * - * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR - * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT - * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF - * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, - * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS - * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO - * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS." - * - */ - -/* - * @author Rodrigo Fonseca - * Based on MintRoute, by Philip Buonadonna, Alec Woo, Terence Tong, Crossbow - * @date $Date$ - */ - -// Om: added the keyword "command" - -interface LinkSrcPacket { - /** Returns the am_addr of the link this message came from */ - command am_addr_t getSrc(message_t* msg); -} -- 2.39.2