huge propset, fixes eol-style on everything and sets keywords and copyright on all Makefiles
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6500 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4b420b1fed
commit
bea42678c9
@ -1,105 +1,105 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=dibbler
|
PKG_NAME:=dibbler
|
||||||
PKG_VERSION:=0.5.0
|
PKG_VERSION:=0.5.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
|
||||||
PKG_SOURCE_URL:=http://klub.com.pl/dhcpv6/dibbler
|
PKG_SOURCE_URL:=http://klub.com.pl/dhcpv6/dibbler
|
||||||
PKG_MD5SUM:=26a0e37512be7641a2deb0dc5b00e582
|
PKG_MD5SUM:=26a0e37512be7641a2deb0dc5b00e582
|
||||||
PKG_CAT:=zcat
|
PKG_CAT:=zcat
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/dibbler/Default
|
define Package/dibbler/Default
|
||||||
SECTION:=ipv6
|
SECTION:=ipv6
|
||||||
CATEGORY:=IPv6
|
CATEGORY:=IPv6
|
||||||
DEPENDS:=+uclibcxx
|
DEPENDS:=+uclibcxx
|
||||||
TITLE:=Dibbler, a portable DHCPv6 implementation
|
TITLE:=Dibbler, a portable DHCPv6 implementation
|
||||||
URL:=http://klub.com.pl/dhcpv6/
|
URL:=http://klub.com.pl/dhcpv6/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dibbler-client
|
define Package/dibbler-client
|
||||||
$(call Package/dibbler/Default)
|
$(call Package/dibbler/Default)
|
||||||
TITLE+= (client)
|
TITLE+= (client)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dibbler-relay
|
define Package/dibbler-relay
|
||||||
$(call Package/dibbler/Default)
|
$(call Package/dibbler/Default)
|
||||||
TITLE+= (relay)
|
TITLE+= (relay)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dibbler-server
|
define Package/dibbler-server
|
||||||
$(call Package/dibbler/Default)
|
$(call Package/dibbler/Default)
|
||||||
TITLE+= (server)
|
TITLE+= (server)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
(cd $(PKG_BUILD_DIR)/poslib; \
|
(cd $(PKG_BUILD_DIR)/poslib; \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
CPPFLAGS="$(EXTRA_CPPFLAGS)" \
|
CPPFLAGS="$(EXTRA_CPPFLAGS)" \
|
||||||
LDFLAGS="$(EXTRA_LDFLAGS)" \
|
LDFLAGS="$(EXTRA_LDFLAGS)" \
|
||||||
./configure \
|
./configure \
|
||||||
--target=$(GNU_TARGET_NAME) \
|
--target=$(GNU_TARGET_NAME) \
|
||||||
--host=$(GNU_TARGET_NAME) \
|
--host=$(GNU_TARGET_NAME) \
|
||||||
--build=$(GNU_HOST_NAME) \
|
--build=$(GNU_HOST_NAME) \
|
||||||
--program-prefix="" \
|
--program-prefix="" \
|
||||||
--program-suffix="" \
|
--program-suffix="" \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--exec-prefix=/usr \
|
--exec-prefix=/usr \
|
||||||
--bindir=/usr/bin \
|
--bindir=/usr/bin \
|
||||||
--datadir=/usr/share \
|
--datadir=/usr/share \
|
||||||
--includedir=/usr/include \
|
--includedir=/usr/include \
|
||||||
--infodir=/usr/share/info \
|
--infodir=/usr/share/info \
|
||||||
--libdir=/usr/lib \
|
--libdir=/usr/lib \
|
||||||
--libexecdir=/usr/lib \
|
--libexecdir=/usr/lib \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
--sbindir=/usr/sbin \
|
--sbindir=/usr/sbin \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
$(DISABLE_LARGEFILE) \
|
$(DISABLE_LARGEFILE) \
|
||||||
);
|
);
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CXX_LIBS:= -nodefaultlibs -Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic,-lm,-lc,-lgcc
|
CXX_LIBS:= -nodefaultlibs -Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic,-lm,-lc,-lgcc
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
PORT_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS) -fno-builtin -fno-rtti" \
|
PORT_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS) -fno-builtin -fno-rtti" \
|
||||||
PORT_LDFLAGS="$(EXTRA_LDFLAGS)" \
|
PORT_LDFLAGS="$(EXTRA_LDFLAGS)" \
|
||||||
DEBUGINFO= \
|
DEBUGINFO= \
|
||||||
CLNT_LIBS="$(CXX_LIBS)" \
|
CLNT_LIBS="$(CXX_LIBS)" \
|
||||||
SRV_LIBS="$(CXX_LIBS)" \
|
SRV_LIBS="$(CXX_LIBS)" \
|
||||||
server client relay
|
server client relay
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dibbler-client/install
|
define Package/dibbler-client/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-client $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-client $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dibbler-relay/install
|
define Package/dibbler-relay/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-relay $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-relay $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dibbler-server/install
|
define Package/dibbler-server/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-server $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-server $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,dibbler-client))
|
$(eval $(call BuildPackage,dibbler-client))
|
||||||
$(eval $(call BuildPackage,dibbler-relay))
|
$(eval $(call BuildPackage,dibbler-relay))
|
||||||
$(eval $(call BuildPackage,dibbler-server))
|
$(eval $(call BuildPackage,dibbler-server))
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: Makefile 5329 2006-10-28 22:43:08Z nico $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: Makefile 5329 2006-10-28 22:43:08Z nico $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -1,81 +1,81 @@
|
|||||||
|
|
||||||
[Server]
|
[Server]
|
||||||
serverPort = 7144
|
serverPort = 7144
|
||||||
autoServe = Yes
|
autoServe = Yes
|
||||||
forceIP =
|
forceIP =
|
||||||
isRoot = No
|
isRoot = No
|
||||||
maxBitrateOut = 0
|
maxBitrateOut = 0
|
||||||
maxRelays = 1
|
maxRelays = 1
|
||||||
maxDirect = 0
|
maxDirect = 0
|
||||||
maxRelaysPerChannel = 0
|
maxRelaysPerChannel = 0
|
||||||
firewallTimeout = 30
|
firewallTimeout = 30
|
||||||
forceNormal = No
|
forceNormal = No
|
||||||
rootMsg =
|
rootMsg =
|
||||||
authType = cookie
|
authType = cookie
|
||||||
cookiesExpire = session
|
cookiesExpire = session
|
||||||
htmlPath = html/en
|
htmlPath = html/en
|
||||||
minPGNUIncoming = 10
|
minPGNUIncoming = 10
|
||||||
maxPGNUIncoming = 20
|
maxPGNUIncoming = 20
|
||||||
maxServIn = 50
|
maxServIn = 50
|
||||||
chanLog =
|
chanLog =
|
||||||
networkID = 00000000000000000000000000000000
|
networkID = 00000000000000000000000000000000
|
||||||
|
|
||||||
[Broadcast]
|
[Broadcast]
|
||||||
broadcastMsgInterval = 10
|
broadcastMsgInterval = 10
|
||||||
broadcastMsg =
|
broadcastMsg =
|
||||||
icyMetaInterval = 8192
|
icyMetaInterval = 8192
|
||||||
broadcastID = 898145B5C0427118B595AF7D9E110000
|
broadcastID = 898145B5C0427118B595AF7D9E110000
|
||||||
hostUpdateInterval = 180
|
hostUpdateInterval = 180
|
||||||
maxControlConnections = 3
|
maxControlConnections = 3
|
||||||
rootHost = yp.peercast.org
|
rootHost = yp.peercast.org
|
||||||
|
|
||||||
[Client]
|
[Client]
|
||||||
refreshHTML = 5
|
refreshHTML = 5
|
||||||
relayBroadcast = 30
|
relayBroadcast = 30
|
||||||
minBroadcastTTL = 1
|
minBroadcastTTL = 1
|
||||||
maxBroadcastTTL = 7
|
maxBroadcastTTL = 7
|
||||||
pushTries = 5
|
pushTries = 5
|
||||||
pushTimeout = 60
|
pushTimeout = 60
|
||||||
maxPushHops = 8
|
maxPushHops = 8
|
||||||
autoQuery = 0
|
autoQuery = 0
|
||||||
queryTTL = 7
|
queryTTL = 7
|
||||||
|
|
||||||
[Privacy]
|
[Privacy]
|
||||||
password = hackme
|
password = hackme
|
||||||
maxUptime = 0
|
maxUptime = 0
|
||||||
|
|
||||||
[Filter]
|
[Filter]
|
||||||
ip = 255.255.255.255
|
ip = 255.255.255.255
|
||||||
private = No
|
private = No
|
||||||
ban = No
|
ban = No
|
||||||
network = Yes
|
network = Yes
|
||||||
direct = Yes
|
direct = Yes
|
||||||
[End]
|
[End]
|
||||||
|
|
||||||
[Notify]
|
[Notify]
|
||||||
PeerCast = Yes
|
PeerCast = Yes
|
||||||
Broadcasters = Yes
|
Broadcasters = Yes
|
||||||
TrackInfo = Yes
|
TrackInfo = Yes
|
||||||
[End]
|
[End]
|
||||||
|
|
||||||
[Server1]
|
[Server1]
|
||||||
allowHTML = Yes
|
allowHTML = Yes
|
||||||
allowBroadcast = Yes
|
allowBroadcast = Yes
|
||||||
allowNetwork = Yes
|
allowNetwork = Yes
|
||||||
allowDirect = Yes
|
allowDirect = Yes
|
||||||
[End]
|
[End]
|
||||||
|
|
||||||
[Server2]
|
[Server2]
|
||||||
allowHTML = No
|
allowHTML = No
|
||||||
allowBroadcast = Yes
|
allowBroadcast = Yes
|
||||||
allowNetwork = No
|
allowNetwork = No
|
||||||
allowDirect = No
|
allowDirect = No
|
||||||
[End]
|
[End]
|
||||||
|
|
||||||
[Debug]
|
[Debug]
|
||||||
logDebug = No
|
logDebug = No
|
||||||
logErrors = No
|
logErrors = No
|
||||||
logNetwork = No
|
logNetwork = No
|
||||||
logChannel = No
|
logChannel = No
|
||||||
pauseLog = No
|
pauseLog = No
|
||||||
idleSleepTime = 10
|
idleSleepTime = 10
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: Makefile 5348 2006-10-30 13:51:50Z nico $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: Makefile 5329 2006-10-28 22:43:08Z nico $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -1,60 +1,60 @@
|
|||||||
#define LINUX 1
|
#define LINUX 1
|
||||||
#ifdef LINUX
|
#ifdef LINUX
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#define BYTE unsigned char
|
#define BYTE unsigned char
|
||||||
#define DWORD unsigned long
|
#define DWORD unsigned long
|
||||||
#define BOOL char
|
#define BOOL char
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#define WSADATA int
|
#define WSADATA int
|
||||||
#define SOCKET int
|
#define SOCKET int
|
||||||
#define SOCKADDR struct sockaddr
|
#define SOCKADDR struct sockaddr
|
||||||
#define SOCKADDR_IN struct sockaddr_in
|
#define SOCKADDR_IN struct sockaddr_in
|
||||||
typedef struct _WSABUF {
|
typedef struct _WSABUF {
|
||||||
unsigned long len;
|
unsigned long len;
|
||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
} WSABUF;
|
} WSABUF;
|
||||||
#define SIO_RCVALL 0
|
#define SIO_RCVALL 0
|
||||||
#define SIO_RCVALL_IGMPMCAST 0
|
#define SIO_RCVALL_IGMPMCAST 0
|
||||||
#define SIO_RCVALL_MCAST 0
|
#define SIO_RCVALL_MCAST 0
|
||||||
#define ETH_P_ALL 0x0003
|
#define ETH_P_ALL 0x0003
|
||||||
#else // WINDOWS
|
#else // WINDOWS
|
||||||
|
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _RCVALL_H_
|
#ifndef _RCVALL_H_
|
||||||
#define _RCVALL_H_
|
#define _RCVALL_H_
|
||||||
|
|
||||||
|
|
||||||
#define MAX_IP_SIZE 65535
|
#define MAX_IP_SIZE 65535
|
||||||
#define MIN_IP_HDR_SIZE 20
|
#define MIN_IP_HDR_SIZE 20
|
||||||
|
|
||||||
#define HI_WORD(byte) (((byte) >> 4) & 0x0F)
|
#define HI_WORD(byte) (((byte) >> 4) & 0x0F)
|
||||||
#define LO_WORD(byte) ((byte) & 0x0F)
|
#define LO_WORD(byte) ((byte) & 0x0F)
|
||||||
|
|
||||||
extern char *szProto[];
|
extern char *szProto[];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void PrintRawBytes (BYTE *ptr, DWORD len);
|
void PrintRawBytes (BYTE *ptr, DWORD len);
|
||||||
int DecodeIGMPHeader(WSABUF *wsabuf, DWORD iphdrlen);
|
int DecodeIGMPHeader(WSABUF *wsabuf, DWORD iphdrlen);
|
||||||
int DecodeUDPHeader (WSABUF *wsabuf, DWORD iphdrlen);
|
int DecodeUDPHeader (WSABUF *wsabuf, DWORD iphdrlen);
|
||||||
int DecodeTCPHeader (WSABUF *wsabuf, DWORD iphdrlenz);
|
int DecodeTCPHeader (WSABUF *wsabuf, DWORD iphdrlenz);
|
||||||
int DecodeIPHeader (WSABUF *wasbuf, unsigned int srcaddr, unsigned short srcport, unsigned long srcnet,
|
int DecodeIPHeader (WSABUF *wasbuf, unsigned int srcaddr, unsigned short srcport, unsigned long srcnet,
|
||||||
unsigned int destaddr, unsigned short destport, unsigned long destnet, DWORD bytesret,
|
unsigned int destaddr, unsigned short destport, unsigned long destnet, DWORD bytesret,
|
||||||
unsigned short xport, unsigned int xip, unsigned long xnet);
|
unsigned short xport, unsigned int xip, unsigned long xnet);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
# $Id: $
|
# $Id$
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user