Searched refs:ethHdr (Results 1 – 6 of 6) sorted by relevance
/external/ppp/pppd/plugins/rp-pppoe/ |
D | debug.c | 132 (unsigned) packet->ethHdr.h_source[0], in dumpPacket() 133 (unsigned) packet->ethHdr.h_source[1], in dumpPacket() 134 (unsigned) packet->ethHdr.h_source[2], in dumpPacket() 135 (unsigned) packet->ethHdr.h_source[3], in dumpPacket() 136 (unsigned) packet->ethHdr.h_source[4], in dumpPacket() 137 (unsigned) packet->ethHdr.h_source[5], in dumpPacket() 138 (unsigned) packet->ethHdr.h_dest[0], in dumpPacket() 139 (unsigned) packet->ethHdr.h_dest[1], in dumpPacket() 140 (unsigned) packet->ethHdr.h_dest[2], in dumpPacket() 141 (unsigned) packet->ethHdr.h_dest[3], in dumpPacket() [all …]
|
D | common.c | 109 memcpy(packet.ethHdr.h_dest, conn->peerEth, ETH_ALEN); in sendPADT() 110 memcpy(packet.ethHdr.h_source, conn->myEth, ETH_ALEN); in sendPADT() 112 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery); in sendPADT() 176 switch (ntohs(packet->ethHdr.h_proto)) { in pppoe_printpkt() 209 ntohs(packet->ethHdr.h_proto)); in pppoe_printpkt() 212 printer(arg, " dst %02x:%02x:%02x:%02x:%02x:%02x ", EH(packet->ethHdr.h_dest)); in pppoe_printpkt() 213 printer(arg, " src %02x:%02x:%02x:%02x:%02x:%02x\n", EH(packet->ethHdr.h_source)); in pppoe_printpkt() 214 if (ntohs(packet->ethHdr.h_proto) != ETH_PPPOE_DISCOVERY) in pppoe_printpkt()
|
D | discovery.c | 110 if (memcmp(packet->ethHdr.h_dest, conn->myEth, ETH_ALEN)) return 0; in packetIsForMe() 280 memset(packet.ethHdr.h_dest, 0xFF, ETH_ALEN); in sendPADI() 281 memcpy(packet.ethHdr.h_source, conn->myEth, ETH_ALEN); in sendPADI() 283 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery); in sendPADI() 409 if (NOT_UNICAST(packet.ethHdr.h_source)) { in waitForPADO() 414 && memcmp(packet.ethHdr.h_source, conn->req_peer_mac, ETH_ALEN) != 0) { in waitForPADO() 432 memcpy(conn->peerEth, packet.ethHdr.h_source, ETH_ALEN); in waitForPADO() 465 memcpy(packet.ethHdr.h_dest, conn->peerEth, ETH_ALEN); in sendPADR() 466 memcpy(packet.ethHdr.h_source, conn->myEth, ETH_ALEN); in sendPADR() 468 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery); in sendPADR() [all …]
|
D | pppoe-discovery.c | 82 UINT16_t type = (UINT16_t) ntohs(packet->ethHdr.h_proto); in etherType() 347 if (memcmp(packet->ethHdr.h_dest, conn->myEth, ETH_ALEN)) return 0; in packetIsForMe() 458 memset(packet.ethHdr.h_dest, 0xFF, ETH_ALEN); in sendPADI() 459 memcpy(packet.ethHdr.h_source, conn->myEth, ETH_ALEN); in sendPADI() 461 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery); in sendPADI() 568 if (BROADCAST(packet.ethHdr.h_source)) { in waitForPADO() 586 memcpy(conn->peerEth, packet.ethHdr.h_source, ETH_ALEN); in waitForPADO()
|
D | if.c | 77 UINT16_t type = (UINT16_t) ntohs(packet->ethHdr.h_proto); in etherType()
|
D | pppoe.h | 180 struct ethhdr ethHdr; /* Ethernet header */ member
|