All of lore.kernel.org
 help / color / mirror / Atom feed
* promiscuous mode
@ 2015-03-26  4:00 Shankari Vaidyalingam
       [not found] ` <CAGeyXNe5bWCT6d5jUbJrrj=s9qwO_sTv_JRmpmX+rqdjDC0d_A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Shankari Vaidyalingam @ 2015-03-26  4:00 UTC (permalink / raw)
  To: dev-VfR2kkLFssw@public.gmane.org

Hi,


Would like to know whether enabling of promiscouous mode in the command
line is removed in the DPDK version 1.7.1.
I tried enabling the option by giving -P but it was giving me "Invalid
argument" error.

Regards
Shankari.V

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: recv list
@ 2012-01-09 13:26 Kurt Van Dijck
  2012-01-09 16:35 ` Wolfgang
  0 siblings, 1 reply; 11+ messages in thread
From: Kurt Van Dijck @ 2012-01-09 13:26 UTC (permalink / raw)
  To: Wolfgang; +Cc: linux-can

On Mon, Jan 09, 2012 at 10:46:17AM +0000, Wolfgang wrote:
> Hi,
> 
> now it is saying 'sendto failed: Machine is not on the network', when I am 
> sending a message with id 0x15FFD000
I think what happens is that your engine ECU (0x00) does address claiming.
During recvfrom, its 8byte name is returned in src_addr too.
Since that name has not been seen on the second network, you get an error.

Try clearing the destination NAME by:

> 
> 		len = sizeof(src_addr);
> 		ret = recvfrom(s, buf, sizeof(buf), 0, (void *)&src_addr, &len);
> 		
> 		
> 		if (ret < 0)
> 		perror ("recvfrom failed");
> 		
> 		src_addr.can_addr.j1939.addr = J1939_NO_ADDR;

+ 		src_addr.can_addr.j1939.name = J1939_NO_NAME;

> 
> 		
> 			if (sendto(s2, buf, ret, 0, (void *)&src_addr, len) < 0)
> 				perror("sendto failed");
> 						
> 	}
> 

Kurt

^ permalink raw reply	[flat|nested] 11+ messages in thread
* promiscuous mode
@ 2005-06-03  9:09 knash
  2005-06-04  8:49 ` Jonas Berlin
  2005-06-06 10:08 ` KOVACS Krisztian
  0 siblings, 2 replies; 11+ messages in thread
From: knash @ 2005-06-03  9:09 UTC (permalink / raw)
  To: netfilter-devel

Hello,
I set up my wireless card in promiscuous mode. I want to capture all
unicast packets using the hook NF_IP_PRE_ROUTING but packets other then
the ones destined for my machine are been dropped.
I found this link, which talks about a NF_IP_PROMISC hook
This seems to be exactly what I want

https://lists.netfilter.org/pipermail/netfilter-devel/2001-November.txt

The only think is it refers to modifying
netfilter/userspace/libiptc/libip4tc.c which doesn't seem to exist on the
version of linux I'm running.

I'm currently using
Fedora Core 2 (2.6.5-1.358)
and iptables v1.2.9

I was wondering does the latest version of netfilter support promiscuous
mode or is there a patch available out there somewhere ??

Thanks very much for your help,

Kevin

^ permalink raw reply	[flat|nested] 11+ messages in thread
* promiscuous mode
@ 2005-06-01 22:58 knash
  0 siblings, 0 replies; 11+ messages in thread
From: knash @ 2005-06-01 22:58 UTC (permalink / raw)
  To: netfilter

Hello,
I set up my wireless card in promiscuous mode. I want to capture all
unicast packets using the hook NF_IP_PRE_ROUTING but packets other the
ones destined for my machine are been dropped.
I found this link, but its dated 2001

http://www.scaramanga.co.uk/code-fu/netfilter-promisc.diff

It refers to modifying netfilter/userspace/libiptc/libip4tc.c which my
version of netfilter doesn't seem to have.
I'm running Fedora Core 2 (2.6.5-1.358)
and iptables v1.2.9

I was wondering does the current version of netfilter support promiscuous
mode or is there a patch available??

Thanks very much for your help,

Kevin



^ permalink raw reply	[flat|nested] 11+ messages in thread
* promiscuous mode
@ 2003-10-02 23:12 nils toedtmann
  2003-10-03 10:00 ` Harald Welte
  0 siblings, 1 reply; 11+ messages in thread
From: nils toedtmann @ 2003-10-02 23:12 UTC (permalink / raw)
  To: netfilter

Hi,

i want to do passive accounting using the ULOG target. As i 
understood, netfilter can only see packets passing the kernel
routing code. That explains why i cannot see packets (except 
those for the box itself) passing the NIC in mangle/PREROUTING
(NIC in promiscuous mode).

The only solution google digged was 

  <http://www.fokus.gmd.de/research/cc/glone/employees/sebastian.zander/private/netfilter.html>

but thats against iptables 1.2.3 (2001-11-06). Is there any
other way doing passive accounting with iptables?

I know that this is not the first time this question shows up.
The last message on this topic i found is 11 months old, i am 
just hoping things changed since then ;-) Our needs are simple,
so i try to avoid using one of those listening userland deamons 
like net-acctd.

/nils.


-- 
sig.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-03-26 11:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-26  4:00 promiscuous mode Shankari Vaidyalingam
     [not found] ` <CAGeyXNe5bWCT6d5jUbJrrj=s9qwO_sTv_JRmpmX+rqdjDC0d_A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-26 11:07   ` Olivier MATZ
  -- strict thread matches above, loose matches on Subject: below --
2012-01-09 13:26 recv list Kurt Van Dijck
2012-01-09 16:35 ` Wolfgang
2012-01-10  8:51   ` Kurt Van Dijck
2012-01-10 10:45     ` Wolfgang
2012-01-10 15:23       ` Kurt Van Dijck
2012-01-11 16:06         ` promiscuous mode Wolfgang
2005-06-03  9:09 knash
2005-06-04  8:49 ` Jonas Berlin
2005-06-05 16:00   ` knash
2005-06-05 20:21     ` Jonas Berlin
2005-06-06 10:08 ` KOVACS Krisztian
2005-06-01 22:58 knash
2003-10-02 23:12 nils toedtmann
2003-10-03 10:00 ` Harald Welte

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.