Skip to content

Commit

Permalink
Use iptables 1.4.14 with kernel 2.6.22
Browse files Browse the repository at this point in the history
  • Loading branch information
kjbracey2 committed Dec 19, 2021
1 parent 5be3807 commit 97b90d7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
11 changes: 4 additions & 7 deletions release/src/router/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,14 @@ ifeq ($(RTCONFIG_DSL),y)
obj-y += dsl_drv_tool
endif

ifneq ($(or $(findstring linux-2.6.36,$(LINUXDIR)),$(findstring linux-3.x,$(LINUXDIR))),)
IPTABLES := iptables-1.4.x
IPTC_LIBDIR := $(TOP)/$(IPTABLES)/libiptc/.libs
IPTC_LIBS := -lip4tc $(if $(RTCONFIG_IGD2), $(if $(RTCONFIG_IPV6),-lip6tc,),) -liptc
obj-y += iptables-1.4.x

ifneq ($(or $(findstring linux-2.6.36,$(LINUXDIR)),$(findstring linux-3.x,$(LINUXDIR))),)
obj-y += iproute2-3.x
else
IPTABLES := iptables
IPTC_LIBDIR := $(TOP)/$(IPTABLES)
IPTC_LIBS := -liptc
obj-y += iptables
obj-y += iproute2
endif

Expand Down Expand Up @@ -511,8 +508,8 @@ obj-y += openssl-1.1 # include for all builds
obj-y += haveged
obj-y += udp-broadcast-relay-redux
obj-y += socat
ifneq ($(or $(findstring linux-2.6.36,$(LINUXDIR)),$(findstring linux-3.x,$(LINUXDIR))),)
obj-y += libnfnetlink-1.0.1
ifneq ($(or $(findstring linux-2.6.36,$(LINUXDIR)),$(findstring linux-3.x,$(LINUXDIR))),)
obj-y += libmnl-1.0.4
obj-y += ipset-7
else
Expand Down Expand Up @@ -1617,7 +1614,7 @@ iptables-1.4.x-clean:

libnfnetlink/stamp-h1:
# tomatoraf.com, Victek
cd $(TOP)/libnfnetlink && CC=$(CC) STRIP=$(STRIP) \
cd $(TOP)/libnfnetlink && CC=$(CC) STRIP="$(STRIP)" \
CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
$(CONFIGURE) --prefix=/usr --enable-shared --enable-static
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* x_tables module for matching the IPv4/IPv6 DSCP field
*
* (C) 2002 Harald Welte <[email protected]>
* This software is distributed under GNU GPL v2, 1991
*
* xt_ethport.h, 2009/06/09
*/
#ifndef _XT_ETHPORT_H
#define _XT_ETHPORT_H

#define XT_SKB_CB_OFFSET 0x24 /* store port number info in skb->cb[0x24] */
#define XT_ETHPORT_MAX 0x8 /* port 0-5 && cpu port(port6)*/

/* match info */
struct xt_ethport_info {
u_int8_t portnum;
u_int8_t invert;
};

#endif /* _XT_ETHPORT_H */

0 comments on commit 97b90d7

Please sign in to comment.