Linux wireless drivers development
 help / color / mirror / Atom feed
* [RFC 0/3] cfg80211, mac80211: Introduce radiotap flags for finer userspace control of injection
@ 2008-12-12 22:32 Stefanik Gábor
  2008-12-12 22:37 ` Johannes Berg
  0 siblings, 1 reply; 9+ messages in thread
From: Stefanik Gábor @ 2008-12-12 22:32 UTC (permalink / raw)
  To: John W. Linville; +Cc: Johannes Berg, linux-wireless

Userspace packet injector applications might want to transmit packets
that are, by design, not supposed to be acked. In other cases, an
injector application may need to control the sequence number of the
packets it transmits. Introduce 2 new flags in the "TX flags" Radiotap
fields, controlling these 2 behaviors.

The new fields are as follows:

 * IEEE80211_RADIOTAP_TX_FLAGS

   IEEE80211_RADIOTAP_F_TX_NO_ACK: Transmit the packet once with no wai=
ting for
				   an ACK and no retrying if no ACK received
   IEEE80211_RADIOTAP_F_TX_NO_SEQ: Use the sequence number already pres=
ent in
				   the 802.11 header, do not generate a new one
				   in the driver/stack. Useful when injecting
				   fragments with the same sequence number.

Signed-off-by: G=E1bor Stefanik <netrolller.3d@gmail.com>

--=20
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [RFC 0/3] cfg80211, mac80211: Introduce radiotap flags for finer userspace control of injection
  2008-12-12 22:32 [RFC 0/3] cfg80211, mac80211: Introduce radiotap flags for finer userspace control of injection Stefanik Gábor
@ 2008-12-12 22:37 ` Johannes Berg
  2008-12-12 22:40   ` Stefanik Gábor
  2008-12-13  0:20   ` Richard Farina
  0 siblings, 2 replies; 9+ messages in thread
From: Johannes Berg @ 2008-12-12 22:37 UTC (permalink / raw)
  To: Stefanik Gábor; +Cc: John W. Linville, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

On Fri, 2008-12-12 at 23:32 +0100, Stefanik Gábor wrote:
> Userspace packet injector applications might want to transmit packets
> that are, by design, not supposed to be acked. In other cases, an
> injector application may need to control the sequence number of the
> packets it transmits. Introduce 2 new flags in the "TX flags" Radiotap
> fields, controlling these 2 behaviors.
> 
> The new fields are as follows:
> 
>  * IEEE80211_RADIOTAP_TX_FLAGS
> 
>    IEEE80211_RADIOTAP_F_TX_NO_ACK: Transmit the packet once with no waiting for
> 				   an ACK and no retrying if no ACK received
>    IEEE80211_RADIOTAP_F_TX_NO_SEQ: Use the sequence number already present in
> 				   the 802.11 header, do not generate a new one
> 				   in the driver/stack. Useful when injecting
> 				   fragments with the same sequence number.

