Lines Matching refs:htons
100 if (csum != htons(csum)) /* little endian */ in cdp_compute_csum()
101 csum = htons(csum); in cdp_compute_csum()
140 *s++ = htons(0); in cdp_send_trigger()
144 *s++ = htons(CDP_DEVICE_ID_TLV); in cdp_send_trigger()
145 *s++ = htons(CONFIG_CDP_DEVICE_ID); in cdp_send_trigger()
152 *s++ = htons(CDP_PORT_ID_TLV); in cdp_send_trigger()
158 *s++ = htons(len + 4); in cdp_send_trigger()
164 *s++ = htons(CDP_CAPABILITIES_TLV); in cdp_send_trigger()
165 *s++ = htons(8); in cdp_send_trigger()
171 *s++ = htons(CDP_VERSION_TLV); in cdp_send_trigger()
177 *s++ = htons(len + 4); in cdp_send_trigger()
183 *s++ = htons(CDP_PLATFORM_TLV); in cdp_send_trigger()
189 *s++ = htons(len + 4); in cdp_send_trigger()
195 *s++ = htons(CDP_TRIGGER_TLV); in cdp_send_trigger()
196 *s++ = htons(8); in cdp_send_trigger()
202 *s++ = htons(CDP_POWER_CONSUMPTION_TLV); in cdp_send_trigger()
203 *s++ = htons(6); in cdp_send_trigger()
204 *s++ = htons(CONFIG_CDP_POWER_CONSUMPTION); in cdp_send_trigger()
209 et->et_protlen = htons(len); in cdp_send_trigger()
216 *cp = htons(chksum); in cdp_send_trigger()
275 vlan = htons(-1); in cdp_receive()
276 nvlan = htons(-1); in cdp_receive()
357 cdp_native_vlan = htons(-1); in cdp_start()
358 cdp_appliance_vlan = htons(-1); in cdp_start()