Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 303426 Details for
Bug 441716
Fake ARP dropped after migration leading to loss of network connectivity
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Send fake ARP when link gets carrier
p (text/plain), 1.52 KB, created by
Herbert Xu
on 2008-04-23 04:59:56 UTC
(
hide
)
Description:
Send fake ARP when link gets carrier
Filename:
MIME Type:
Creator:
Herbert Xu
Created:
2008-04-23 04:59:56 UTC
Size:
1.52 KB
patch
obsolete
>diff --git a/drivers/xen/netfront/netfront.c b/drivers/xen/netfront/netfront.c >index 8925e77..ce9c1cf 100644 >--- a/drivers/xen/netfront/netfront.c >+++ b/drivers/xen/netfront/netfront.c >@@ -1999,6 +1999,22 @@ inetdev_notify(struct notifier_block *this, unsigned long event, void *ptr) > return NOTIFY_DONE; > } > >+/* >+ * We also send a fake ARP if the link gets carrier. >+ */ >+static int >+netdev_notify(struct notifier_block *this, unsigned long event, void *ptr) >+{ >+ struct net_device *dev = ptr; >+ >+ /* Carrier up event and is it one of our devices? */ >+ if (event == NETDEV_CHANGE && netif_carrier_ok(dev) && >+ dev->open == network_open) >+ (void)send_fake_arp(dev); >+ >+ return NOTIFY_DONE; >+} >+ > > static void netif_disconnect_backend(struct netfront_info *info) > { >@@ -2062,6 +2078,10 @@ static struct notifier_block notifier_inetdev = { > .priority = 0 > }; > >+static struct notifier_block notifier_netdev = { >+ .notifier_call = netdev_notify, >+}; >+ > static int __init netif_init(void) > { > if (!is_running_on_xen()) >@@ -2083,6 +2103,7 @@ static int __init netif_init(void) > IPRINTK("Initialising virtual ethernet driver.\n"); > > (void)register_inetaddr_notifier(¬ifier_inetdev); >+ (void)register_netdevice_notifier(¬ifier_netdev); > > return xenbus_register_frontend(&netfront); > } >@@ -2096,6 +2117,7 @@ static void __exit netif_exit(void) > if (is_initial_xendomain()) > return; > >+ unregister_netdevice_notifier(¬ifier_netdev); > unregister_inetaddr_notifier(¬ifier_inetdev); > > return xenbus_unregister_driver(&netfront);
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 441716
:
302697
| 303426 |
310783
|
310792
|
312200
|
313096
|
313197