|
|
/home/brennan/n-sim/Vaike/linux/system-addons/networking/mesh_dsr.hGo to the documentation of this file.00001 00014 /* 00015 * Copyright 2007. Los Alamos National Security, LLC. This material 00016 * was produced under U.S. Government contract DE-AC52-06NA25396 for 00017 * Los Alamos National Laboratory (LANL), which is operated by Los 00018 * Alamos National Security, LLC, for the Department of Energy. The 00019 * U.S. Government has rights to use, reproduce, and distribute this 00020 * software. NEITHER THE GOVERNMENT NOR LOS ALAMOS NATIONAL SECURITY, 00021 * LLC, MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LEGAL 00022 * LIABILITY FOR THE USE OF THIS SOFTWARE. If software is modified to 00023 * produce derivative works, such modified software should be clearly 00024 * marked, so as not to confuse it with the version available from LANL. 00025 * 00026 * Additionally, this program is free software; you can redistribute 00027 * it and/or modify it under the terms of the GNU General Public 00028 * License as published by the Free Software Foundation; version 2 of 00029 * the License. Accordingly, this program is distributed in the hope 00030 * it will be useful, but WITHOUT ANY WARRANTY; without even the 00031 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00032 * PURPOSE. See the GNU General Public License for more details. 00033 */ 00034 00035 #ifndef _MESH_DSR_H_ 00036 #define _MESH_DSR_H_ 00037 00038 00039 #include <sys/socket.h> 00040 #include "mesh_route_api.h" 00041 00042 void dsr_on_demand_discovery(protocol_t *proto, u_int32_t dest); 00043 int dsr_send_mesh_discovery(protocol_t *proto, int sd, int flags); 00044 int dsr_recv_mesh_discovery(protocol_t *proto, int sd, int num_links); 00045 00046 00047 // TODO: DSR timeout value (currently 5 secs)? 00048 protocol_t dsr = { "Dynamic Source Routing", 0x7890, 5, 0, 1, 00049 { NULL, 0 }, NULL, 0, 00050 -1, 128, 5000, 1500, 00051 CMSG_SPACE(0), 00052 NULL, dsr_on_demand_discovery, 00053 dsr_send_mesh_discovery, 00054 dsr_recv_mesh_discovery, NULL, NULL }; 00055 00056 00057 #endif // _MESH_DSR_H_ |