Retourner au contenu associé (journal : L'étrange affaire du port 0)
Posté par Benoît Sibaud (site web personnel) le 18 avril 2021 à 13:17. En réponse au journal L'étrange affaire du port 0. Évalué à 10.
Merci pour ce partage.
Et l'info de l'article de 2015 est toujours vraie : source du noyau Linux : https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/ipv4/inet_connection_sock.c?h=v5.12-rc7#n350
/* Obtain a reference to a local port for the given sock, * if snum is zero it means select any available local port. * We try to allocate an odd port (and leave even ports for connect()) */ int inet_csk_get_port(struct sock *sk, unsigned short snum)
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
# Noyau Linux
Posté par Benoît Sibaud (site web personnel) . En réponse au journal L'étrange affaire du port 0. Évalué à 10.
Merci pour ce partage.
Et l'info de l'article de 2015 est toujours vraie : source du noyau Linux : https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/ipv4/inet_connection_sock.c?h=v5.12-rc7#n350