the diff between ppp0 and eno

Hi,

I’ve built a filter below IP.
I’m intercepting both ppp and ethernet packets.
Which possebilities do i have to deferentiate between incoming/outgoing
packets of each interface ?


Cheers

Benzy Gabay
R&D, IPSec team
Maya Software Technologies Ltd.
http://www.maya-st.com
Tel: + 972 9 956 01 35 Fax: + 972 9 955 96 54
mailto: bgabay@maya-st.com

On up headed packets, the cell, endpoint, iface parameters
to your rx_up() func tell you who originated the packet.

On down headed packets, npkt->cell, npkt->endpoint, npkt->iface
tell you where it’s going to (which interface is to put it
out).

-seanb

Benzy Gabay <bgabay@maya-st.com> wrote:
: Hi,

: I’ve built a filter below IP.
: I’m intercepting both ppp and ethernet packets.
: Which possebilities do i have to deferentiate between incoming/outgoing
: packets of each interface ?

: –
: Cheers
: ==============================
: Benzy Gabay
: R&D, IPSec team
: Maya Software Technologies Ltd.
: http://www.maya-st.com
: Tel: + 972 9 956 01 35 Fax: + 972 9 955 96 54
: mailto: bgabay@maya-st.com

Sean,

I’m using 2 interfaces on the same computer: en0, ppp0.
I can see that the only diffreance between the above is on the cell (the
rest are always 0).
ethernet: cell=0
ppp: cell =2

Can i be sure that these valuses will remain the same on diffrent systems
(e.g.: x86, ppc, rpx-lite) with the same identical interfaces ?


Cheers

Benzy Gabay
“Sean Boudreau” <seanb@qnx.com> wrote in message
news:a26lo1$gpt$1@nntp.qnx.com

On up headed packets, the cell, endpoint, iface parameters
to your rx_up() func tell you who originated the packet.

On down headed packets, npkt->cell, npkt->endpoint, npkt->iface
tell you where it’s going to (which interface is to put it
out).

-seanb

Benzy Gabay <> bgabay@maya-st.com> > wrote:
: Hi,

: I’ve built a filter below IP.
: I’m intercepting both ppp and ethernet packets.
: Which possebilities do i have to deferentiate between incoming/outgoing
: packets of each interface ?

: –
: Cheers
: ==============================
: Benzy Gabay
: R&D, IPSec team
: Maya Software Technologies Ltd.
: > http://www.maya-st.com
: Tel: + 972 9 956 01 35 Fax: + 972 9 955 96 54
: mailto: > bgabay@maya-st.com

It depends on the order things are started in. All “en” are
in a particular cell, all “ppp” are in another etc… When
your filter is mounted, you should receive a msg npkt of
type _IO_NET_MSG_DL_ADVERT for every interface below you.
You can learn who is who this way.

-seanb

Benzy Gabay <bgabay@maya-st.com> wrote:
: Sean,

: I’m using 2 interfaces on the same computer: en0, ppp0.
: I can see that the only diffreance between the above is on the cell (the
: rest are always 0).
: ethernet: cell=0
: ppp: cell =2

: Can i be sure that these valuses will remain the same on diffrent systems
: (e.g.: x86, ppc, rpx-lite) with the same identical interfaces ?

: –
: Cheers
: ==============
: Benzy Gabay
: “Sean Boudreau” <seanb@qnx.com> wrote in message
: news:a26lo1$gpt$1@nntp.qnx.com
:>
:> On up headed packets, the cell, endpoint, iface parameters
:> to your rx_up() func tell you who originated the packet.
:>
:> On down headed packets, npkt->cell, npkt->endpoint, npkt->iface
:> tell you where it’s going to (which interface is to put it
:> out).
:>
:> -seanb
:>
:> Benzy Gabay <bgabay@maya-st.com> wrote:
:> : Hi,
:>
:> : I’ve built a filter below IP.
:> : I’m intercepting both ppp and ethernet packets.
:> : Which possebilities do i have to deferentiate between incoming/outgoing
:> : packets of each interface ?
:>
:> : –
:> : Cheers
:> : ==============================
:> : Benzy Gabay
:> : R&D, IPSec team
:> : Maya Software Technologies Ltd.
:> : http://www.maya-st.com
:> : Tel: + 972 9 956 01 35 Fax: + 972 9 955 96 54
:> : mailto: bgabay@maya-st.com
:>
:>