⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linux_ssm.h

📁 这个程序实现了FLUTE协议
💻 H
字号:
/* $Author: peltotal $ $Date: 2006/02/17 09:14:37 $ $Revision: 1.6 $ *//* *   MAD-ALCLIB: Implementation of ALC/LCT protocols, Compact No-Code FEC, *   Simple XOR FEC, Reed-Solomon FEC, and RLC Congestion Control protocol. *   Copyright (c) 2003-2006 TUT - Tampere University of Technology *   main authors/contacts: jani.peltotalo@tut.fi and sami.peltotalo@tut.fi * *   This program is free software; you can redistribute it and/or modify *   it under the terms of the GNU General Public License as published by *   the Free Software Foundation; either version 2 of the License, or *   (at your option) any later version. * *   This program is distributed in the hope that it will be useful, *   but WITHOUT ANY WARRANTY; without even the implied warranty of *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *   GNU General Public License for more details. * *   You should have received a copy of the GNU General Public License *   along with this program; if not, write to the Free Software *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#ifndef _LINUX_SSM_H_#define _LINUX_SSM_H_/* * All of the below should be in linux/in.h on new enough systems, and * so there's an attempt to protect them with an #ifdef */#ifdef LINUX#ifndef IP_ADD_SOURCE_MEMBERSHIP/* Order within structures is important, the kernel assumes its own   structure layout */struct ip_mreq_source {  struct in_addr imr_multiaddr;  /* IP address of group */  struct in_addr imr_interface;  /* IP address of interface */  struct in_addr imr_sourceaddr; /* IP address of source */};#define IP_ADD_SOURCE_MEMBERSHIP        39#define IP_DROP_SOURCE_MEMBERSHIP       40#endif#ifndef MCAST_JOIN_SOURCE_GROUP   struct group_req {      uint32_t                gr_interface;	/* interface index */      struct sockaddr_storage gr_group;     /* group address */   };   struct group_source_req {      uint32_t                gsr_interface; /* interface index */      struct sockaddr_storage gsr_group;     /* group address */      struct sockaddr_storage gsr_source;    /* source address */   };#define MCAST_JOIN_SOURCE_GROUP  46#define MCAST_LEAVE_SOURCE_GROUP  47#endif#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -