:The latter, wouldn't make much sense if your peer could dictate a scaling
:factor.
:
:The wscale for the other direction is set here:
:http://fxr.watson.org/fxr/source/net/pf/pf.c?v=DFBSD#L3810 ff. Note that
:this is in the state tracking already, we are looking at the first packet
:from src and TH_SYN is set (-> this is the SYN+ACK) from the peer.
:dst.wscale was already set when the state was created:
:http://fxr.watson.org/fxr/source/net/pf/pf.c?v=DFBSD#L2727 (where src is
:the other end sending the initial SYN).
:
:At least this is the way things behave when you have "flags S/SA".
:
:\ / Max Laier | ICQ #67774661
Got it. Oooh, that's nasty. It's confirming that the SYN is for
the other direction by testing the seqlo variable, which is non-zero
on the direction that already got the SYN, and zero on the direction
that hasn't. That code comment deserves to be expanded a bit :-)
Here's a new patch, changing the one SYN detect flag into two flags
and setting them in the proper places. 'pfctl -s state -v -v' now
reports three possible states: 'indeterminate', 'incomplete', and
'good'.
fetch http://apollo.backplane.com/DFlyMisc/pickups02.patch
I did some quick testing and all three states appear to work properly,
so if someone forgets to 'keep state' in both directions the state
output will say 'incomplete' instead of 'good'.
-Matt
Matthew Dillon
<dillon@backplane.com>
| Linus Torvalds | Linux 2.6.27 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Christoph Lameter | Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures |
| Rafael J. Wysocki | [Bug #10669] ACPI: kmemcheck: Caught 16-bit read from freed memory (f7c12ec6) |
git: | |
| Johannes Sixt | [PATCH 03/40] Add target architecture MinGW. |
| Eivind LM | Split a subversion repo into several git repos |
| Carl Baldwin | Revisiting large binary files issue. |
| Anatoly Yakovenko | GIT_SSL_NO_VERIFY=1 over http doesn't ignore a different ip address for the signed... |
| Linux Kernel Mailing List | i.MX3: make SoC devices globally available |
| Linux Kernel Mailing List | [MACVLAN]: Update Kconfig to refer to iproute |
| Linux Kernel Mailing List | MXC: Remove WD IRQ priority setting |
| Linux Kernel Mailing List | ARM: DaVinci: i2c setup |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| Richard Stallman | Real men don't attack straw men |
| Kevin Neff | Patching a SSH 'Weakness' |
| Pieter Verberne | Remove escape characters from file |
| How to make my PCIE ATA storage device running in Linux | 1 hour ago | Linux general |
| sata/ide timeout errors on asus server-mb | 4 hours ago | Linux kernel |
| Shared swap partition | 5 hours ago | Linux general |
| usb mic not detected | 9 hours ago | Applications and Utilities |
| Problem in Inserting a module | 10 hours ago | Linux kernel |
| Treason Uncloaked | 16 hours ago | Linux kernel |
| high memory | 2 days ago | Linux kernel |
| semaphore access speed | 3 days ago | Applications and Utilities |
| the kernel how to power off the machine | 3 days ago | Linux kernel |
| Easter Eggs in windows XP | 3 days ago | Windows |
