Hi,
I’m building intermediate driver which is located below IP.
uname -a is:
QNX6.1.0 2002/08/23-19:38:50edt x86pc x86
In my system the user is loaded ppp connection from time to time.
Each time the user is doing that I need to catch the allocated ppp IP
address and update with it my driver.
- Any idea how do I do it?
- how do I do the same for Ethernet? (or is it the same way?)
–
Cheers
==============
Benzy Gabay
Benzy Gabay <bgabay@maya-st.com> wrote:
Hi,
I’m building intermediate driver which is located below IP.
uname -a is:
QNX6.1.0 2002/08/23-19:38:50edt x86pc x86
In my system the user is loaded ppp connection from time to time.
Each time the user is doing that I need to catch the allocated ppp IP
address and update with it my driver.
- Any idea how do I do it?
- how do I do the same for Ethernet? (or is it the same way?)
Watch out the npkt with “_NPKT_MSG” flag set, there will be a
“_IO_NET_MSG_ADDR_ADD” as well as “_IO_NET_MSG_ADDR_DEL” go
though you (since you are below IP, these packets probably
comming in from your rx_up() function), these “message packet”
is meant to told you and IP address is set/deleted.
-xtang
–
Cheers
Benzy Gabay
Actually i think the IO_NET_MSG_ADDR_ADD/DEL come in the rx_down functions
since they are generated by the IP layer.
Sreekanth
“Xiaodan Tang” <xtang@qnx.com> wrote in message
news:a3uo7h$ljd$2@nntp.qnx.com…
Benzy Gabay <> bgabay@maya-st.com> > wrote:
Hi,
I’m building intermediate driver which is located below IP.
uname -a is:
QNX6.1.0 2002/08/23-19:38:50edt x86pc x86
In my system the user is loaded ppp connection from time to time.
Each time the user is doing that I need to catch the allocated ppp IP
address and update with it my driver.
- Any idea how do I do it?
- how do I do the same for Ethernet? (or is it the same way?)
Watch out the npkt with “_NPKT_MSG” flag set, there will be a
“_IO_NET_MSG_ADDR_ADD” as well as “_IO_NET_MSG_ADDR_DEL” go
though you (since you are below IP, these packets probably
comming in from your rx_up() function), these “message packet”
is meant to told you and IP address is set/deleted.
-xtang
–
Cheers
Benzy Gabay
Well the winner is rx_down.
After tracing with gdb on the io-net I can see that when a user does
ifconfig command, which changes the current IP address the rx_down function
is immediately been called with the mentioned flags.
Thanks people!
–
Cheers
Benzy Gabay
“Sreekanth” <sreekanth@cambira.com> wrote in message
news:a3vgon$n6a$1@inn.qnx.com…
Actually i think the IO_NET_MSG_ADDR_ADD/DEL come in the rx_down functions
since they are generated by the IP layer.
Sreekanth
“Xiaodan Tang” <> xtang@qnx.com> > wrote in message
news:a3uo7h$ljd$> 2@nntp.qnx.com> …
Benzy Gabay <> bgabay@maya-st.com> > wrote:
Hi,
I’m building intermediate driver which is located below IP.
uname -a is:
QNX6.1.0 2002/08/23-19:38:50edt x86pc x86
In my system the user is loaded ppp connection from time to time.
Each time the user is doing that I need to catch the allocated ppp IP
address and update with it my driver.
- Any idea how do I do it?
- how do I do the same for Ethernet? (or is it the same way?)
Watch out the npkt with “_NPKT_MSG” flag set, there will be a
“_IO_NET_MSG_ADDR_ADD” as well as “_IO_NET_MSG_ADDR_DEL” go
though you (since you are below IP, these packets probably
comming in from your rx_up() function), these “message packet”
is meant to told you and IP address is set/deleted.
-xtang
–
Cheers
Benzy Gabay
\
mmmmm…
Where does the IO_NET_MSG_ADDR_ADD/DEL should be located on ?
How can I fetch it?
–
Cheers
Benzy Gabay
“Benzy Gabay” <bgabay@maya-st.com> wrote in message
news:a45avb$1oc$1@inn.qnx.com…
Well the winner is rx_down.
After tracing with gdb on the io-net I can see that when a user does
ifconfig command, which changes the current IP address the rx_down
function
is immediately been called with the mentioned flags.
Thanks people!
–
Cheers
Benzy Gabay
“Sreekanth” <> sreekanth@cambira.com> > wrote in message
news:a3vgon$n6a$> 1@inn.qnx.com> …
Actually i think the IO_NET_MSG_ADDR_ADD/DEL come in the rx_down
functions
since they are generated by the IP layer.
Sreekanth
“Xiaodan Tang” <> xtang@qnx.com> > wrote in message
news:a3uo7h$ljd$> 2@nntp.qnx.com> …
Benzy Gabay <> bgabay@maya-st.com> > wrote:
Hi,
I’m building intermediate driver which is located below IP.
uname -a is:
QNX6.1.0 2002/08/23-19:38:50edt x86pc x86
In my system the user is loaded ppp connection from time to time.
Each time the user is doing that I need to catch the allocated ppp
IP
address and update with it my driver.
- Any idea how do I do it?
- how do I do the same for Ethernet? (or is it the same way?)
Watch out the npkt with “_NPKT_MSG” flag set, there will be a
“_IO_NET_MSG_ADDR_ADD” as well as “_IO_NET_MSG_ADDR_DEL” go
though you (since you are below IP, these packets probably
comming in from your rx_up() function), these “message packet”
is meant to told you and IP address is set/deleted.
-xtang
–
Cheers
Benzy Gabay
\
Benzy Gabay <bgabay@maya-st.com> wrote:
mmmmm…
Where does the IO_NET_MSG_ADDR_ADD/DEL should be located on ?
How can I fetch it?
io_net_msg_addr_add_t *msg = npkt->buffers.tqh_first->net_iov->iov_base;
-xtang
–
Cheers
Benzy Gabay
“Benzy Gabay” <> bgabay@maya-st.com> > wrote in message
news:a45avb$1oc$> 1@inn.qnx.com> …
Well the winner is rx_down.
After tracing with gdb on the io-net I can see that when a user does
ifconfig command, which changes the current IP address the rx_down
function
is immediately been called with the mentioned flags.
Thanks people!
–
Cheers
Benzy Gabay
“Sreekanth” <> sreekanth@cambira.com> > wrote in message
news:a3vgon$n6a$> 1@inn.qnx.com> …
Actually i think the IO_NET_MSG_ADDR_ADD/DEL come in the rx_down
functions
since they are generated by the IP layer.
Sreekanth
“Xiaodan Tang” <> xtang@qnx.com> > wrote in message
news:a3uo7h$ljd$> 2@nntp.qnx.com> …
Benzy Gabay <> bgabay@maya-st.com> > wrote:
Hi,
I’m building intermediate driver which is located below IP.
uname -a is:
QNX6.1.0 2002/08/23-19:38:50edt x86pc x86
In my system the user is loaded ppp connection from time to time.
Each time the user is doing that I need to catch the allocated ppp
IP
address and update with it my driver.
- Any idea how do I do it?
- how do I do the same for Ethernet? (or is it the same way?)
Watch out the npkt with “_NPKT_MSG” flag set, there will be a
“_IO_NET_MSG_ADDR_ADD” as well as “_IO_NET_MSG_ADDR_DEL” go
though you (since you are below IP, these packets probably
comming in from your rx_up() function), these “message packet”
is meant to told you and IP address is set/deleted.
-xtang
–
Cheers
Benzy Gabay
\