Skip to contentSkip to conversation

New: SO_BINDTODEVICE set sock's sk_bound_dev_if ,but interface's index can chang where interface down and up

Bug 88871 Stephen Hemminger 2 participants 2 messages Nov 25, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This is not really a bug.

Begin forwarded message:

Date: Mon, 24 Nov 2014 22:50:49 -0800
From: "[email protected]" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Bug 88871] New: SO_BINDTODEVICE set sock's sk_bound_dev_if ,but interface's index can chang where interface down and up

https://bugzilla.kernel.org/show_bug.cgi?id=88871

Bug ID: 88871
Summary: SO_BINDTODEVICE set sock's sk_bound_dev_if ,but
interface's index can chang where interface down and up
Product: Networking
Version: 2.5
Kernel Version: 3.4
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: high
Priority: P1
Component: Other
Assignee: [email protected]
Reporter: [email protected]
Regression: No

call setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, iface_brlan, iface_len + 1), the sock's sk_bound_dev_if be set to iface_brlan's index, when i pull out other cab and plug in, the br-lan's index can changed, the tcp packet to the socket be rest, because the orignal sk_bound_dev_if not match current br-lan's index

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.