omapi problem:: relay

foomail123 foomail123 at yahoo.com
Wed Aug 9 22:53:14 UTC 2006



Question:

When dhcrelay.c::relay(..) routine is invoked, I see
[interface_info struct with uninitialized values..]:

===================

0x402943d8 in ?? ()
(gdb) b relay
Breakpoint 1 at 0x16fc4: file src/dhcrelay.c, line
396.
(gdb) c
Continuing.

Breakpoint 1, relay (ip=0x53258, packet=0xbfffebd4,
length=300, from_port=68, from=

(gdb) p /x *ip
$1 = {type = 0x52440, refcnt = 0x4, handle = 0x0,
outer = 0x53140, inner = 0x0, next = 0x52960,
shared_network = 0x0, 
  hw_address = {hlen = 0x7, hbuf = {0x1, 0x0, 0x50,
0xc2, 0x4b, 0xae, 0x19, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 
      0x0}}, primary_address = {s_addr = 0x0},
circuit_id = 0x0, circuit_id_len = 0x0, remote_id =
0x0, 
  remote_id_len = 0x0, name = {0x65, 0x74, 0x68, 0x31,
0x0 <repeats 12 times>}, index = 0x0, rfdesc = 0x6,
wfdesc = 0x6, 


(gdb) p /x ip
$2 = 0x53258

(gdb) p  *ip
$3 = {type = 0x52440, refcnt = 4, handle = 0, outer =
0x53140, inner = 0x0, next = 0x52960, shared_network =
0x0, 
hw_address = {hlen = 7 '\a', hbuf ="\001\0000 "

}, primary_address = {
    s_addr = 0}, circuit_id = 0x0, circuit_id_len = 0,
remote_id = 0x0, remote_id_len = 0, 
  name = "eth1", '\0' <repeats 11 times>, index = 0,
rfdesc = 6, wfdesc = 6, rbuf = 0x0, rbuf_max = 0,
rbuf_offset = 0, 
  rbuf_len = 0, ifp = 0x530e8, flags = 1, client =
0x0}
(gdb) 

===================

The circuit id, primary_address etc., are not valid.
can developers can shed some light ?
If not, is there a forum for developers ?

Thanks,


--- Simon Hobson <dhcp1 at thehobsons.co.uk> wrote:

> foomail123 wrote:
> 
> >However, I have situation
> >1) interfaces are not configured when dhcp relay is
> >started. How does dhcp relay get refreshed/notified
> ?I
> >modified dhcrelay.c to:
> >         discover_interfaces
> (DISCOVER_UNCONFIGURED);
> >but does not work !
> 
> Get ifup/down scripts to restart relay whenever an
> interface changes state ?
> 
> >2) I want dhcrelay to listen not on just one but
> >a set of interfaces. How do I get this going ?
> 
> Do you mean a subset of your interfaces, or all of
> them ? If you mean 
> all of them then I believe your start the relay
> without specifying 
> any interfaces and it will listen on all of them. If
> you really do 
> mean a subset of active interfaces, then again, get
> your ifup/down 
> scripts to call something that will enumerate all
> the interfaces and 
> start the relay with the ones you want and which are
> up.
> 
> That's all I can think of.
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the dhcp-users mailing list