[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Colin@arena.co.nz: [Snort-devel] snort 1.7 and OpenBSD 2.6]
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: [Colin@arena.co.nz: [Snort-devel] snort 1.7 and OpenBSD 2.6]
- From: Fyodor <fygrave_(_at_)_tigerteam_(_dot_)_net>
- Date: Sat, 13 Jan 2001 14:51:59 +0700
- Mail-followup-to: tech_(_at_)_openbsd_(_dot_)_org
- Organisation: Nuclear Obsene Testers of Labazaki Somobaki Dlob. (http://www.notlsd.net)
Just curious if there's a way to obtain an MTU value on OpenBSD prior 2.7 dynamically or
a static table lookup should be used instead. I checked out source tagged with OPENBSD_2_6, looks
like it is the only way.
Any comments would be appreciated mucho :)
----- Forwarded message from Colin Haxton <Colin_(_at_)_arena_(_dot_)_co_(_dot_)_nz> -----
From: Colin Haxton <Colin_(_at_)_arena_(_dot_)_co_(_dot_)_nz>
Date: Mon, 08 Jan 2001 13:37:36 +1300
To: Snort-dev <snort-devel_(_at_)_lists_(_dot_)_sourceforge_(_dot_)_net>
Subject: [Snort-devel] snort 1.7 and OpenBSD 2.6
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
Snort seems to have a problem running on OpenBSD 2.6 where it won't
start due to not being able to work out the MTU value of the interface.
The OpenBSD site says that the SIOCGIFMTU/SIOCSIFMTU ioctl options were
not added until 2.7. This makes the GetIfrMTU() function in snort.c not
to return a value so everything stops.
I got around the problem by returning the default Ethernet value
(ETHERNET_MTU). While this works for me there is probably a better fix
so I will leave it up to the cross-platform guru's out there. :-)
I know that endless backwards compatibility is not feasible but as OBSD
2.6 is still _fairly_ recent I thought I would bring it up on the list
in case anyone else hits it.
Snort-devel mailing list
----- End forwarded message -----
PGP fingerprint = 56DD 1511 DDDA 56D7 99C7 B288 5CE5 A713 0969 A4D1
Visit your host, monkey.org