Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153055439
D4720.id11737.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
664 B
Referenced Files
None
Subscribers
None
D4720.id11737.diff
View Options
Index: sys/net/if_gre.c
===================================================================
--- sys/net/if_gre.c
+++ sys/net/if_gre.c
@@ -682,7 +682,7 @@
struct grehdr *gh;
struct ifnet *ifp;
struct mbuf *m;
- uint32_t *opts, key;
+ uint32_t *opts;
uint16_t flags;
int hlen, isr, af;
@@ -715,17 +715,11 @@
opts++;
}
if (flags & GRE_FLAGS_KP) {
- key = ntohl(*opts);
hlen += sizeof(uint32_t);
opts++;
- } else
- key = 0;
- /*
- if (sc->gre_key != 0 && (key != sc->gre_key || key != 0))
- goto drop;
- */
+ }
+
if (flags & GRE_FLAGS_SP) {
- /* seq = ntohl(*opts); */
hlen += sizeof(uint32_t);
}
switch (ntohs(gh->gre_proto)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 9:19 PM (8 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31789282
Default Alt Text
D4720.id11737.diff (664 B)
Attached To
Mode
D4720: Clean up dead code and fix a warning: unused-but-set-variable spotted by gcc4.9.
Attached
Detach File
Event Timeline
Log In to Comment