aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: How to set ToS Bits?  (Read 3852 times)

PetraPan

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
How to set ToS Bits?
« on: June 26, 2005, 04:28:49 AM »

HI there,

oki, i wanna set the ToS bit, default all packets are tagged 0x00 and i wanna have something like 0x02, so any advice where this is handled in the code would be great :)

cheers :)
Logged

lfroen

  • Guest
Re: How to set ToS Bits?
« Reply #1 on: June 26, 2005, 05:19:00 AM »

ToS is something handled inside kernel.
Quote
so any advice where this is handled in the code would be great

/usr/sr/linux_/net/ipv4/ or ipv6

RTFM about iptables and tc.
Logged

PetraPan

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: How to set ToS Bits?
« Reply #2 on: June 26, 2005, 01:43:39 PM »

first of all thx for your answer, and is see that i must mispelled my question. The point is not where ToS is handeld by the kernel, but by amule. Amule is responsibile for tagging his ip packets! And amule does not set the ToS bit, so my question is, where in amule-sources is the ip header handled. The point i have an extra routing linux system... and there i wanna filter and prioritise my traffic based on the ToS bit and NOT ports!

cheers :)
Logged

lfroen

  • Guest
Re: How to set ToS Bits?
« Reply #3 on: June 26, 2005, 04:43:04 PM »

Quote
Amule is responsibile for tagging his ip packets!

Quote
where in amule-sources is the ip header handled.

I think that you don't quite understand what "RTFM" mean. It mean, (in this context)  that you talking complete nonsense. You indicate lack of basic understanding about IP network.
Go and "Read The Fucking Manual" as I already suggested. Some information about OSI network model will not hurt also.
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: How to set ToS Bits?
« Reply #4 on: June 26, 2005, 05:07:35 PM »

calm down lfroen..... X(

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: How to set ToS Bits?
« Reply #5 on: June 27, 2005, 02:33:42 AM »

Quote
Originally posted by lfroen

Go and "Read The Fucking Manual" as I already suggested. Some information about OSI network model will not hurt also.
Well, in spite of the original rudeness of the expression, when someone says RTFM, he is not necessarily beeing rude. The expression has been so used that it has lost the rudeness character. Unless you explicitly name the words :P

Anyway, lfroen has a point. RTFM, please :D

Cheers!
Logged