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:
Philippe Houdoin 2004-07-30 17:29:33 +00:00
parent 7d374a5e1c
commit ff24e0c4ab
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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