Modify

Opened 9 years ago

Closed 9 years ago

#5410 closed defect (fixed)

Can't insert rules in arptables on 2.6.28-kernel -> "Module is wrong version"

Reported by: linus.luessing@… Owned by: developers
Priority: normal Milestone: Kamikaze 8.09.2
Component: packages Version: Trunk
Keywords: Cc:

Description

I've been compiling my own image from trunk rev. 16538 with arptables build in. On the earlier trunk rev. 14849 I could install arptables with opkg and use it without any problems; this revision was using kernel-version 2.6.26.8 instead of 2.6.28.10. When looking at the opkg outputs from the current trunk-image, there seem to be some version mismatches in kernel/kmod-arptables, they're still referencing version 2.6.26.8. See the output below for further details:

root@OpenWrt:~# arptables
arptables v0.0.3-3: can't initialize arptables table `filter': Module is wrong version
Perhaps arptables or your kernel needs to be upgraded.
root@OpenWrt:~# opkg info arptables     
Package: arptables
Version: 0.0.3-3-1
Depends: kmod-arptables
Provides:
Status: install ok installed
Section: net
Architecture: mips
maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>
MD5Sum: 76a8164384c6a8a944b73aafbf2009b9
Size: 23572
Filename: arptables_0.0.3-3-1_mips.ipk
Source: package/arptables
Description: ARP firewalling software

root@OpenWrt:~# opkg info kmod-arptables
Package: kmod-arptables
Version: 2.6.28.10-atheros-1
Status: install ok installed
Architecture: mips

Package: kmod-arptables
Version: 2.6.26.8-atheros-1
Depends: kernel (=2.6.26.8-atheros-1)
Provides:
Status: unknown ok not-installed
Section: kernel
Architecture: mips
maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>
MD5Sum: 9f1cb7905d661bac55db1622f41a1de6
Size: 8899
Filename: kmod-arptables_2.6.26.8-atheros-1_mips.ipk
Source: package/kernel
Description: Kernel modules for ARP firewalling

root@OpenWrt:~# opkg info kernel
Package: kernel
Version: 2.6.26.8-atheros-1
Provides:
Status: unknown ok not-installed
Section: sys
Architecture: mips
maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>
MD5Sum: b03fb586a201cf4228ef367cbfe59bb6
Size: 644
Filename: kernel_2.6.26.8-atheros-1_mips.ipk
Source: package/kernel
Description: Virtual kernel package

Package: kernel
Version: 2.6.28.10-atheros-1
Status: install ok installed
Architecture: mips

root@OpenWrt:~# uname -r
2.6.28.10
root@OpenWrt:~#

Attachments (1)

0005-build_all_arptables_modules.patch (667 bytes) - added by Julian Bäume <julian@…> 9 years ago.
build all arptables modules

Download all attachments as: .zip

Change History (4)

comment:1 Changed 9 years ago by linus.luessing@…

Ok, just noticed, that there is only a arp_tables.ko and arpt_mangle.ko + arptable_filter.ko are missing. Maybe that's more of a problem :).

comment:2 Changed 9 years ago by Julian Bäume <julian@…>

It's enough to just add the 2 missing modules to the kmod-package. I'll add a patch to do so in a minute.

Changed 9 years ago by Julian Bäume <julian@…>

build all arptables modules

comment:3 Changed 9 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Applied in [16600], thanks !

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.