Re: [vpp-dev] inet raw socket

2018-11-20 Thread saint_sun 孙 via Lists . Fd . Io
Hi Ole, thanks for your advice, I have done something about option 3, So that other applications can not sense the changes of the socket. saint_...@aliyun.com From: Ole Troan Date: 2018-11-13 15:47 To: saint_sun CC: vpp-dev Subject: Re: [vpp-dev] inet raw socket Hi again, > yes,

Re: [vpp-dev] inet raw socket

2018-11-13 Thread Florin Coras
Option 3.5, if one plans to use any of the transport protocols, would be to write a builtin application, as opposed to using vcl/raw session layer apis. Florin > On Nov 12, 2018, at 11:47 PM, Ole Troan wrote: > > Hi again, > >> yes, we have a control plane, and the protocols I mentioned belo

Re: [vpp-dev] inet raw socket

2018-11-12 Thread Ole Troan
Hi again, > yes, we have a control plane, and the protocols I mentioned below run in the > control plane. > when these protocols want to send packets, they organize their own protocol > data then call inet raw socket to set the IP header and link header. when > received a packet from the interf

Re: [vpp-dev] inet raw socket

2018-11-12 Thread saint_sun 孙 via Lists . Fd . Io
, first we will stripe the link header and ip header then hand over to the corresponding modules through inet raw socket. Now can you know what I want to do? saint_sun From: Ole Troan Date: 2018-11-08 11:11 To: saint_sun CC: vpp-dev Subject: Re: [vpp-dev] inet raw socket > Some protocols

Re: [vpp-dev] inet raw socket

2018-11-08 Thread saint_sun 孙 via Lists . Fd . Io
hello Ole, yes, we have a control plane, and the protocols I mentioned below run in the control plane. when these protocols want to send packets, they organize their own protocol data then call inet raw socket to set the IP header and link header. when received a packet from the interface, fir

Re: [vpp-dev] inet raw socket

2018-11-07 Thread Ole Troan
> Some protocols or functions need inet raw socket to transmit and receive > packets such as ping/vrrp/pim, and I want to debug these functions. You are still leaving me guessing at what you are trying to do. You can implement these inside of VPP, where you obviously don’t need or use a socket

Re: [vpp-dev] inet raw socket

2018-11-07 Thread saint_sun 孙 via Lists . Fd . Io
Some protocols or functions need inet raw socket to transmit and receive packets such as ping/vrrp/pim, and I want to debug these functions. 可用于iOS的myMail发送 2018年11月7日 星期三 +0800 19:40 发件人 Ole Troan : >> I am confused, your suggestion is that I can use >> The API interface? > >No. What I sa

Re: [vpp-dev] inet raw socket

2018-11-07 Thread Ole Troan
> I am confused, your suggestion is that I can use > The API interface? No. What I said was that you were writing a graph node, you have direct access to the frames. Instead of playing hide and seak. Could you tell us what you are trying to do? What problem are you trying to solve? Ole > >

Re: [vpp-dev] inet raw socket

2018-11-07 Thread saint_sun 孙 via Lists . Fd . Io
I am confused, your suggestion is that I can use  The API interface? 可用于iOS的myMail发送 2018年11月7日 星期三 +0800 15:49 发件人 Ole Troan : >> <81.gif>thanks very much! And I have another question: does VPP support >> INET RAW socket, I find the UDP and TCP socket except the raw socket. > >No, but yo

Re: [vpp-dev] inet raw socket

2018-11-06 Thread Ole Troan
> <81.gif>thanks very much! And I have another question: does VPP support INET > RAW socket, I find the UDP and TCP socket except the raw socket. No, but you do get full access to the frame in the buffer. Which is generally a much more flexible interface than INET RAW. Cheers, Ole-=-=-=-=-=-=-

Re: [vpp-dev] inet raw socket

2018-11-05 Thread Florin Coras
We don’t support raw sockets. Florin > On Nov 5, 2018, at 1:15 AM, saint_sun 孙 via Lists.Fd.Io > wrote: > > > <81.gif>thanks very much! And I have another question: does VPP support INET > RAW socket, I find the UDP and TCP socket except the raw socket. > > saint_...@aliyun.com

Re: [vpp-dev] inet raw socket

2018-11-05 Thread saint_sun 孙 via Lists . Fd . Io
thanks very much! And I have another question: does VPP support INET RAW socket, I find the UDP and TCP socket except the raw socket. saint_...@aliyun.com From: Ole Troan Date: 2018-11-05 13:03 To: saint_sun CC: vpp-dev Subject: Re: [vpp-dev] Where is the definition of IP_PROTOCOL_ICMP Hi t