FreeBSD Bugzilla – Attachment 180593 Details for
Bug 217607
ng_cisco only sends flow control messages to nodes connected via 'inet' hook
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sketch of a patch fixing the issue
cisco_ipv6_notify_all2.patch (text/plain), 948 bytes, created by
Łukasz Wójcik
on 2017-03-07 09:36:01 UTC
(
hide
)
Description:
sketch of a patch fixing the issue
Filename:
MIME Type:
Creator:
Łukasz Wójcik
Created:
2017-03-07 09:36:01 UTC
Size:
948 bytes
patch
obsolete
>diff --git a/sys/netgraph/ng_cisco.c b/sys/netgraph/ng_cisco.c >index 7e64a0f..12e7e03 100644 >--- a/sys/netgraph/ng_cisco.c >+++ b/sys/netgraph/ng_cisco.c >@@ -637,10 +637,20 @@ cisco_notify(sc_p sc, uint32_t cmd) > struct ng_mesg *msg; > int dummy_error = 0; > >- if (sc->inet.hook == NULL) /* nothing to notify */ >+ if (sc->inet.hook == NULL && sc->inet6.hook == NULL) >+ /* nothing to notify */ > return; >- >- NG_MKMESSAGE(msg, NGM_FLOW_COOKIE, cmd, 0, M_NOWAIT); >- if (msg != NULL) >- NG_SEND_MSG_HOOK(dummy_error, sc->node, msg, sc->inet.hook, 0); >+ >+ if (sc->inet.hook != NULL) { >+ NG_MKMESSAGE(msg, NGM_FLOW_COOKIE, cmd, 0, M_NOWAIT); >+ if (msg != NULL) >+ NG_SEND_MSG_HOOK(dummy_error, sc->node, msg, >+ sc->inet.hook, 0); >+ } >+ if (sc->inet6.hook != NULL) { >+ NG_MKMESSAGE(msg, NGM_FLOW_COOKIE, cmd, 0, M_NOWAIT); >+ if (msg != NULL) >+ NG_SEND_MSG_HOOK(dummy_error, sc->node, msg, >+ sc->inet6.hook, 0); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 217607
: 180593