Thanks Justin. I have gone through the OVS code and I see the fucntion "nl_sock_create" is called from these fucntions
1.do_lookup_genl_family : (protocol for socket creation : NETLINK_GENERIC) 2. nl_pool_alloc : ( protocol : NETLINK_ROUTE) 3. netdev_linux_notify_sock : ( protocol : NETLINK_ROUTE) for notifying the changes in ports So I assume that "nl_pool_alloc" is the fucntion asks for packets from kernal module. Please correct me if I'm wrong. On Tue, Jan 7, 2014 at 6:01 AM, Justin Pettit <[email protected]> wrote: > I don't understand what you're trying to do. You started the thread > talking about handling flows through an IPC socket. > > --Justin > > > > On Sun, Jan 5, 2014 at 3:04 AM, thasleem palara <[email protected]>wrote: > >> Justin, I'm trying OVS without kernel module, and I just want to know the >> working of OVS without kernal module. >> So I planned to check, which part of source is listening for packet in >> userspace. Can u please help me by pointing the >> code where userspace is listening for packet. >> >> >> On Sun, Jan 5, 2014 at 2:46 AM, Justin Pettit <[email protected]> wrote: >> >>> Why are you trying to modify the OVS code? You can't accomplish what >>> you want with OpenFlow? >>> >>> --Justin >>> >>> >>> On Jan 4, 2014, at 5:31 AM, thasleem palara <[email protected]> wrote: >>> >>> justin, >>> Thanks for the sudden reply. What I'm trying is, to send a DHCP or ARP >>> packet (which is hard-coded by me) to OVS through any method (like socket >>> programming). But Still I'm not able to find the code in OVS where I can >>> change to listen for my packet. >>> All I knew is ,handle_upcalls() function handles the packet form kernal >>> space. >>> Can u please help me on this. >>> >>> Thanks >>> >>> >>> On Sat, Jan 4, 2014 at 2:04 AM, Justin Pettit <[email protected]>wrote: >>> >>>> You can use the "packet-out" message, if you've got an OpenFlow >>>> connection to the switch. If you're just looking to script something, you >>>> can use the "packet-out" command in ovs-ofctl. >>>> >>>> --Justin >>>> >>>> >>>> >>>> >>>> On Fri, Jan 3, 2014 at 11:50 AM, thasleem palara >>>> <[email protected]>wrote: >>>> >>>>> Is it possible to send packet into OVS through Userspace , I mean >>>>> through ipc socket programming. Please help... >>>>> >>>>> _______________________________________________ >>>>> discuss mailing list >>>>> [email protected] >>>>> http://openvswitch.org/mailman/listinfo/discuss >>>>> >>>>> >>>> >>> >> >
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
