Home
last modified time | relevance | path

Searched refs:protocolNumber (Results 1 – 24 of 24) sorted by relevance

/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A D_KPPPAuthenticationHandler.cpp20 uint16 protocolNumber; member
126 if (ntohs(item->protocolNumber) == in ParseNak()
134 KPPPProtocol *authenticator = Interface().ProtocolFor(ntohs(item->protocolNumber)); in ParseNak()
171 || ntohs(item->protocolNumber) != fPeerAuthenticator->ProtocolNumber()) in ParseAck()
192 TRACE("KPPPAuthHandler: ParseRequest(%X)\n", ntohs(item->protocolNumber)); in ParseRequest()
195 fLocalAuthenticator = Interface().ProtocolFor(ntohs(item->protocolNumber)); in ParseRequest()
224 suggestion.protocolNumber = htons(nextAuthenticator->ProtocolNumber()); in ParseRequest()
H A DKPPPLayer.cpp61 KPPPLayer::SendToNext(net_buffer *packet, uint16 protocolNumber) const in SendToNext()
70 return Next()->Send(packet, protocolNumber); in SendToNext()
72 return Next()->SendToNext(packet, protocolNumber); in SendToNext()
H A DKPPPDevice.cpp92 KPPPDevice::Receive(net_buffer *packet, uint16 protocolNumber) in Receive() argument
95 if (protocolNumber == 0) in Receive()
98 return Interface().Receive(packet, protocolNumber); in Receive()
H A DKPPPInterface.cpp1155 KPPPInterface::ProtocolFor(uint16 protocolNumber, KPPPProtocol *start) const in ProtocolFor() argument
1157 TRACE("KPPPInterface: ProtocolFor(%X)\n", protocolNumber); in ProtocolFor()
1165 if (current->ProtocolNumber() == protocolNumber in ProtocolFor()
1168 == (protocolNumber & 0x7FFF))) in ProtocolFor()
1551 KPPPInterface::Send(net_buffer *packet, uint16 protocolNumber) in Send() argument
1553 TRACE("KPPPInterface: Send(0x%X)\n", protocolNumber); in Send()
1571 if ((protocolNumber != PPP_LCP_PROTOCOL && DoesConnectOnDemand() in Send()
1581 KPPPProtocol *protocol = ProtocolFor(protocolNumber); in Send()
1584 ProtocolFor(protocolNumber, protocol->NextProtocol()) : NULL; in Send()
1600 if (Device()->IsUp() && protocolNumber == 0x0021) { in Send()
[all …]
H A DKPPPProtocol.cpp42 uint16 protocolNumber, ppp_level level, int32 addressFamily, in KPPPProtocol() argument
49 fProtocolNumber(protocolNumber), in KPPPProtocol()
122 info->protocolNumber = ProtocolNumber(); in Control()
H A DKPPPLCP.cpp222 KPPPLCP::Send(net_buffer *packet, uint16 protocolNumber) in Send() argument
233 KPPPLCP::Receive(net_buffer *packet, uint16 protocolNumber) in Receive() argument
238 if (protocolNumber != PPP_LCP_PROTOCOL) { in Receive()
H A DKPPPStateMachine.cpp1316 KPPPStateMachine::RUCEvent(net_buffer *packet, uint16 protocolNumber, in RUCEvent() argument
1329 SendCodeReject(packet, protocolNumber, code); in RUCEvent()
1873 KPPPStateMachine::SendCodeReject(net_buffer *packet, uint16 protocolNumber, uint8 code) in SendCodeReject() argument
1876 protocolNumber, code, State(), Phase()); in SendCodeReject()
1897 protocolNumber = htons(protocolNumber); in SendCodeReject()
1899 memcpy(&reject.data, &protocolNumber, sizeof(protocolNumber)); in SendCodeReject()
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/headers/
H A DKPPPLayer.h52 virtual status_t Send(net_buffer *packet, uint16 protocolNumber) = 0;
54 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber) = 0;
56 status_t SendToNext(net_buffer *packet, uint16 protocolNumber) const;
H A DKPPPProtocol.h20 uint16 protocolNumber, ppp_level level, int32 addressFamily,
108 virtual status_t Send(net_buffer *packet, uint16 protocolNumber) = 0;
110 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber) = 0;
H A DKPPPDevice.h101 virtual status_t Send(net_buffer *packet, uint16 protocolNumber) = 0;
102 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber);
H A DKPPPLCP.h89 uint16 protocolNumber = PPP_LCP_PROTOCOL);
90 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber);
H A DKPPPInterface.h140 KPPPProtocol *ProtocolFor(uint16 protocolNumber,
231 virtual status_t Send(net_buffer *packet, uint16 protocolNumber);
233 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber);
H A DKPPPStateMachine.h126 void RUCEvent(net_buffer *packet, uint16 protocolNumber,
150 bool SendCodeReject(net_buffer *packet, uint16 protocolNumber, uint8 code);
H A DPPPControl.h293 uint16 protocolNumber; member
/haiku/src/add-ons/kernel/network/ppp/ipcp/
H A DProtocol.h77 uint16 protocolNumber = IPCP_PROTOCOL);
78 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber);
79 status_t ReceiveIPPacket(net_buffer *packet, uint16 protocolNumber);
H A DProtocol.cpp231 IPCP::Send(net_buffer *packet, uint16 protocolNumber) in Send() argument
233 TRACE("IPCP: Send(0x%X)\n", protocolNumber); in Send()
235 if ((protocolNumber == IP_PROTOCOL && State() == PPP_OPENED_STATE) in Send()
236 || protocolNumber == IPCP_PROTOCOL) { in Send()
241 return SendToNext(packet, protocolNumber); in Send()
252 IPCP::Receive(net_buffer *packet, uint16 protocolNumber) in Receive() argument
254 TRACE("IPCP: Receive(0x%X)\n", protocolNumber); in Receive()
259 if (protocolNumber == IP_PROTOCOL) in Receive()
260 return ReceiveIPPacket(packet, protocolNumber); in Receive()
262 if (protocolNumber != IPCP_PROTOCOL) in Receive()
[all …]
/haiku/src/add-ons/kernel/network/ppp/pppoe/
H A DPPPoEDevice.h56 virtual status_t Send(net_buffer *packet, uint16 protocolNumber = 0);
57 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber = 0);
H A DPPPoEDevice.cpp310 PPPoEDevice::Send(net_buffer *packet, uint16 protocolNumber) in Send() argument
318 else if (InitCheck() != B_OK || protocolNumber != 0) { in Send()
372 PPPoEDevice::Receive(net_buffer *packet, uint16 protocolNumber) in Receive() argument
374 TRACE("%s entering %s: protocolNumber:%x\n", __FILE__, __func__, protocolNumber); in Receive()
/haiku/src/add-ons/kernel/network/ppp/modem/
H A DModemDevice.h62 virtual status_t Send(net_buffer *packet, uint16 protocolNumber = 0);
65 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber = 0);
H A DModemDevice.cpp406 ModemDevice::Send(net_buffer *packet, uint16 protocolNumber) in Send() argument
415 else if (InitCheck() != B_OK || protocolNumber != 0) { in Send()
507 ModemDevice::Receive(net_buffer *packet, uint16 protocolNumber) in Receive() argument
/haiku/src/add-ons/kernel/network/ppp/pap/
H A DProtocol.cpp26 uint16 protocolNumber; member
55 item.protocolNumber = htons(PAP_PROTOCOL); in AddToRequest()
74 || item->length != 4 || ntohs(item->protocolNumber) != PAP_PROTOCOL) in ParseRequest()
170 PAP::Send(net_buffer *packet, uint16 protocolNumber) in Send() argument
181 PAP::Receive(net_buffer *packet, uint16 protocolNumber) in Receive() argument
186 if (protocolNumber != PAP_PROTOCOL) in Receive()
H A DProtocol.h61 virtual status_t Send(net_buffer *packet, uint16 protocolNumber);
62 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber);
/haiku/src/add-ons/kernel/network/protocols/ipv6/
H A Dipv6.cpp1274 uint8 protocolNumber; in ipv6_send_routed_data() local
1276 protocolNumber = protocol->socket->protocol; in ipv6_send_routed_data()
1278 protocolNumber = buffer->protocol; in ipv6_send_routed_data()
1316 header->ip6_nxt = protocolNumber; in ipv6_send_routed_data()
1324 if (protocolNumber == IPPROTO_ICMPV6 in ipv6_send_routed_data()
1336 &header->ip6_dst, dataLength, protocolNumber, in ipv6_send_routed_data()
/haiku/src/bin/network/pppconfig/
H A Dpppconfig.cpp551 printf("protocolNumber: %d\n", info.info.protocolNumber); in controlprotocol()