Because of ecartis wonderfulness it "forgot" my patches. here comes links to them: http://www.acc.umu.se/~glance/dhcpd-hackers/bpf+ndd-070228.patch http://www.acc.umu.se/~glance/dhcpd-hackers/if_ether-070228.patch //Anton On 28 February, 2007 - Anton Lundin wrote: > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > Helo. > > I have for a couple of days tried to learn dhcpd to work with multiple > interfaces on Aix. I have found out that both aix and dhcpd support > multiple networking api's and have tried different ones. Aix dlpi is just > too damaged to bind to one interface, and bpf lacks the support of > sending packages. > That's when i found out about NDD (Socket Addresses in the Operating > System Network Device Driver ) that works kinda like bpf sending and > modified the bpf-code to use NDD to send packets. > > And... It works. Wonderful. > > Here comes two patches, One to fix macro-guards for one header file and > the other one is the bpf+ndd patch for aix. The bpf+ndd code is not as > generic as most of you probably would like it to be but it works =) , and > it is a good start to supporting multiple interfaces under aix. > > All testing and devel has been done under aix 5.1, and just light testing > under aix 5.3. > > Look at the code and provide feedback how it's supposed to be > implemented. If testing is needed and testcases need to be done I could > gladly do that to get the code accepted. > > -- > Anton Lundin +46702-161604 > main(k){printf((k>160?2:k>128?2250357:k>96?1398052:k>64?7427366:k>32?559235> 7: > 2242082)>>(k-1)&1?"##":" ");printf(k%32?"\0":"\n");return k==192?0:mai> n(k+1);} > > > -- Anton Lundin +46702-161604 main(k){printf((k>160?2:k>128?2250357:k>96?1398052:k>64?7427366:k>32?5592357: 2242082)>>(k-1)&1?"##":" ");printf(k%32?"\0":"\n");return k==192?0:main(k+1);}