Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Ethernet type modification: (5 Items)
   
Ethernet type modification  
Hello,

I want to change the ether type parameter of the ethernet header of ethernet packet.  This needs to be done for all the 
ethernet packets that moves out of the ethernet interface.

Similarly all the ethernet packets received at an interface need to be verified with its ether type at its ethernet 
header and if it matches with the custom ether type id, then only it need to be send to the stack.  Else that packet 
needs to be discarded.

Can anyone please suggest me how to do these above two requirements?

Warm regards,
Santhosh. A
Re: Ethernet type modification  
These changes will need to be made at the driver level.

-- 
Hugh Brown
QNX Software Systems Limited
1001 Farrar Rd.,
Ottawa. ON. K2K 0B3.
Telephone: 613-591-0931







On 12-04-17 5:54 AM, "Santhosh A" <community-noreply@qnx.com> wrote:

>Hello,
>
>I want to change the ether type parameter of the ethernet header of
>ethernet packet.  This needs to be done for all the ethernet packets that
>moves out of the ethernet interface.
>
>Similarly all the ethernet packets received at an interface need to be
>verified with its ether type at its ethernet header and if it matches
>with the custom ether type id, then only it need to be send to the stack.
> Else that packet needs to be discarded.
>
>Can anyone please suggest me how to do these above two requirements?
>
>Warm regards,
>Santhosh. A
>
>
>
>_______________________________________________
>
>Technology
>http://community.qnx.com/sf/go/post92576
>
Re: Ethernet type modification  
Hello,

Thanks for the reply.

I am using P1020RDB and QNX6.5.0.

In the build file the below command exists fro io-pkt,
io-pkt-v4-hc -d mpc85xx emu_phy=0

With your reply, did you mean that this need to be done in the mpc85xx driver?

I also saw a document in the QNX commmunicty help as given below.
http://community.qnx.com/sf/wiki/do/viewPage/projects.networking/wiki/Filtering_wiki_page

In this, if all packets that move in and out of tsec0 ethernet interface, then Is it possible for me do this ether type 
updation in the packet at the below function?

"static int output_hook(void *arg, struct mbuf **m, struct ifnet *ifp, int dir)"

Please clarify.

Thanks and warm regards,
Santhosh. A
Re: Ethernet type modification  
You can either do this in the driver or use the packet filtering interface
you described below. It's your decision.

-- 
Hugh Brown
QNX Software Systems Limited
1001 Farrar Rd.,
Ottawa. ON. K2K 0B3.
Telephone: 613-591-0931







On 12-04-17 11:21 PM, "Santhosh A" <community-noreply@qnx.com> wrote:

>Hello,
>
>Thanks for the reply.
>
>I am using P1020RDB and QNX6.5.0.
>
>In the build file the below command exists fro io-pkt,
>io-pkt-v4-hc -d mpc85xx emu_phy=0
>
>With your reply, did you mean that this need to be done in the mpc85xx
>driver?
>
>I also saw a document in the QNX commmunicty help as given below.
>http://community.qnx.com/sf/wiki/do/viewPage/projects.networking/wiki/Filt
>ering_wiki_page
>
>In this, if all packets that move in and out of tsec0 ethernet interface,
>then Is it possible for me do this ether type updation in the packet at
>the below function?
>
>"static int output_hook(void *arg, struct mbuf **m, struct ifnet *ifp,
>int dir)"
>
>Please clarify.
>
>Thanks and warm regards,
>Santhosh. A
>
>
>
>
>_______________________________________________
>
>Technology
>http://community.qnx.com/sf/go/post92594
>
Re: Ethernet type modification  
Hello,

Thanks for the information.  But I am new to networking, so would appreciate if you can explain this in detail.

1)))I tried to get the ether type from input_hook() as given in the article.  But unable to fetch it, It looks like I am
 wrong and I will not get ether type information from the input_hook() as PFIL_TYPE_AF is used for getting the head of 
the list.

Please confirm is it really possible to get the ether type information in the ethernet header using the application 
explained in filtering.html document.  If possible, please let me know how?

2)))I was going through another discussion in this community "http://community.qnx.com/sf/discussion/do/listPosts/
projects.networking/discussion.technology.topc2806?pageSize=-1#post_post8281"
which says ethernet hook is possible as done in QNET.  But I am not able to find any information anywhere.  Please guide
 me on this.


Thanks and warm regards,
Santhosh. A