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 157925 Details for
Bug 245787
Piranha send_arp utility generates incorrectly-formed gratuitous ARP's (patch to fix attached)
[?]
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]
Patch to make gratuitous ARP's generated by send_arp RFC2002-compliant
piranha-0.8.4-send_arp-fix-grat-arp-rfc2002-compliance.patch (text/plain), 1.10 KB, created by
Vince Worthington
on 2007-06-26 18:00:21 UTC
(
hide
)
Description:
Patch to make gratuitous ARP's generated by send_arp RFC2002-compliant
Filename:
MIME Type:
Creator:
Vince Worthington
Created:
2007-06-26 18:00:21 UTC
Size:
1.10 KB
patch
obsolete
>--- piranha/send_arp.c.grat_arp 2002-01-18 13:05:01.000000000 -0500 >+++ piranha/send_arp.c 2007-06-26 13:25:30.000000000 -0400 >@@ -101,13 +101,22 @@ main (int argc, char **argv) > pkt.prot_addr_size = IP_ADDR_LEN; > pkt.op = htons (OP_ARP_REQUEST); > >+ /* per RFC2002, when sending ARP reply-type >+ gratuitous arps, both the ARP sender hardware >+ address *AND* ARP target hardware address are >+ set to the MAC address we wish to update arp >+ entries for */ > get_hw_addr (pkt.targ_hw_addr, argv[4]); >- get_hw_addr (pkt.rcpt_hw_addr, argv[4]); >+ get_hw_addr (pkt.rcpt_hw_addr, argv[2]); > get_hw_addr (pkt.src_hw_addr, argv[2]); > get_hw_addr (pkt.sndr_hw_addr, argv[2]); > >+ /* per RFC2002, gratuitous ARP's have both >+ the ARP Sender Protocol Address *AND* the >+ ARP Target Protocol Address set to the IP >+ of the ARP cache entry we wish to update */ > get_ip_addr (&src_in_addr, argv[1]); >- get_ip_addr (&targ_in_addr, argv[3]); >+ get_ip_addr (&targ_in_addr, argv[1]); > > memcpy (pkt.sndr_ip_addr, &src_in_addr, IP_ADDR_LEN); > memcpy (pkt.rcpt_ip_addr, &targ_in_addr, IP_ADDR_LEN);
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 245787
: 157925 |
157928