MTU(Maximum Transmission Unit)が1500バイトの場合、UDPでデータを送る際にIPフラグメントを起こさずに送信できる最大サイズは以下のように計算できます。
- Ethernetヘッダ: 14バイト
- IPヘッダ: 最小で20バイト
- UDPヘッダ: 8バイト
- それらのヘッダを引いた値: (1500 - 14 - 20 - 8 = 1458)バイト
したがって、フラグメントを起こさずに送信できる最大サイズは1458バイトになります。
MTU(Maximum Transmission Unit)が1500バイトの場合、UDPでデータを送る際にIPフラグメントを起こさずに送信できる最大サイズは以下のように計算できます。
したがって、フラグメントを起こさずに送信できる最大サイズは1458バイトになります。
$ go run main.go
1
2
3
4
5
package main | |
import ( | |
"flag" | |
"fmt" | |
"log/slog" | |
"os" | |
"path/filepath" | |
"strings" |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log/slog" | |
"os" | |
"path/filepath" | |
"strings" |
debファイルを取得し、インストールを試みる。
$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
(Reading database ... 30014 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (116.0.5845.140-1) over (116.0.5845.140-1) ...
Google Chrome は、ARM版を配布していないので、Chromiumで代用。
$ uname -m
aarch64
$ cd $HOME
$ sudo apt install clang cmake ninja-build pkg-config libgtk-3-dev build-essential chromium
$ git clone https://github.com/flutter/flutter.git -b stable
iOS9 returns double the value for window.innerWidth
& window.innerHeight
The versions that are concerned are: 9.0.0
, 9.0.1
, 9.0.2
A few people got mad on twitter:
window.innerWidth in iOS 9 Safari returns double the number it did in iOS 8? Is this real life? tell me no — @rachsmithtweets
iOS9 Safari has the most insane bug where window.innerWidth / innerHeight is *sometimes* twice as large as it should be. ughhhh. !? — @mattdesl
iOS9 innerWidth/innerHeight is having a lot of fun these days — @ayamflow