Lines Matching refs:htons
993 localip->ip_len = htons(total_len); in __net_defragment()
1422 et->et_protlen = htons(prot); in net_set_ether()
1428 vet->vet_vlan_type = htons(PROT_VLAN); in net_set_ether()
1429 vet->vet_tag = htons((0 << 5) | (myvlanid & VLAN_IDMASK)); in net_set_ether()
1430 vet->vet_type = htons(prot); in net_set_ether()
1445 vet->vet_type = htons(prot); in net_update_ether()
1448 et->et_protlen = htons(prot); in net_update_ether()
1453 et802->et_prot = htons(prot); in net_update_ether()
1468 ip->ip_len = htons(IP_HDR_SIZE); in net_set_ip_header()
1469 ip->ip_id = htons(net_ip_id++); in net_set_ip_header()
1470 ip->ip_off = htons(IP_FLAGS_DFRAG); /* Don't fragment */ in net_set_ip_header()
1493 ip->ip_len = htons(IP_UDP_HDR_SIZE + len); in net_set_udp_header()
1497 ip->udp_src = htons(sport); in net_set_udp_header()
1498 ip->udp_dst = htons(dport); in net_set_udp_header()
1499 ip->udp_len = htons(UDP_HDR_SIZE + len); in net_set_udp_header()
1558 return htons(VLAN_NONE); in string_to_vlan()
1565 return htons(id); in string_to_vlan()