Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* RE: Anyone else have problems with ip_masq and Alpha Linux kernel 2.0.35??
@ 1998-11-21  5:54 Designer 7
  0 siblings, 0 replies; 7+ messages in thread
From: Designer 7 @ 1998-11-21  5:54 UTC (permalink / raw)
  To: bob, axp-list

Hey Bob,

Uh... sorry to bug you, but where did you get the source for ipfwadm for 
Alpha? I got the one from the www.xos.nl site.... but....

I'm having a lot of compile problems... a lot of warnings about 
redefinitions, conflicting types and incomplete types... I found out all 
the header files in /usr/include/netinet/ are different than the ones 
that are in the kernel source tree. I think the one's in the netinet are 
wrong... or do they serve some special purpose? I looked at the ip_fw.h 
in the kernel source tree.. and it looks right... unsigned short, 
unsigned long instead of the u_int16_t and u_int32_t....

Man... these files all really screwed up.... unless there is something I 
completely missed here.... what am I not understanding?

I'm on Redhat 5.2/Alpha by the way.... if I am right, and a lot of these 
headers are wrong, can Redhat please release an update with the correct 
ones so we don't have to manually fix all of them? Or can someone 
explain to me what my problem is?


>
>> By the way, to bob who replied below... how did you figure out what 
was
>> wrong with the code? Or did you read all of the code and stumbled on
>> that problem?
>
>I used RH5.1 on an Intel machine and did masquerading.  But, after that
>machine died, I decided to get an Alpha.  I spent several days fiddling 
with
>ipfwadm trying to get it to work, saying to myself, "I *know* this 
should
>work, but it isn't...." :-)
>
>I decided to search the web to see if anyone else had problems like 
this.
>The only article I found was dated in August of this year (sorry, I 
forgot
>the author's name and where it was located).  The author had said that
>it appeared as if the ip_fw structure was not correct and was dependant
>upon a 32-bit architecture.  I just changed the 2 32-bit declarations
>so they would be correct on a 64-bit architecture.  I recompiled the
>kernel and ipfwadm, and that did the trick.
>
>-bob fahey
>
>
>-- 
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
>



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: Anyone else have problems with ip_masq and Alpha Linux kernel 2.0.35??
@ 1998-11-20 20:25 Designer 7
  1998-11-20 22:09 ` Bob Fahey
  0 siblings, 1 reply; 7+ messages in thread
From: Designer 7 @ 1998-11-20 20:25 UTC (permalink / raw)
  To: axp-list

Hmmm,

This makes me wonder... if ipfwadm worked fine in RH5.0 and not in RH5.1 
and RH5.2 (as stated in another response to my post) and the problem was 
the u_int32_t type.... Does this mean that RedHat does everything from 
scratch when they put together these distributions? I mean, if it was 
fixed/working in 5.0 and you patched/modified the code base from 
there.... you wouldn't have these problems... or was there enough 
changes in the code that justified doing everything from the ground up?

The fact that RH5.2/Alpha didn't work out of the box (ramdisk.img and 
miata milo problems + other minor things) and that it seems like some of 
the code was never tested... worries me. I love what Redhat has done for 
the linux community.... but I wish they would do a bit more thorough 
testing.... I hope going commercial and the market place pressures don't 
force them into releasing broken releases. That would be sad... I know 
it's not an easy job to maintain distributions of a OS that is 
cross-platform and constantly changing.... 

I was going to buy the RH5.2/Alpha CD... just to support RedHat... but 
now that I know it'll be broken out of the box (at least for my miata 
machine), I'll probably burn my own CD after fixing a few things up.... 
just for my own archives. But I will probably buy the RH5.2/Intel CDs 
anyway... I'm here to support you RedHat people, but please do more 
thorough testing before you release. Also, if you don't have all the 
platforms (variants of Alphas, or different hardware configs) I think 
you should ask for volunteers to test before you package something 
together for release. I know I would volunteer to test on my machines if 
RedHat asked. Or even better, offer a free CD set to the qualified 
volunteers that help you(Redhat) test the software before the release? 
How's that for an idea?

By the way, to bob who replied below... how did you figure out what was 
wrong with the code? Or did you read all of the code and stumbled on 
that problem?

>> Hello,
>> 
>> I'm getting a 'invalid argument' when I attempt to setup ip_masq. I 
read 
>> somewhere that there might be a problem with the new Alpha kernel. 
Does 
>> anyone else have more info?? 
>> 
>> I do have the correct options set when i compiled my kernel. But 
after a 
>> reboot and trying the following..
>> 
>> ipfwadm -F -p deny
>> ipfwadm -F -a m -D 192.168.0.0/24 -S 0.0.0.0/0
>> 
>> and then I get the 'invalid argument' error. I've checked with 
several 
>> postings that the syntax of the command is correct. 
>
>GREAT question.  I spent about the last 3 days on my Alpha trying to
>figure out the exact same problem.
>
>The problem is that, from what I can tell, one of the includes with
>glibc 2.0.7 is incorrect, since it assumes you're running on a 32-bit
>machine.  This problem still exists even in 2.0.7-29, and needs to be
>fixed in the next release, IMHO.  Comments?
>
>I changed /usr/include/netinet/ip_fw.h, and recompiled ipfwadm.  Now
>it works just fine.  The change is in the struct ip_fw -- there are
>2 arguments, fw_pcnt and fw_bcnt that are defined as u_int32_t.  If
>you change these to long, and recompile ipfwadm, it should work fine.
>
>On the same note, when you set up masquerading, don't forget to change
>/etc/sysconfig/network, setting FORWARD_IPV4 to true.  I didn't find
>a reference to this in the IP-Masquerading HOWTO, but maybe it is
>in some other documentation somewhere....
>
>-bob fahey
>(bob@invengen.com)
>
>-- 
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
>
>



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Anyone else have problems with ip_masq and Alpha Linux kernel 2.0.35??
@ 1998-11-20 11:18 Designer 7
  1998-11-20 15:29 ` Bob Fahey
  1998-11-20 16:25 ` jhohertz
  0 siblings, 2 replies; 7+ messages in thread
From: Designer 7 @ 1998-11-20 11:18 UTC (permalink / raw)
  To: axp-list

Hello,

I'm getting a 'invalid argument' when I attempt to setup ip_masq. I read 
somewhere that there might be a problem with the new Alpha kernel. Does 
anyone else have more info?? 

I do have the correct options set when i compiled my kernel. But after a 
reboot and trying the following..

ipfwadm -F -p deny
ipfwadm -F -a m -D 192.168.0.0/24 -S 0.0.0.0/0

and then I get the 'invalid argument' error. I've checked with several 
postings that the syntax of the command is correct. 

Anyways, I'd appreciate any help on this issue... thanks.

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1998-11-21  5:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-21  5:54 Anyone else have problems with ip_masq and Alpha Linux kernel 2.0.35?? Designer 7
  -- strict thread matches above, loose matches on Subject: below --
1998-11-20 20:25 Designer 7
1998-11-20 22:09 ` Bob Fahey
1998-11-20 11:18 Designer 7
1998-11-20 15:29 ` Bob Fahey
1998-11-20 16:25 ` jhohertz
1998-11-20 16:45   ` Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox