Skip to contentSkip to conversation

Killing a network connection

DISCUSSION Bodo Eggert 3 participants 3 messages Oct 15, 2007 – Oct 16, 2007 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 8 lines · Andi Kleen
Quoted 5 lines · Stefan Monnier

The main use for me is to deal with dangling connections due to taking network interfaces up&down with different IP addresses (typically the wlan0 interface where the IP is different because I've modes from an AP to another). Of course, maybe there's another way to solve this particular problem, in case I'd like to hear about it as well.

Quoted 4 lines

Long ago I did a 2.4 patch that solved exactly this problem. It introduced a new ifconfig flag "dynamic" and when a dynamic address went down all TCP connections originating from it were killed. It's still available in older SUSE releases. I might post a forward port later.

There is a /proc/sys/net/ipv4/ip_dynaddr sysctl in 2.6.21.

Signature · 4 lines
If at first you don't succeed, call it version 1.0 

Friß, Spammer: [email protected]
 [email protected] [email protected]
#3 lore raw
Quoted 1 line

There is a /proc/sys/net/ipv4/ip_dynaddr sysctl in 2.6.21.

Actually, it does look promising, thanks.

Stefan

#4 lore raw
In reply to Bodo Eggert
Quoted 9 lines · Bodo Eggert
Quoted 8 lines · Andi Kleen
Quoted 5 lines · Stefan Monnier

The main use for me is to deal with dangling connections due to taking network interfaces up&down with different IP addresses (typically the wlan0 interface where the IP is different because I've modes from an AP to another). Of course, maybe there's another way to solve this particular problem, in case I'd like to hear about it as well.

Quoted 6 lines
Quoted 4 lines

Long ago I did a 2.4 patch that solved exactly this problem. It introduced a new ifconfig flag "dynamic" and when a dynamic address went down all TCP connections originating from it were killed. It's still available in older SUSE releases. I might post a forward port later.

There is a /proc/sys/net/ipv4/ip_dynaddr sysctl in 2.6.21.

That only handles SYN_SENT and does something different (it rewrites the source address)

-Andi