Umm, these aren't really defined by radiotap yet. Does all of this have
to be NOW?

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [RFC 0/3] cfg80211, mac80211: Introduce radiotap flags for finer userspace control of injection
  2008-12-12 22:37 ` Johannes Berg
@ 2008-12-12 22:40   ` Stefanik Gábor
  2008-12-12 22:42     ` Johannes Berg
  2008-12-12 22:50     ` Johannes Berg
  2008-12-13  0:20   ` Richard Farina
  1 sibling, 2 replies; 9+ messages in thread
From: Stefanik Gábor @ 2008-12-12 22:40 UTC (permalink / raw)
  To: Johannes Berg; +Cc: John W. Linville, linux-wireless

On Fri, Dec 12, 2008 at 11:37 PM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> On Fri, 2008-12-12 at 23:32 +0100, Stefanik G=E1bor wrote:
>> Userspace packet injector applications might want to transmit packet=
s
>> that are, by design, not supposed to be acked. In other cases, an
>> injector application may need to control the sequence number of the
>> packets it transmits. Introduce 2 new flags in the "TX flags" Radiot=
ap
>> fields, controlling these 2 behaviors.
>>
>> The new fields are as follows:
>>
>>  * IEEE80211_RADIOTAP_TX_FLAGS
>>
>>    IEEE80211_RADIOTAP_F_TX_NO_ACK: Transmit the packet once with no =
waiting for
>>                                  an ACK and no retrying if no ACK re=
ceived
>>    IEEE80211_RADIOTAP_F_TX_NO_SEQ: Use the sequence number already p=
resent in
>>                                  the 802.11 header, do not generate =
a new one
>>                                  in the driver/stack. Useful when in=
jecting
>>                                  fragments with the same sequence nu=
mber.
>
> Umm, these aren't really defined by radiotap yet. Does all of this ha=
ve
> to be NOW?
>
> johannes
>

No, that's why I submitted it as an RFC.

By the way, what is the preferred method of contacting the Radiotap
staff now that the mailing list seems to be permanently down?

--G=E1bor

--=20
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [RFC 0/3] cfg80211, mac80211: Introduce radiotap flags for finer userspace control of injection
  2008-12-12 22:40   ` Stefanik Gábor
@ 2008-12-12 22:42     ` Johannes Berg
  2008-12-12 22:50     ` Johannes Berg
  1 sibling, 0 replies; 9+ messages in thread
From: Johannes Berg @ 2008-12-12 22:42 UTC (permalink / raw)
  To: Stefanik Gábor; +Cc: John W. Linville, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

On Fri, 2008-12-12 at 23:40 +0100, Stefanik Gábor wrote:

> No, that's why I submitted it as an RFC.

Phew. FWIW, except that the no-seq isn't defined by any other OS yet, it
seems at least compatible.

> By the way, what is the preferred method of contacting the Radiotap
> staff now that the mailing list seems to be permanently down?

I'm trying to convince David Young to get a new list. Netbsd seemed
willing to host it, but I haven't heard back yet (he wanted to have it
done a week ago)

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [RFC 0/3] cfg80211, mac80211: Introduce radiotap flags for finer userspace control of injection
  2008-12-12 22:40   ` Stefanik Gábor
  2008-12-12 22:42     ` Johannes Berg
@ 2008-12-12 22:50     ` Johannes Berg
  2008-12-12 22:54       ` Stefanik Gábor
  1 sibling, 1 reply; 9+ messages in thread
From: Johannes Berg @ 2008-12-12 22:50 UTC (permalink / raw)
  To: Stefanik Gábor; +Cc: John W. Linville, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 371 bytes --]

On Fri, 2008-12-12 at 23:40 +0100, Stefanik Gábor wrote:

> [...]

Incidentally, as for the radiotap changes, I'm wondering whether the
flag really should be "no seqno" or should be "assign seqno" instead. It
seems injection should be "as raw as possible" by default. But things
like that really need to be worked out with people from other systems.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [RFC 0/3] cfg80211, mac80211: Introduce radiotap flags for finer userspace control of injection
  2008-12-12 22:50     ` Johannes Berg
@ 2008-12-12 22:54       ` Stefanik Gábor
  2008-12-12 22:57         ` Johannes Berg
  0 siblings, 1 reply; 9+ messages in thread
From: Stefanik Gábor @ 2008-12-12 22:54 UTC (permalink / raw)
  To: Johannes Berg; +Cc: John W. Linville, linux-wireless

On Fri, Dec 12, 2008 at 11:50 PM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> On Fri, 2008-12-12 at 23:40 +0100, Stefanik G=E1bor wrote:
>
>> [...]
>
> Incidentally, as for the radiotap changes, I'm wondering whether the
> flag really should be "no seqno" or should be "assign seqno" instead.=
 It
> seems injection should be "as raw as possible" by default. But things
> like that really need to be worked out with people from other systems=
=2E
>
> johannes
>

Using an "assign seqno" flag would cause existing injectors that
expect the kernel to do seq numbering for them to fail. This possibly
includes hostap and penumbra.

--=20
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [RFC 0/3] cfg80211, mac80211: Introduce radiotap flags for finer userspace control of injection
  2008-12-12 22:54       ` Stefanik Gábor
