Small typo fixed, even smaller changes...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8523 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7d374a5e1c
commit
ff24e0c4ab
@ -44,7 +44,7 @@ struct arp_header {
|
||||
enum {
|
||||
ARP_HARDWARE_TYPE_ETHERNET = 1, /* ethernet hardware format */
|
||||
ARP_HARDWARE_TYPE_IEEE802 = 6, /* IEEE 802 hardware format */
|
||||
ARP_HARDWARE_TYPE_FRAMEREALY = 15
|
||||
ARP_HARDWARE_TYPE_FRAMERELAY = 15
|
||||
};
|
||||
|
||||
enum {
|
||||
@ -134,7 +134,7 @@ static status_t process_input(net_layer *me, net_buffer *buffer)
|
||||
if (!buffer)
|
||||
return B_ERROR;
|
||||
|
||||
if (g_stack->find_buffer_attribute(buffer, ethernet_protocol_attr, 0, NULL, (void **) &protocol, NULL) != B_OK)
|
||||
if (g_stack->find_buffer_attribute(buffer, ethernet_protocol_attr, 0, NULL, &protocol, NULL) != B_OK)
|
||||
return B_ERROR;
|
||||
|
||||
if (*protocol != htons(0x0806)) // ARP on Ethernet protocol value
|
||||
|
@ -118,7 +118,7 @@ static status_t process_input(net_layer *me, net_buffer *buffer)
|
||||
if (!buffer)
|
||||
return B_ERROR;
|
||||
|
||||
if (g_stack->find_buffer_attribute(buffer, ethernet_protocol_attr, 0, NULL, (void **) &protocol, NULL) != B_OK)
|
||||
if (g_stack->find_buffer_attribute(buffer, ethernet_protocol_attr, 0, NULL, &protocol, NULL) != B_OK)
|
||||
return B_ERROR;
|
||||
|
||||
if (*protocol != htons(0x0800)) // IPv4 on Ethernet protocol value
|
||||
|
Loading…
Reference in New Issue
Block a user