bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdomap bug - patch


From: Pete French
Subject: gdomap bug - patch
Date: Fri, 25 Jan 2002 13:26:01 +0000

The patch below fixes a problem in gdomap which causes it to read an
incorrect list of interfaces under FreeBSD and other 4.4 BSD systems.
The bug is caused by the fact that SIOCGIFCONF returs a set of variable length
data structures rather than a set of sixed length struct ifconf's.

The patch changes the code to step through the list by pointer uusing
a void* that ismoved on by the truelength of the structure. As a side effect of
this wedo not know the number of interfaces we shall have in advance and thus
the malloc for the space has been altered to always use MAX_IFACE.

The resulting list of interfaces is now correct and work in FreeBSD. This
showed up an additional warning in that SIOCGIFBRDDR is being called on
loopback interfaces. The patch adds a flag to test for this and hence not
make the call on loopback interfaces. This removes these warnings.

-bat.

begin 644 gdomap.patch.gz
M'XL("#1:43P"`V=D;VUA<"YP871C:`#-5FU/XT80_KSW*P8J<7'>B)V#`"D?
M0D)0>D!.<.JUO2++L=>)E60W]=I06O'?.[-^B0,)=P+4UA(.WIUY=MZ>F2V7
MRS#VY-Q9U-VZ#(,QZX<!_.0(L/;`M(Z:>T=-"ZQ&PWI7J]5RT16IYE&C>62U
M$JGRZD/?8#8.K*K9.+1`+P'\$/@>]]GU8-@]&_2[P\L^+@*H*(S="`+?E<)G
M^-->70[Y'TR_V^^V'J^7\6?=LA\(9Y;@N!,G9&P4^U\O.K_8@WZG>PIE4,%?
M7/JEHI9QDR@$(F+,XPKMJ&6?(I[;@>^XG$02*1]*)9*"8U#2G?*HU.G;@\O3
MSU6X'G8_VKVSJ\Y%%1J&`3_B6RL!_*T#FH7&!/RJO5EH;F7@L=SYP@K*V(LH
M?'U`7NO\VCHQK4857ZVL3@!VDQ\HLWX@/(@F'`:?P/&\D"L%T@?NN!-PW"BX
MY2!X="?#*9G)0\I1/57>U2'(4X>V8@3K^&?/N(#=M2XG82/_"GK'11<@?2@J
M:`ZB\C`44L=&Y]8T#\F=O2RW;^L.F59TX_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