@ 2008-12-12 22:57         ` Johannes Berg
  0 siblings, 0 replies; 9+ messages in thread
From: Johannes Berg @ 2008-12-12 22:57 UTC (permalink / raw)
  To: Stefanik Gábor; +Cc: John W. Linville, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 467 bytes --]

On Fri, 2008-12-12 at 23:54 +0100, Stefanik Gábor wrote:

> Using an "assign seqno" flag would cause existing injectors that
> expect the kernel to do seq numbering for them to fail. This possibly
> includes hostap and penumbra.

Yeah, I know, but can hostapd/penumbra really expect getting seqnos on
other platforms? If not, then for the sake of interoperability it might
make sense to switch around and have hostapd/penumbra just set the bit.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [RFC 0/3] cfg80211, mac80211: Introduce radiotap flags for finer userspace control of injection
  2008-12-12 22:37 ` Johannes Berg
  2008-12-12 22:40   ` Stefanik Gábor
@ 2008-12-13  0:20   ` Richard Farina
  2008-12-13  0:26     ` Johannes Berg
  1 sibling, 1 reply; 9+ messages in thread
From: Richard Farina @ 2008-12-13  0:20 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Stefanik Gábor, John W. Linville, linux-wireless

Johannes Berg wrote:
> On Fri, 2008-12-12 at 23:32 +0100, Stefanik G=C3=A1bor wrote:
>  =20
>> Userspace packet injector applications might want to transmit packet=
s
>> that are, by design, not supposed to be acked. In other cases, an
>> injector application may need to control the sequence number of the
>> packets it transmits. Introduce 2 new flags in the "TX flags" Radiot=
ap
>> fields, controlling these 2 behaviors.
>>
>> The new fields are as follows:
>>
>>  * IEEE80211_RADIOTAP_TX_FLAGS
>>
>>    IEEE80211_RADIOTAP_F_TX_NO_ACK: Transmit the packet once with no =
waiting for
>> 				   an ACK and no retrying if no ACK received
>>    IEEE80211_RADIOTAP_F_TX_NO_SEQ: Use the sequence number already p=
resent in
>> 				   the 802.11 header, do not generate a new one
>> 				   in the driver/stack. Useful when injecting
>> 				   fragments with the same sequence number.
>>    =20
>
> Umm, these aren't really defined by radiotap yet. Does all of this ha=
ve
> to be NOW?
>
>  =20
Is there a compelling reason to prohibit progress?

--Rick
> johannes
>  =20

--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [RFC 0/3] cfg80211, mac80211: Introduce radiotap flags for finer userspace control of injection
  2008-12-13  0:20   ` Richard Farina
@ 2008-12-13  0:26     ` Johannes Berg
  0 siblings, 0 replies; 9+ messages in thread
From: Johannes Berg @ 2008-12-13  0:26 UTC (permalink / raw)
  To: Richard Farina; +Cc: Stefanik Gábor, John W. Linville, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 332 bytes --]

On Fri, 2008-12-12 at 19:20 -0500, Richard Farina wrote:

> > Umm, these aren't really defined by radiotap yet. Does all of this have
> > to be NOW?

> Is there a compelling reason to prohibit progress?

Well, it should be done with radiotap.org...

Incidentally, the new list is there. radiotap@radiotap.org.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2008-12-13  0:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-12 22:32 [RFC 0/3] cfg80211, mac80211: Introduce radiotap flags for finer userspace control of injection Stefanik Gábor
2008-12-12 22:37 ` Johannes Berg
2008-12-12 22:40   ` Stefanik Gábor
2008-12-12 22:42     ` Johannes Berg
2008-12-12 22:50     ` Johannes Berg
2008-12-12 22:54       ` Stefanik Gábor
2008-12-12 22:57         ` Johannes Berg
2008-12-13  0:20   ` Richard Farina
2008-12-13  0:26     ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox