Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136198872
D5188.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
562 B
Referenced Files
None
Subscribers
None
D5188.diff
View Options
Index: sys/net/if_lagg.c
===================================================================
--- sys/net/if_lagg.c
+++ sys/net/if_lagg.c
@@ -1051,7 +1051,7 @@
break;
}
}
- if (proto->ti_proto == LAGG_PROTO_NONE) {
+ if (proto->ti_proto >= LAGG_PROTO_MAX) {
error = EPROTONOSUPPORT;
break;
}
@@ -1081,7 +1081,8 @@
LAGG_WUNLOCK(sc);
} else
LAGG_WUNLOCK(sc);
- proto->ti_attach(sc);
+ if (proto->ti_proto != LAGG_PROTO_NONE)
+ proto->ti_attach(sc);
LAGG_WLOCK(sc);
sc->sc_proto = proto->ti_proto;
LAGG_WUNLOCK(sc);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 17, 3:22 PM (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25424150
Default Alt Text
D5188.diff (562 B)
Attached To
Mode
D5188: Set laggproto none on lagg bundle
Attached
Detach File
Event Timeline
Log In to Comment