[ubuntu-it] possibile bug, segmentation fault

Filippo Biondi fbiondi a intertecman.com
Lun 10 Lug 2006 10:33:57 UTC


Il giorno lun, 10/07/2006 alle 12.25 +0200, Filippo Biondi ha scritto:

> provato a dare una occhiata agli header delle lib per vedere come sono
> tipizzate le variabili?? Magari dico una fesseria ma considerato
> l'aumento di spazio di indirizzamento e' probabile che sia cambiata
> anche la tipizzazione tra 32 e 64 bit.


da
http://www.hcs.ufl.edu/~park/porting.html

e' il punto 6

"In 32-bit architecture (in Linux/x86), struct in_addr type has only one
element s_addr which is of type in_addr_t and this is defined as
unsigned long type (4 bytes). However in 64-bit architecture(in
Linux/x86_64), it is defined as unsigned int type (4bytes). Therefore
when you try to print out dot notated ip address (xxx.xxx.xxx.xxx) using
received data. It would not work:"

HTH
Ciao
Filo

-- 
Filippo Biondi
[Ubuntu|Debian] GNU User
Linux Registered User #357105
Proud member of 
.:ERLUG:. 
no1984.org member - Stop TCG!





Maggiori informazioni sulla lista ubuntu-it